openbsd-ports/devel/arduino/Makefile
jasper a17cc79e1c - update to 1.0.1
* release notes can be found here: http://arduino.cc/en/Main/ReleaseNotes
- set default baud rate for the uno, instead of defaulting to older boards.

tested by various
2012-05-22 21:26:11 +00:00

60 lines
1.7 KiB
Makefile

# $OpenBSD: Makefile,v 1.4 2012/05/22 21:26:11 jasper Exp $
COMMENT= open-source electronics prototyping platform
V= 1.0.1
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
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= 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_REGRESS= 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>