summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Leres <leres@FreeBSD.org>2024-05-06 17:47:41 -0700
committerCraig Leres <leres@FreeBSD.org>2024-05-06 17:47:41 -0700
commit760621ead617b0134ba0bc656fad29b3394c0f81 (patch)
tree09473b0f580eeb3d7dbf1637d643cb994b96a827
parentgraphics/mesa-devel: update to 24.1.b.447 (diff)
devel/arduino: Use EXTRACT_AFTER_ARGS
"Saves I/O by not extracting unused dependency" PR: 278755 Reported by: diizzy
-rw-r--r--devel/arduino/Makefile16
1 files 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