git: 760621ead617 - main - devel/arduino: Use EXTRACT_AFTER_ARGS
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 07 May 2024 00:48:12 UTC
The branch main has been updated by leres: URL: https://cgit.FreeBSD.org/ports/commit/?id=760621ead617b0134ba0bc656fad29b3394c0f81 commit 760621ead617b0134ba0bc656fad29b3394c0f81 Author: Craig Leres <leres@FreeBSD.org> AuthorDate: 2024-05-07 00:47:41 +0000 Commit: Craig Leres <leres@FreeBSD.org> CommitDate: 2024-05-07 00:47:41 +0000 devel/arduino: Use EXTRACT_AFTER_ARGS "Saves I/O by not extracting unused dependency" PR: 278755 Reported by: diizzy --- devel/arduino/Makefile | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/devel/arduino/Makefile b/devel/arduino/Makefile index c1f5614fd27b..2ca921cc51f3 100644 --- a/devel/arduino/Makefile +++ b/devel/arduino/Makefile @@ -34,6 +34,13 @@ CONFLICTS_INSTALL= arduino18 NO_BUILD= yes USE_LDCONFIG= ${PREFIX}/arduino/lib +# Remove broken jar, and Linux C6 based libraries. +# This port relys on comms/RXTX working without Linux C6 compatibility. +EXTRACT_AFTER_ARGS= --exclude hardware/tools \ + --exclude lib/RXTXcomm.jar \ + --exclude lib/librxtxSerial.so \ + --exclude lib/librxtxSerial64.so + PLIST_SUB= ARCH=${ARCH:S|i386||:S|amd64|64|} SUB_FILES= arduino pkg-message @@ -81,18 +88,9 @@ INSLIST+= examples FIND_EXPR= "${FIND_EXCLUDES} -prune" post-patch: - ${RM} -r ${WRKSRC}/hardware/tools/ ${MKDIR} ${WRKSRC}/hardware/tools/avr/ ${LN} -s ${PREFIX}/bin ${WRKSRC}/hardware/tools/avr/bin ${LN} -s ${PREFIX}/etc ${WRKSRC}/hardware/tools/avr/etc - - # Remove broken jar, and Linux C6 based libraries. - ${RM} ${WRKSRC}/lib/RXTXcomm.jar - - # This port relys on comms/RXTX working without Linux C6 compatibility. - ${RM} ${WRKSRC}/lib/librxtxSerial.so - ${RM} ${WRKSRC}/lib/librxtxSerial64.so - # Map the RXTX port for our use ${LN} -s ${JAVA_HOME}/jre/lib/ext/RXTXcomm.jar ${WRKSRC}/lib/RXTXcomm.jar