svn commit: r346811 - head/multimedia/gstreamer1-libav
Koop Mast
kwm at FreeBSD.org
Sun Mar 2 21:39:23 UTC 2014
Author: kwm
Date: Sun Mar 2 21:39:22 2014
New Revision: 346811
URL: http://svnweb.freebsd.org/changeset/ports/346811
QAT: https://qat.redports.org/buildarchive/r346811/
Log:
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]
Modified:
head/multimedia/gstreamer1-libav/Makefile
Modified: head/multimedia/gstreamer1-libav/Makefile
==============================================================================
--- head/multimedia/gstreamer1-libav/Makefile Sun Mar 2 21:35:56 2014 (r346810)
+++ head/multimedia/gstreamer1-libav/Makefile Sun Mar 2 21:39:22 2014 (r346811)
@@ -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:${PO
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
More information about the svn-ports-all
mailing list