PORTNAME= ${GH_PROJECT:tl} PORTVERSION= 1.8.5 PORTREVISION= 2 CATEGORIES= devel java PKGNAMESUFFIX= 18 DIST_SUBDIR= ${PORTNAME} MAINTAINER= kevans@FreeBSD.org COMMENT= Open-source electronics prototyping platform WWW= https://arduino.cc/ LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/../license.txt JSSC_DEP= ${JAVA_HOME}/jre/lib/ext/jssc-2.8.0.jar:comms/java-simple-serial-connector BUILD_DEPENDS+= ${JSSC_DEP} LIB_DEPENDS= liblistSerialsj.so:devel/listserialc \ libastylej-arduino.so:devel/libastylej-arduino RUN_DEPENDS= arduino-builder:devel/arduino-builder \ arduino-tools>=1.6.12:devel/arduino-tools \ bash:shells/bash \ ${JSSC_DEP} CONFLICTS= arduino BUNDLE_GH_ACCOUNT= arduino-libraries BUNDLE_LIBRARIES= Firmata:2.5.6:firmata \ Bridge:1.6.3:bridge \ Robot_Control:1.0.4:robotcontrol \ Robot_Motor:1.0.3:robotmotor \ RobotIRremote:2.0.0:robotir \ SpacebrewYun:1.0.1:spacebrew \ Temboo:1.2.1:temboo \ Esplora:1.0.4:esplora \ Mouse:1.0.1:mouse \ Keyboard:1.0.1:keyboard \ SD:1.1.1:sd \ Servo:1.1.2:servo \ LiquidCrystal:1.0.7:liquidcrystal GH_TUPLE+= ${BUNDLE_GH_ACCOUNT}:WiFi101-FirmwareUpdater-Plugin:v0.9.2:wifi10/linux/work/tools/WiFi101 USE_GITHUB= yes GH_ACCOUNT= arduino GH_PROJECT= Arduino .for blib in ${BUNDLE_LIBRARIES} GH_TUPLE+= ${BUNDLE_GH_ACCOUNT}:${blib}/linux/work/libraries/${blib:C/\:.*//} .endfor USES= desktop-file-utils LIB_DIRS+= ${LOCALBASE}/lib ${LOCALBASE}/lib/jni WRKSRC_SUBDIR= build PATCH_WRKSRC= ${WRKSRC}/../ MAKE_ARGS+= -Dlight_bundle=true -Dlocal_sources=true -Dno_arduino_builder=true USE_JAVA= yes JAVA_VERSION= 8+ USE_ANT= yes OS_DIR= ${WRKSRC}/linux BUILD_DIR= ${OS_DIR}/work INSLIST= lib libraries revisions.txt tools STRIP= # No Elfs here, only symlinks OPTIONS_DEFINE= DOCS EXAMPLES OPTIONS_SUB= yes DOCS_MAKE_ARGS= -Dno_docs=false DOCS_MAKE_ARGS_OFF= -Dno_docs=true DOCS_MASTER_SITES= http://downloads.arduino.cc/:ref,galileo,edison \ https://files.kyle-evans.net/arduino/:ref,galileo,edison DOCS_DISTFILES= reference-1.6.6-3.zip:ref \ Galileo_help_files-1.6.2.zip:galileo \ Edison_help_files-1.6.2.zip:edison .include .if ${PORT_OPTIONS:MDOCS} INSLIST+= reference .endif .if ${PORT_OPTIONS:MEXAMPLES} INSLIST+= examples .endif post-extract-DOCS-on: ${MKDIR} ${BUILD_DIR}/reference ${MV} ${WRKDIR}/code.jquery.com ${BUILD_DIR}/reference ${MV} ${WRKDIR}/www.arduino.cc ${BUILD_DIR}/reference ${MV} ${WRKDIR}/Galileo_help_files ${BUILD_DIR}/reference ${MV} ${WRKDIR}/Edison_help_files ${BUILD_DIR}/reference post-patch: ${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' ${PATCH_WRKSRC}/arduino-core/src/processing/app/BaseNoGui.java ${REINPLACE_CMD} -e 's::arduino:' -e 's::arduino:' \ ${PATCH_WRKSRC}/build/linux/dist/desktop.template do-install: ${MKDIR} ${STAGEDIR}${PREFIX}/${PORTNAME} (cd ${BUILD_DIR}/ && ${COPYTREE_SHARE} "${INSLIST}" ${STAGEDIR}${PREFIX}/${PORTNAME} ${FIND_EXPR}) (cd ${WRKSRC}/../ && ${COPYTREE_SHARE} "libraries" ${STAGEDIR}${PREFIX}/${PORTNAME} ${FIND_EXPR}) ${RM} ${STAGEDIR}${PREFIX}/${PORTNAME}/lib/libastylej.so ${RM} ${STAGEDIR}${PREFIX}/${PORTNAME}/lib/liblistSerialsj.so ${RM} ${STAGEDIR}${PREFIX}/${PORTNAME}/lib/jssc-2.8.0-arduino1.jar ${LN} -s ../../lib/jni/libastylej-arduino.so ${STAGEDIR}${PREFIX}/${PORTNAME}/lib/libastylej.so ${LN} -s ../../lib/jni/liblistSerialsj.so ${STAGEDIR}${PREFIX}/${PORTNAME}/lib/liblistSerialsj.so ${INSTALL_SCRIPT} ${BUILD_DIR}/arduino ${STAGEDIR}${PREFIX}/${PORTNAME} ${LN} -s ../${PORTNAME}/arduino ${STAGEDIR}${PREFIX}/bin/arduino ${LN} -s ../bin/arduino-builder ${STAGEDIR}${PREFIX}/arduino/arduino-builder ${CP} ${WRKSRC}/shared/icons/arduino.xpm ${STAGEDIR}/${PREFIX}/share/pixmaps ${CP} ${PATCH_WRKSRC}/build/linux/dist/desktop.template ${STAGEDIR}/${PREFIX}/share/applications/arduino.desktop ${REINPLACE_CMD} -e 's|$${version}|${PORTVERSION}|' ${STAGEDIR}${PREFIX}/${PORTNAME}/lib/version.txt .include