mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
3be3e90f93
- Switched to automake 1.11.6, see CVE-2012-3386. - #14669: Fixed extraction of CC from gmp.h. - Fixed case of intermediate zero real or imaginary part in mpc_fma, found by hydra with GMP_CHECK_RANDOMIZE=1346362345. This is on top of the following changes from version 1.0 - Licence change towards LGPLv3+ for the code and GFDLv1.3+ (with no invariant sections) for the documentation. - 100% of all lines are covered by tests - Renamed functions . mpc_mul_2exp to mpc_mul_2ui . mpc_div_2exp to mpc_div_2ui - 0^0, which returned (NaN,NaN) previously, now returns (1,+0). - Removed compatibility with K&R compilers, which was untestable due to lack of such compilers. - New functions . mpc_log10 . mpc_mul_2si, mpc_div_2si - Speed-ups . mpc_fma - Bug fixes . mpc_div and mpc_norm now return a value indicating the effective rounding direction, as the other functions. . mpc_mul, mpc_sqr and mpc_norm now return correct results even if there are over- or underflows during the computation. . mpc_asin, mpc_proj, mpc_sqr: Wrong result when input variable has infinite part and equals output variable is corrected. . mpc_fr_sub: Wrong return value for imaginary part is corrected. Convert to the new LIB_DEPENDS standard and remove hard-coded .so versions from a couple of dependent ports. Bump PORTREVISIONS of all dependent ports. PR: 183141 Approved by: portmgr (bdrewery)
71 lines
2.0 KiB
Makefile
71 lines
2.0 KiB
Makefile
# Created by: Craig Leres <leres@ee.lbl.gov>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= arduino-mk
|
|
PORTVERSION= 0.10
|
|
PORTREVISION= 1
|
|
CATEGORIES= devel
|
|
MASTER_SITES= http://mjo.tc/atelier/2009/02/acli/
|
|
DISTNAME= ${PORTNAME}_${PORTVERSION}
|
|
|
|
MAINTAINER= leres@ee.lbl.gov
|
|
COMMENT= Build Arduino sketches from the command line
|
|
|
|
LICENSE= LGPL21
|
|
|
|
# gmake is needed to use the port, not to build it
|
|
RUN_DEPENDS= gmake:${PORTSDIR}/devel/gmake \
|
|
p5-YAML>=0:${PORTSDIR}/textproc/p5-YAML \
|
|
arduino:${PORTSDIR}/devel/arduino
|
|
PATCH_DEPENDS= ${LOCALBASE}/arduino/lib/version.txt:${PORTSDIR}/devel/arduino
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
|
|
NO_BUILD= yes
|
|
|
|
OPTIONS_DEFINE+= DOCS EXAMPLES
|
|
|
|
NO_STAGE= yes
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if empty(PORT_OPTIONS:MDOCS)
|
|
PLIST_SUB+= REFDOCS="@comment "
|
|
.else
|
|
PLIST_SUB+= REFDOCS=""
|
|
.endif
|
|
|
|
.if empty(PORT_OPTIONS:MEXAMPLES)
|
|
PLIST_SUB+= EXAMPLES="@comment "
|
|
.else
|
|
PLIST_SUB+= EXAMPLES=""
|
|
.endif
|
|
|
|
ARDUINO_CMD= ${SH} ${FILESDIR}/version.sh ${PREFIX}/arduino/lib/version.txt
|
|
OLD_BOARDS_TXT= /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/boards.txt
|
|
NEW_BOARDS_TXT= ${PREFIX}/arduino/hardware/arduino/boards.txt
|
|
|
|
INSLIST= AnalogInOutSerial Blink BlinkWithoutDelay Fade HelloWorld \
|
|
WebServer master_reader toneMelody
|
|
post-patch:
|
|
@ARDUINO="`$(ARDUINO_CMD)`" && \
|
|
${REINPLACE_CMD} -e "s|%%ARDUINO%%|$${ARDUINO}|g" \
|
|
${WRKSRC}/arduino-mk/Arduino.mk
|
|
@${REINPLACE_CMD} -e "s|'${OLD_BOARDS_TXT}'|'${NEW_BOARDS_TXT}'|g" \
|
|
${WRKSRC}/bin/ard-parse-boards
|
|
|
|
do-install:
|
|
${MKDIR} ${PREFIX}/${PORTNAME}/bin
|
|
${INSTALL_DATA} ${WRKSRC}/arduino-mk/Arduino.mk ${PREFIX}/${PORTNAME}
|
|
${INSTALL_SCRIPT} ${WRKSRC}/bin/ard-parse-boards ${PREFIX}/${PORTNAME}/bin
|
|
${INSTALL_SCRIPT} ${WRKSRC}/bin/ard-reset-arduino ${PREFIX}/${PORTNAME}/bin
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
|
${MKDIR} ${EXAMPLESDIR}
|
|
(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} "${INSLIST}" ${EXAMPLESDIR})
|
|
.endif
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
${MKDIR} ${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/README.md ${DOCSDIR}
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|