ports/devel/arduino-bsd-mk/Makefile
Craig Leres 0ac932378c devel/arduino-bsd-mk: Update to 2.5
Install man page in share/man.

Changes since 2.4:

 - Install man page in ${PREFIX}/share by default.
2024-01-21 14:37:38 -08:00

44 lines
1,020 B
Makefile

PORTNAME= arduino-bsd-mk
PORTVERSION= 2.5
CATEGORIES= devel
MASTER_SITES= https://xse.com/leres/arduino/arduino-bsd-mk/ \
LOCAL/leres/arduino-bsd-mk
MAINTAINER= leres@FreeBSD.org
COMMENT= Build Arduino sketches from the command line on FreeBSD
WWW= https://xse.com/leres/arduino/arduino-bsd-mk/
LICENSE= BSD2CLAUSE
USES= python:run shebangfix
SHEBANG_FILES= arduino-boards.py
NO_BUILD= yes
NO_MTREE= yes
PORTEXAMPLES= *
PLIST_FILES= ${ALL_FILES} ${ALL_SCRIPTS:R} \
share/man/man7/bsd.arduino.mk.7.gz
OPTIONS_DEFINE+= EXAMPLES
MAKE_ARGS= MANPREFIX=${PREFIX}/share
ALL_FILES= arduino-bsd-mk/bsd.arduino.mk
ALL_SCRIPTS= arduino-bsd-mk/scripts/arduino-boards.py \
arduino-bsd-mk/scripts/arduino-version.sh \
arduino-bsd-mk/scripts/gcc-version.sh
pre-patch:
# Honor PREFIX
${REINPLACE_CMD} -e 's,/usr/local/,${PREFIX}/,' \
${WRKSRC}/arduino-boards.py ${WRKSRC}/bsd.arduino.mk
post-install:
cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . \
${STAGEDIR}$/${EXAMPLESDIR}
.include <bsd.port.mk>