svn commit: r490299 - head/multimedia/dvb-apps
Bernhard Froehlich
decke at FreeBSD.org
Mon Jan 14 16:06:04 UTC 2019
Author: decke
Date: Mon Jan 14 16:06:03 2019
New Revision: 490299
URL: https://svnweb.freebsd.org/changeset/ports/490299
Log:
multimedia/dvb-apps: Fix build with GCC-based architectures
PR: 234942
Submitted by: Piotr Kubaj <pkubaj at anongoth.pl>
MFH: 2019Q1
Modified:
head/multimedia/dvb-apps/Makefile
Modified: head/multimedia/dvb-apps/Makefile
==============================================================================
--- head/multimedia/dvb-apps/Makefile Mon Jan 14 16:00:49 2019 (r490298)
+++ head/multimedia/dvb-apps/Makefile Mon Jan 14 16:06:03 2019 (r490299)
@@ -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>
More information about the svn-ports-all
mailing list