summaryrefslogtreecommitdiffstats
path: root/multimedia/gstreamer-plugins80/Makefile
diff options
context:
space:
mode:
authorkwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059>2004-12-18 05:59:27 +0800
committerkwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059>2004-12-18 05:59:27 +0800
commitc08fdb2fee234bd6d4f5e74e9a4c41b99908694f (patch)
treeeea85fef5ccfae4f04d6981234f587cb2d9b4a65 /multimedia/gstreamer-plugins80/Makefile
parent2cd0805e70202c831d8983142bc9efb47c2d931c (diff)
downloadmarcuscom-ports-c08fdb2fee234bd6d4f5e74e9a4c41b99908694f.tar
marcuscom-ports-c08fdb2fee234bd6d4f5e74e9a4c41b99908694f.tar.gz
marcuscom-ports-c08fdb2fee234bd6d4f5e74e9a4c41b99908694f.tar.bz2
marcuscom-ports-c08fdb2fee234bd6d4f5e74e9a4c41b99908694f.tar.lz
marcuscom-ports-c08fdb2fee234bd6d4f5e74e9a4c41b99908694f.tar.xz
marcuscom-ports-c08fdb2fee234bd6d4f5e74e9a4c41b99908694f.tar.zst
marcuscom-ports-c08fdb2fee234bd6d4f5e74e9a4c41b99908694f.zip
Sync with recent commit.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@3260 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'multimedia/gstreamer-plugins80/Makefile')
-rw-r--r--multimedia/gstreamer-plugins80/Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/multimedia/gstreamer-plugins80/Makefile b/multimedia/gstreamer-plugins80/Makefile
index 74077cc56..61810b086 100644
--- a/multimedia/gstreamer-plugins80/Makefile
+++ b/multimedia/gstreamer-plugins80/Makefile
@@ -122,13 +122,23 @@ post-patch:
# speex fix -- speex.h has moved to include/speex/speex.h
@${REINPLACE_CMD} -e 's|-I.|-I. -I${LOCALBASE}/include/speex|' \
${WRKSRC}/ext/speex/Makefile.in
+.if ${CXXFLAGS:M*=athlon-4} || ${CXXFLAGS:M*=athlon-mp} || ${CXXFLAGS:M*=athlon-xp}
# Fix gst-register when using -O -march=athlon-xp
@${REINPLACE_CMD} -e 's|@CXXF|-fgcse @CXXF|g' \
${WRKSRC}/gst/modplug/Makefile.in \
${WRKSRC}/gst/modplug/libmodplug/Makefile.in
+.endif
# tell configure where the musepack includes live
@${REINPLACE_CMD} -e 's|/usr/include/musepack|${LOCALBASE}/include/musepack|g' \
${WRKSRC}/configure
+# This port cannot be CFLAGS safe, when using p4 optimizations
+# because it breaks the mod plugin
+ @${REINPLACE_CMD} -E \
+ -e 's|(-march=pentiu)m4|\1m3|g' \
+ -e 's|(-mcpu=pentiu)m4|\1m3|g' \
+ -e 's|(-mtune=pentiu)m)4|\1m3|g' \
+ ${WRKSRC}/gst/modplug/Makefile \
+ ${WRKSRC}/gst/modplug/libmodplug/Makefile
post-build:
.ifdef(EXTRA_BUILD_DIR)