summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2004-01-25 16:14:15 +0000
committerjlam <jlam@pkgsrc.org>2004-01-25 16:14:15 +0000
commitdc366f6166ede72855a07fd6f1d48ac85fa2e38d (patch)
tree1c8fba648e1e1df537fc5d2c4d64eb51ef7b337a
parentc64695fb04648f30efbfa0e20077597937301d0f (diff)
downloadpkgsrc-dc366f6166ede72855a07fd6f1d48ac85fa2e38d.tar.gz
bl3ify and fix issue with MIPSpro compiler and this package by stripping
"-O3" from the compiler options.
-rw-r--r--audio/flac/Makefile13
1 files changed, 10 insertions, 3 deletions
diff --git a/audio/flac/Makefile b/audio/flac/Makefile
index d6235ff9d84..10e262a04cb 100644
--- a/audio/flac/Makefile
+++ b/audio/flac/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.16 2004/01/22 07:15:00 grant Exp $
+# $NetBSD: Makefile,v 1.17 2004/01/25 16:14:15 jlam Exp $
#
DISTNAME= flac-1.1.0
@@ -17,7 +17,7 @@ BUILD_DEPENDS+= nasm>=0.98:../../devel/nasm
.endif
WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
-USE_BUILDLINK2= yes
+USE_BUILDLINK3= yes
USE_GNU_TOOLS+= make
GNU_CONFIGURE= yes
CONFIGURE_ENV+= ac_cv_path_XMMS_CONFIG="no"
@@ -25,5 +25,12 @@ CONFIGURE_ENV+= ac_cv_path_XMMS_CONFIG="no"
USE_LIBTOOL= yes
LIBTOOL_OVERRIDE= ${WRKSRC}/libtool
-.include "../../audio/libogg/buildlink2.mk"
+# This version of flac doesn't seem to build correctly with -O3 using
+# the MIPSpro compiler.
+#
+.if defined(USE_MIPSPRO)
+BUILDLINK_TRANSFORM+= S:-O3:
+.endif
+
+.include "../../audio/libogg/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"