Browse Source

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

PR:		234942
Submitted by:	Piotr Kubaj <pkubaj@anongoth.pl>
master
Bernhard Fröhlich 7 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 @@

PORTNAME= dvb-apps
PORTVERSION= 1.1.2.1505
PORTREVISION= 1
CATEGORIES= multimedia
MASTER_SITES= LOCAL/decke
DISTNAME= ${PORTNAME}-3d43b280298c
@@ -14,14 +15,12 @@ LICENSE_FILE= ${WRKSRC}/COPYING.LGPL

BUILD_DEPENDS= ${LOCALBASE}/include/linux/dvb/version.h:multimedia/v4l_compat

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|' \
@@ -47,5 +46,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>

Loading…
Cancel
Save