aboutsummaryrefslogtreecommitdiff
path: root/multimedia/libv4l
diff options
context:
space:
mode:
authorHans Petter Selasky <hselasky@FreeBSD.org>2020-04-17 14:44:01 +0000
committerHans Petter Selasky <hselasky@FreeBSD.org>2020-04-17 14:44:01 +0000
commit56950229aeff017d912bb3d4757efc805c7db183 (patch)
tree4c04b19416dceaa90a56e0f0d7d89ed9bc564b2f /multimedia/libv4l
parentf6acd4bf78278d7a630b59b0b95ba982c1505b03 (diff)
downloadports-56950229aeff017d912bb3d4757efc805c7db183.tar.gz
ports-56950229aeff017d912bb3d4757efc805c7db183.zip
Use BINARY_ALIAS feature to replace sed with gsed.
Suggested by: kevans and bapt Approved by: pi (implicit)
Notes
Notes: svn path=/head/; revision=531935
Diffstat (limited to 'multimedia/libv4l')
-rw-r--r--multimedia/libv4l/Makefile5
1 files changed, 1 insertions, 4 deletions
diff --git a/multimedia/libv4l/Makefile b/multimedia/libv4l/Makefile
index d414310c6505..051923887bb7 100644
--- a/multimedia/libv4l/Makefile
+++ b/multimedia/libv4l/Makefile
@@ -36,6 +36,7 @@ CONFIGURE_ARGS= \
--disable-qv4l2 \
--disable-qvidcap \
--disable-nls
+BINARY_ALIAS= sed=gsed
INSTALL_TARGET= install-strip
.endif
@@ -68,10 +69,6 @@ post-patch:
@${RM} -r ${WRKDIR}/v4l-utils-${PORTVERSION}/contrib/freebsd/include/*
# Apply webcamd patches first
@(cd ${WRKDIR}/webcamd-${WEBCAMDVERSION}/patches && ${SH} ./do_patch.sh)
-# Patch Makefiles to use GNU-sed
- @${FIND} ${WRKDIR}/v4l-utils-${PORTVERSION} -type f \( -iname "Makefile*" \) | \
- ${XARGS} -n 10 ${REINPLACE_CMD} \
- -e 's|^\([[:space:]]*\)sed |\1${LOCALBASE}/bin/gsed |'
# Patch all source files
@${FIND} ${WRKDIR} -type f \( -iname "*.[ch]" -or -iname "*.cpp" -or -iname "msg2ctl.pl" \) | \
${XARGS} -n 10 ${REINPLACE_CMD} \