summaryrefslogtreecommitdiff
path: root/multimedia/x264-devel/Makefile
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2008-03-11 13:20:29 +0000
committertron <tron@pkgsrc.org>2008-03-11 13:20:29 +0000
commit9dbe14055f959c0874b7682e7535ea53dc4709e6 (patch)
tree6a1c336434abcef194df46694e415921554235fc /multimedia/x264-devel/Makefile
parent6a6d8bb2e2bc7aa169be31b04ecc2e7b9e84cbe3 (diff)
downloadpkgsrc-9dbe14055f959c0874b7682e7535ea53dc4709e6.tar.gz
Fix build under Mac OS X PPC.
Diffstat (limited to 'multimedia/x264-devel/Makefile')
-rw-r--r--multimedia/x264-devel/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/multimedia/x264-devel/Makefile b/multimedia/x264-devel/Makefile
index 2363b9013da..f4bf23b2332 100644
--- a/multimedia/x264-devel/Makefile
+++ b/multimedia/x264-devel/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2008/03/10 11:59:26 drochner Exp $
+# $NetBSD: Makefile,v 1.9 2008/03/11 13:20:29 tron Exp $
#
SNAPSHOT_DATE= 20071218
@@ -22,6 +22,14 @@ PKG_DESTDIR_SUPPORT= user-destdir
BUILD_DEPENDS+= yasm>=0.4.0:../../devel/yasm
.endif
+# Avoid linker warning under Mac OS X PPC.
+.if empty(MACHINE_PLATFORM:MDarwin-*-powerpc)
+DARWIN_PPC_LDFLAGS=
+.else
+DARWIN_PPC_LDFLAGS= -Wl,-read_only_relocs -Wl,suppress
+.endif
+MAKE_ENV+= DARWIN_PPC_LDFLAGS=${DARWIN_PPC_LDFLAGS:Q}
+
USE_TOOLS+= gmake
USE_LIBTOOL= yes