Browse Source

multimedia/dvb-apps: Fix build with GCC-based architectures

PR:		234942
Submitted by:	Piotr Kubaj <pkubaj@anongoth.pl>
Bernhard Fröhlich 3 months ago
parent
commit
2003cae254
Signed by: Bernhard Froehlich <decke@bluelife.at> GPG Key ID: 4DD88C3F9F3B8333
1 changed files with 6 additions and 3 deletions
  1. 6
    3
      multimedia/dvb-apps/Makefile

+ 6
- 3
multimedia/dvb-apps/Makefile View File

@@ -2,6 +2,7 @@
2 2
 
3 3
 PORTNAME=	dvb-apps
4 4
 PORTVERSION=	1.1.2.1505
5
+PORTREVISION=	1
5 6
 CATEGORIES=	multimedia
6 7
 MASTER_SITES=	LOCAL/decke
7 8
 DISTNAME=	${PORTNAME}-3d43b280298c
@@ -14,14 +15,12 @@ LICENSE_FILE=	${WRKSRC}/COPYING.LGPL
14 15
 
15 16
 BUILD_DEPENDS=	${LOCALBASE}/include/linux/dvb/version.h:multimedia/v4l_compat
16 17
 
17
-USES=		gmake iconv perl5 tar:bzip2
18
+USES=		gmake iconv localbase:ldflags perl5 tar:bzip2
18 19
 
19 20
 USE_LDCONFIG=	yes
20 21
 USE_PERL5=	build
21 22
 
22 23
 MAKE_ARGS+=	prefix="${PREFIX}"
23
-CFLAGS+=	-I${LOCALBASE}/include -Wno-int-conversion
24
-LDFLAGS+=	-L${LOCALBASE}/lib
25 24
 
26 25
 post-patch:
27 26
 	@${REINPLACE_CMD} 's|/usr/include|${LOCALBASE}/include|' \
@@ -47,5 +46,9 @@ post-patch:
47 46
 		${WRKSRC}/test/test_vevent.c \
48 47
 		${WRKSRC}/test/test_stillimage.c \
49 48
 		${WRKSRC}/test/test_av.c
49
+.if exists(/usr/lib/libstdc++.so)
50
+	@${REINPLACE_CMD} -e 's/-Wno-packed-bitfield-compat//' \
51
+		${WRKSRC}/util/scan/Makefile
52
+.endif
50 53
 
51 54
 .include <bsd.port.mk>

Loading…
Cancel
Save