aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia
diff options
context:
space:
mode:
authornox <nox@FreeBSD.org>2014-02-28 04:03:51 +0800
committernox <nox@FreeBSD.org>2014-02-28 04:03:51 +0800
commit9241143c08cfa06c2392d0af1ba38bd27c04a307 (patch)
tree618f211704c10378d2e562d15220a92b8cbaf676 /multimedia
parent717f0868097b7d7b6066288806cc97fa857cdf8b (diff)
downloadfreebsd-ports-graphics-9241143c08cfa06c2392d0af1ba38bd27c04a307.tar.gz
freebsd-ports-graphics-9241143c08cfa06c2392d0af1ba38bd27c04a307.tar.zst
freebsd-ports-graphics-9241143c08cfa06c2392d0af1ba38bd27c04a307.zip
Fix build with clang 3.4 .
PR: ports/187017 Submitted by: truckman
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/libxine/Makefile16
1 files changed, 12 insertions, 4 deletions
diff --git a/multimedia/libxine/Makefile b/multimedia/libxine/Makefile
index d0e4e423ed9..508bf328333 100644
--- a/multimedia/libxine/Makefile
+++ b/multimedia/libxine/Makefile
@@ -37,7 +37,7 @@ BUILD_DEPENDS+= v4l_compat>=1.0.20100321:${PORTSDIR}/multimedia/v4l_compat
LIB_DEPENDS+= libdvdcss.so.${DVDCSS_LIBVERSION}:${PORTSDIR}/multimedia/libdvdcss
.endif
-USES= gmake iconv pathfix perl5 pkgconfig
+USES= gmake iconv pathfix perl5 pkgconfig compiler:features
USE_XZ= yes
GNU_CONFIGURE= yes
WANT_GNOME= yes
@@ -51,7 +51,7 @@ CONFIGURE_ENV= THREAD_CFLAGS="${PTHREAD_CFLAGS}" \
EXTRA_X_LIBS="-lGL -lGLU -lXext -lX11 -lm"
CPPFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/ffmpeg
LDFLAGS+= -L${LOCALBASE}/lib
-CFLAGS+= -fno-force-addr -I${LOCALBASE}/include -I${LOCALBASE}/include/dvdread -I${LOCALBASE}/include/ffmeg
+CFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/dvdread -I${LOCALBASE}/include/ffmeg
CONFIGURE_ARGS= --with-w32-path=${LOCALBASE}/lib/win32 \
--enable-ipv6 \
--with-external-libmad \
@@ -79,7 +79,11 @@ DVDCSS_LIBVERSION= 3
PATCH_DIST_ARGS= -d ${WRKSRC} -p1 --forward --quiet
-.include <bsd.port.options.mk>
+.include <bsd.port.pre.mk>
+
+.if ${COMPILER_TYPE} != "clang"
+CFLAGS+= -fno-force-addr
+.endif
.if ${ARCH} == "i386"
CFLAGS+= -fomit-frame-pointer
@@ -222,6 +226,10 @@ CONFIGURE_ARGS+= --disable-vidix
.endif
post-patch:
+.if ${COMPILER_TYPE} == "clang"
+ @${REINPLACE_CMD} -e 's|-fno-rename-registers||' \
+ ${WRKSRC}/src/libw32dll/wine/Makefile.in
+.endif
.if ${PORT_OPTIONS:MVAAPI}
@${REINPLACE_CMD} -e 's|-ldl||' \
${WRKSRC}/src/video_out/Makefile.in
@@ -258,4 +266,4 @@ pre-configure:
s|{libdir}/pkgconfig|{prefix}/libdata/pkgconfig|g' \
${WRKSRC}/configure
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>