From 8b956d78d19d99eadebfdeace53bdde295447895 Mon Sep 17 00:00:00 2001 From: kwm Date: Sun, 2 Mar 2014 21:39:22 +0000 Subject: Only set -fno-force-addr in CFLAGS when the compiler is gcc. [1] Fix the build on ppc64 by telling the libav bundled which arch we are on [2] PR: ports/187018 [1] ports/183129 [2] Submitted by: truckman@ [1] jhibbits@ [2] --- multimedia/gstreamer1-libav/Makefile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'multimedia') diff --git a/multimedia/gstreamer1-libav/Makefile b/multimedia/gstreamer1-libav/Makefile index 1efc3878cba..a0e67ebbcef 100644 --- a/multimedia/gstreamer1-libav/Makefile +++ b/multimedia/gstreamer1-libav/Makefile @@ -21,12 +21,11 @@ USE_XZ= yes USE_LDCONFIG= yes USE_GSTREAMER1= yes GNU_CONFIGURE= yes -USES= gmake pkgconfig +USES= compiler:features gmake pkgconfig LIBAV_CONFIG= --cc=${CC} \ --enable-runtime-cpudetect \ --enable-pic LDFLAGS+= -Wl,-Bsymbolic -CFLAGS+= -fno-force-addr PLIST_SUB= VERSION="1.0" @@ -57,6 +56,14 @@ BUILD_DEPENDS+= ${LOCALBASE}/bin/as:${PORTSDIR}/devel/binutils MAKE_ENV= COMPILER_PATH=${LOCALBASE}/bin .endif +.if ${ARCH} == powerpc64 +FFMPEG_CONFIG+= --arch=ppc64 +.endif + +.if ${COMPILER_TYPE} == "gcc" +CFLAGS+= -fno-force-addr +.endif + post-install: @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/gstreamer-1.0/libgstlibav.so -- cgit