57 lines
1.6 KiB
Makefile
57 lines
1.6 KiB
Makefile
# $OpenBSD: Makefile,v 1.7 2013/03/11 10:50:00 espie Exp $
|
|
|
|
COMMENT= open-source electronics prototyping platform
|
|
|
|
V= 1.0.2
|
|
PKGNAME= arduino-${V}
|
|
DISTNAME= arduino-${V}-src
|
|
EPOCH= 0
|
|
CATEGORIES= devel
|
|
HOMEPAGE= http://www.arduino.cc/
|
|
|
|
# arduino core + libraries: LGPLv2.1
|
|
# frontend application: GPLv2 (not shipped yet)
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
MASTER_SITES= http://arduino.googlecode.com/files/
|
|
|
|
RUN_DEPENDS= devel/avr/binutils \
|
|
devel/avr/gcc \
|
|
devel/avr/libc \
|
|
devel/avrdude
|
|
|
|
BUILD_DEPENDS= archivers/unzip
|
|
|
|
NO_BUILD= Yes
|
|
NO_TEST= Yes
|
|
PKG_ARCH= *
|
|
WRKDIST= ${WRKDIR}/arduino-${V}
|
|
|
|
do-install:
|
|
@${INSTALL_DATA_DIR} ${PREFIX}/share/{,doc,examples}/arduino
|
|
@${SUBST_CMD} -c ${FILESDIR}/arduinoboot \
|
|
${PREFIX}/bin/arduinoboot
|
|
@${SUBST_CMD} -c ${FILESDIR}/arduinoproject \
|
|
${PREFIX}/bin/arduinoproject
|
|
@chown ${BINOWN}:${BINGRP} ${PREFIX}/bin/*
|
|
@chmod ${BINMODE} ${PREFIX}/bin/*
|
|
@${SUBST_CMD} -c ${FILESDIR}/BSDmakefile \
|
|
${PREFIX}/share/examples/arduino/BSDmakefile
|
|
@${SUBST_CMD} -c ${FILESDIR}/template.ino \
|
|
${PREFIX}/share/examples/arduino/template.ino
|
|
@chmod a+r ${PREFIX}/share/examples/arduino/*
|
|
@cp -r ${WRKSRC}/build/shared/examples/* \
|
|
${PREFIX}/share/examples/arduino
|
|
@cp -r ${WRKSRC}/hardware/arduino/* \
|
|
${PREFIX}/share/arduino
|
|
@cp -r ${WRKSRC}/libraries \
|
|
${PREFIX}/share/arduino
|
|
@cp -r ${WRKSRC}/{license,readme,todo}.txt \
|
|
${PREFIX}/share/doc/arduino
|
|
@unzip -qnd ${PREFIX}/share/doc/arduino \
|
|
${WRKSRC}/build/shared/reference.zip
|
|
@chown -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share
|
|
@find ${PREFIX} -type f -name \*.orig -exec rm '{}' \;
|
|
|
|
.include <bsd.port.mk>
|