Wed May 28 06:25:59 2014 UTC ()
PR pkg/48840: Set the MacOS X version requirement appropriately

Otherwise ${WRKSRC}/media/libcubeb/src/cubeb_audiounit.c can not be
built on MacOS X < 10.6


(pho)
diff -r1.34 -r1.35 pkgsrc/www/firefox/mozilla-common.mk

cvs diff -r1.34 -r1.35 pkgsrc/www/firefox/mozilla-common.mk (expand / switch to unified diff)

--- pkgsrc/www/firefox/mozilla-common.mk 2014/05/28 03:33:19 1.34
+++ pkgsrc/www/firefox/mozilla-common.mk 2014/05/28 06:25:58 1.35
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: mozilla-common.mk,v 1.34 2014/05/28 03:33:19 pho Exp $ 1# $NetBSD: mozilla-common.mk,v 1.35 2014/05/28 06:25:58 pho Exp $
2# 2#
3# common Makefile fragment for mozilla packages based on gecko 2.0. 3# common Makefile fragment for mozilla packages based on gecko 2.0.
4# 4#
5# used by www/firefox/Makefile 5# used by www/firefox/Makefile
6# used by www/seamonkey/Makefile 6# used by www/seamonkey/Makefile
7 7
8GNU_CONFIGURE= yes 8GNU_CONFIGURE= yes
9USE_TOOLS+= pkg-config perl gmake autoconf213 unzip zip 9USE_TOOLS+= pkg-config perl gmake autoconf213 unzip zip
10USE_LANGUAGES+= c99 c++ 10USE_LANGUAGES+= c99 c++
11UNLIMIT_RESOURCES+= datasize 11UNLIMIT_RESOURCES+= datasize
12 12
13.include "../../mk/bsd.prefs.mk" 13.include "../../mk/bsd.prefs.mk"
14# tar(1) of OpenBSD 5.5 has no --exclude command line option. 14# tar(1) of OpenBSD 5.5 has no --exclude command line option.
@@ -80,26 +80,39 @@ CONFIGURE_ARGS+= --enable-gio @@ -80,26 +80,39 @@ CONFIGURE_ARGS+= --enable-gio
80CONFIGURE_ARGS+= --enable-extensions=gio 80CONFIGURE_ARGS+= --enable-extensions=gio
81CONFIGURE_ARGS+= --disable-mochitest 81CONFIGURE_ARGS+= --disable-mochitest
82CONFIGURE_ARGS+= --enable-canvas 82CONFIGURE_ARGS+= --enable-canvas
83#CONFIGURE_ARGS+= --enable-readline 83#CONFIGURE_ARGS+= --enable-readline
84CONFIGURE_ARGS+= --disable-installer 84CONFIGURE_ARGS+= --disable-installer
85CONFIGURE_ARGS+= --enable-url-classifier 85CONFIGURE_ARGS+= --enable-url-classifier
86#CONFIGURE_ARGS+= --enable-startup-notification 86#CONFIGURE_ARGS+= --enable-startup-notification
87CONFIGURE_ARGS+= --enable-shared-js 87CONFIGURE_ARGS+= --enable-shared-js
88CONFIGURE_ARGS+= --with-system-ply 88CONFIGURE_ARGS+= --with-system-ply
89CONFIGURE_ARGS+= --disable-icf 89CONFIGURE_ARGS+= --disable-icf
90CONFIGURE_ARGS+= --disable-necko-wifi 90CONFIGURE_ARGS+= --disable-necko-wifi
91CONFIGURE_ARGS+= --disable-updater 91CONFIGURE_ARGS+= --disable-updater
92 92
 93# Set the MacOS X version requirement appropriately.
 94# Otherwise ${WRKSRC}/media/libcubeb/src/cubeb_audiounit.c can not be
 95# built on MacOS X < 10.6
 96.if ${OPSYS} == "Darwin"
 97. if !empty(OS_VERSION:M[0-7].*)
 98CONFIGURE_ARGS+= --enable-macos-target=10.3
 99. elif !empty(OS_VERSION:M8.*)
 100CONFIGURE_ARGS+= --enable-macos-target=10.4
 101. elif !empty(OS_VERSION:M9.*)
 102CONFIGURE_ARGS+= --enable-macos-target=10.5
 103. endif
 104.endif
 105
93SUBST_CLASSES+= fix-paths 106SUBST_CLASSES+= fix-paths
94SUBST_STAGE.fix-paths= pre-configure 107SUBST_STAGE.fix-paths= pre-configure
95SUBST_MESSAGE.fix-paths= Fixing absolute paths. 108SUBST_MESSAGE.fix-paths= Fixing absolute paths.
96SUBST_FILES.fix-paths= ${MOZILLA_DIR}xpcom/build/nsXPCOMPrivate.h 109SUBST_FILES.fix-paths= ${MOZILLA_DIR}xpcom/build/nsXPCOMPrivate.h
97SUBST_FILES.fix-paths+= ${MOZILLA_DIR}xpcom/io/nsAppFileLocationProvider.cpp 110SUBST_FILES.fix-paths+= ${MOZILLA_DIR}xpcom/io/nsAppFileLocationProvider.cpp
98SUBST_SED.fix-paths+= -e 's,/usr/lib/mozilla/plugins,${PREFIX}/lib/netscape/plugins,g' 111SUBST_SED.fix-paths+= -e 's,/usr/lib/mozilla/plugins,${PREFIX}/lib/netscape/plugins,g'
99 112
100CONFIG_GUESS_OVERRIDE+= ${MOZILLA_DIR}build/autoconf/config.guess 113CONFIG_GUESS_OVERRIDE+= ${MOZILLA_DIR}build/autoconf/config.guess
101CONFIG_GUESS_OVERRIDE+= ${MOZILLA_DIR}js/src/build/autoconf/config.guess 114CONFIG_GUESS_OVERRIDE+= ${MOZILLA_DIR}js/src/build/autoconf/config.guess
102CONFIG_GUESS_OVERRIDE+= ${MOZILLA_DIR}nsprpub/build/autoconf/config.guess 115CONFIG_GUESS_OVERRIDE+= ${MOZILLA_DIR}nsprpub/build/autoconf/config.guess
103CONFIG_GUESS_OVERRIDE+= ${MOZILLA_DIR}/js/ctypes/libffi/config.guess 116CONFIG_GUESS_OVERRIDE+= ${MOZILLA_DIR}/js/ctypes/libffi/config.guess
104CONFIG_SUB_OVERRIDE+= ${MOZILLA_DIR}build/autoconf/config.sub 117CONFIG_SUB_OVERRIDE+= ${MOZILLA_DIR}build/autoconf/config.sub
105CONFIG_SUB_OVERRIDE+= ${MOZILLA_DIR}js/src/build/autoconf/config.sub 118CONFIG_SUB_OVERRIDE+= ${MOZILLA_DIR}js/src/build/autoconf/config.sub