summaryrefslogtreecommitdiff
path: root/multimedia
diff options
context:
space:
mode:
authorBernhard Froehlich <decke@FreeBSD.org>2019-01-14 16:06:03 +0000
committerBernhard Froehlich <decke@FreeBSD.org>2019-01-14 16:06:03 +0000
commit9c2ee92f7e86b59edd066604d3dacaaa6d28638b (patch)
tree66c7fbdd0c74513d63260c0968294262a46f603f /multimedia
parentsecurity/strongswan: update to version 5.7.2 (diff)
multimedia/dvb-apps: Fix build with GCC-based architectures
PR: 234942 Submitted by: Piotr Kubaj <pkubaj@anongoth.pl> MFH: 2019Q1
Notes
Notes: svn path=/head/; revision=490299
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/dvb-apps/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/multimedia/dvb-apps/Makefile b/multimedia/dvb-apps/Makefile
index 7240c0299d5e..250a96c8c445 100644
--- a/multimedia/dvb-apps/Makefile
+++ b/multimedia/dvb-apps/Makefile
@@ -16,14 +16,12 @@ LICENSE_FILE= ${WRKSRC}/COPYING.LGPL
BUILD_DEPENDS= ${LOCALBASE}/include/linux/dvb/version.h:multimedia/v4l_compat \
${LOCALBASE}/include/linux/input.h:devel/evdev-proto
-USES= gmake iconv perl5 tar:bzip2
+USES= gmake iconv localbase:ldflags perl5 tar:bzip2
USE_LDCONFIG= yes
USE_PERL5= build
MAKE_ARGS+= prefix="${PREFIX}"
-CFLAGS+= -I${LOCALBASE}/include -Wno-int-conversion
-LDFLAGS+= -L${LOCALBASE}/lib
post-patch:
@${REINPLACE_CMD} 's|/usr/include|${LOCALBASE}/include|' \
@@ -49,5 +47,9 @@ post-patch:
${WRKSRC}/test/test_vevent.c \
${WRKSRC}/test/test_stillimage.c \
${WRKSRC}/test/test_av.c
+.if exists(/usr/lib/libstdc++.so)
+ @${REINPLACE_CMD} -e 's/-Wno-packed-bitfield-compat//' \
+ ${WRKSRC}/util/scan/Makefile
+.endif
.include <bsd.port.mk>