| @@ -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 | |
8 | GNU_CONFIGURE= yes | | 8 | GNU_CONFIGURE= yes |
9 | USE_TOOLS+= pkg-config perl gmake autoconf213 unzip zip | | 9 | USE_TOOLS+= pkg-config perl gmake autoconf213 unzip zip |
10 | USE_LANGUAGES+= c99 c++ | | 10 | USE_LANGUAGES+= c99 c++ |
11 | UNLIMIT_RESOURCES+= datasize | | 11 | UNLIMIT_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 |
80 | CONFIGURE_ARGS+= --enable-extensions=gio | | 80 | CONFIGURE_ARGS+= --enable-extensions=gio |
81 | CONFIGURE_ARGS+= --disable-mochitest | | 81 | CONFIGURE_ARGS+= --disable-mochitest |
82 | CONFIGURE_ARGS+= --enable-canvas | | 82 | CONFIGURE_ARGS+= --enable-canvas |
83 | #CONFIGURE_ARGS+= --enable-readline | | 83 | #CONFIGURE_ARGS+= --enable-readline |
84 | CONFIGURE_ARGS+= --disable-installer | | 84 | CONFIGURE_ARGS+= --disable-installer |
85 | CONFIGURE_ARGS+= --enable-url-classifier | | 85 | CONFIGURE_ARGS+= --enable-url-classifier |
86 | #CONFIGURE_ARGS+= --enable-startup-notification | | 86 | #CONFIGURE_ARGS+= --enable-startup-notification |
87 | CONFIGURE_ARGS+= --enable-shared-js | | 87 | CONFIGURE_ARGS+= --enable-shared-js |
88 | CONFIGURE_ARGS+= --with-system-ply | | 88 | CONFIGURE_ARGS+= --with-system-ply |
89 | CONFIGURE_ARGS+= --disable-icf | | 89 | CONFIGURE_ARGS+= --disable-icf |
90 | CONFIGURE_ARGS+= --disable-necko-wifi | | 90 | CONFIGURE_ARGS+= --disable-necko-wifi |
91 | CONFIGURE_ARGS+= --disable-updater | | 91 | CONFIGURE_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].*) |
| | | 98 | CONFIGURE_ARGS+= --enable-macos-target=10.3 |
| | | 99 | . elif !empty(OS_VERSION:M8.*) |
| | | 100 | CONFIGURE_ARGS+= --enable-macos-target=10.4 |
| | | 101 | . elif !empty(OS_VERSION:M9.*) |
| | | 102 | CONFIGURE_ARGS+= --enable-macos-target=10.5 |
| | | 103 | . endif |
| | | 104 | .endif |
| | | 105 | |
93 | SUBST_CLASSES+= fix-paths | | 106 | SUBST_CLASSES+= fix-paths |
94 | SUBST_STAGE.fix-paths= pre-configure | | 107 | SUBST_STAGE.fix-paths= pre-configure |
95 | SUBST_MESSAGE.fix-paths= Fixing absolute paths. | | 108 | SUBST_MESSAGE.fix-paths= Fixing absolute paths. |
96 | SUBST_FILES.fix-paths= ${MOZILLA_DIR}xpcom/build/nsXPCOMPrivate.h | | 109 | SUBST_FILES.fix-paths= ${MOZILLA_DIR}xpcom/build/nsXPCOMPrivate.h |
97 | SUBST_FILES.fix-paths+= ${MOZILLA_DIR}xpcom/io/nsAppFileLocationProvider.cpp | | 110 | SUBST_FILES.fix-paths+= ${MOZILLA_DIR}xpcom/io/nsAppFileLocationProvider.cpp |
98 | SUBST_SED.fix-paths+= -e 's,/usr/lib/mozilla/plugins,${PREFIX}/lib/netscape/plugins,g' | | 111 | SUBST_SED.fix-paths+= -e 's,/usr/lib/mozilla/plugins,${PREFIX}/lib/netscape/plugins,g' |
99 | | | 112 | |
100 | CONFIG_GUESS_OVERRIDE+= ${MOZILLA_DIR}build/autoconf/config.guess | | 113 | CONFIG_GUESS_OVERRIDE+= ${MOZILLA_DIR}build/autoconf/config.guess |
101 | CONFIG_GUESS_OVERRIDE+= ${MOZILLA_DIR}js/src/build/autoconf/config.guess | | 114 | CONFIG_GUESS_OVERRIDE+= ${MOZILLA_DIR}js/src/build/autoconf/config.guess |
102 | CONFIG_GUESS_OVERRIDE+= ${MOZILLA_DIR}nsprpub/build/autoconf/config.guess | | 115 | CONFIG_GUESS_OVERRIDE+= ${MOZILLA_DIR}nsprpub/build/autoconf/config.guess |
103 | CONFIG_GUESS_OVERRIDE+= ${MOZILLA_DIR}/js/ctypes/libffi/config.guess | | 116 | CONFIG_GUESS_OVERRIDE+= ${MOZILLA_DIR}/js/ctypes/libffi/config.guess |
104 | CONFIG_SUB_OVERRIDE+= ${MOZILLA_DIR}build/autoconf/config.sub | | 117 | CONFIG_SUB_OVERRIDE+= ${MOZILLA_DIR}build/autoconf/config.sub |
105 | CONFIG_SUB_OVERRIDE+= ${MOZILLA_DIR}js/src/build/autoconf/config.sub | | 118 | CONFIG_SUB_OVERRIDE+= ${MOZILLA_DIR}js/src/build/autoconf/config.sub |