diff options
-rw-r--r-- | devel/arduino16/Makefile | 7 | ||||
-rw-r--r-- | devel/arduino16/pkg-plist | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/devel/arduino16/Makefile b/devel/arduino16/Makefile index f03c4108fcf1..70bf06b2a3f3 100644 --- a/devel/arduino16/Makefile +++ b/devel/arduino16/Makefile @@ -2,7 +2,7 @@ PORTNAME= arduino PORTVERSION= 1.6.12 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= devel java PKGNAMESUFFIX= 16 DIST_SUBDIR= ${PORTNAME} @@ -44,6 +44,7 @@ GH_PROJECT= Arduino 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}/../ @@ -88,6 +89,8 @@ post-extract: post-patch: ${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' ${PATCH_WRKSRC}/arduino-core/src/processing/app/BaseNoGui.java + ${REINPLACE_CMD} -e 's:<BINARY_LOCATION>:arduino:' -e 's:<ICON_NAME>:arduino:' \ + ${PATCH_WRKSRC}/build/linux/dist/desktop.template do-install: ${MKDIR} ${STAGEDIR}${PREFIX}/${PORTNAME} @@ -101,5 +104,7 @@ do-install: ${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 .include <bsd.port.mk> diff --git a/devel/arduino16/pkg-plist b/devel/arduino16/pkg-plist index 4883b901dc0b..c99281319fb8 100644 --- a/devel/arduino16/pkg-plist +++ b/devel/arduino16/pkg-plist @@ -2053,3 +2053,5 @@ arduino/tools/WiFi101/src/cc/arduino/plugins/wifi101/flashers/java/JavaFlasher.j arduino/tools/WiFi101/src/cc/arduino/plugins/wifi101/flashers/java/SSLCertDownloader.java arduino/tools/howto.txt bin/arduino +share/applications/arduino.desktop +share/pixmaps/arduino.xpm |