fix solaris build and add dtrace option to firefox24diff -r1.6 -r1.7 pkgsrc/www/firefox24/Makefile
(richard)
@@ -1,21 +1,22 @@ | @@ -1,21 +1,22 @@ | |||
1 | # $NetBSD: Makefile,v 1.6 2013/11/21 15:25:49 ryoon Exp $ | 1 | # $NetBSD: Makefile,v 1.7 2013/11/24 12:37:40 richard Exp $ | |
2 | 2 | |||
3 | FIREFOX_VER= ${MOZ_BRANCH}${MOZ_BRANCH_MINOR} | 3 | FIREFOX_VER= ${MOZ_BRANCH}${MOZ_BRANCH_MINOR} | |
4 | MOZ_BRANCH= 24.1.1 | 4 | MOZ_BRANCH= 24.1.1 | |
5 | MOZ_BRANCH_MINOR= esr | 5 | MOZ_BRANCH_MINOR= esr | |
6 | 6 | |||
7 | DISTNAME= firefox-${FIREFOX_VER}.source | 7 | DISTNAME= firefox-${FIREFOX_VER}.source | |
8 | PKGNAME= firefox24-${MOZ_BRANCH}${MOZ_BRANCH_MINOR:S/b/beta/:S/esr//} | 8 | PKGNAME= firefox24-${MOZ_BRANCH}${MOZ_BRANCH_MINOR:S/b/beta/:S/esr//} | |
9 | PKGREVISION= 1 | |||
9 | CATEGORIES= www | 10 | CATEGORIES= www | |
10 | #MASTER_SITES= ${MASTER_SITE_MOZILLA:=firefox/releases/${FIREFOX_VER}/source/} | 11 | #MASTER_SITES= ${MASTER_SITE_MOZILLA:=firefox/releases/${FIREFOX_VER}/source/} | |
11 | MASTER_SITES+= ${MASTER_SITE_MOZILLA_ALL:=firefox/releases/${FIREFOX_VER}/source/} | 12 | MASTER_SITES+= ${MASTER_SITE_MOZILLA_ALL:=firefox/releases/${FIREFOX_VER}/source/} | |
12 | EXTRACT_SUFX= .tar.bz2 | 13 | EXTRACT_SUFX= .tar.bz2 | |
13 | 14 | |||
14 | WRKSRC= ${WRKDIR}/mozilla-esr24 | 15 | WRKSRC= ${WRKDIR}/mozilla-esr24 | |
15 | 16 | |||
16 | MAINTAINER= ryoon@NetBSD.org | 17 | MAINTAINER= ryoon@NetBSD.org | |
17 | HOMEPAGE= http://www.mozilla.com/en-US/firefox/ | 18 | HOMEPAGE= http://www.mozilla.com/en-US/firefox/ | |
18 | COMMENT= Web browser with support for extensions | 19 | COMMENT= Web browser with support for extensions | |
19 | LICENSE= mpl-1.1 | 20 | LICENSE= mpl-1.1 | |
20 | 21 | |||
21 | MOZILLA_DIR= # empty | 22 | MOZILLA_DIR= # empty |
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | @comment $NetBSD: PLIST,v 1.1 2013/11/03 04:51:59 ryoon Exp $ | 1 | @comment $NetBSD: PLIST,v 1.2 2013/11/24 12:37:40 richard Exp $ | |
2 | bin/firefox24 | 2 | bin/firefox24 | |
3 | include/firefox24/AbstractMediaDecoder.h | 3 | include/firefox24/AbstractMediaDecoder.h | |
4 | include/firefox24/AccEvent.h | 4 | include/firefox24/AccEvent.h | |
5 | include/firefox24/AnimationCommon.h | 5 | include/firefox24/AnimationCommon.h | |
6 | include/firefox24/AudioAvailableEventManager.h | 6 | include/firefox24/AudioAvailableEventManager.h | |
7 | include/firefox24/AudioChannelAgent.h | 7 | include/firefox24/AudioChannelAgent.h | |
8 | include/firefox24/AudioChannelCommon.h | 8 | include/firefox24/AudioChannelCommon.h | |
9 | include/firefox24/AudioChannelFormat.h | 9 | include/firefox24/AudioChannelFormat.h | |
10 | include/firefox24/AudioChannelService.h | 10 | include/firefox24/AudioChannelService.h | |
11 | include/firefox24/AudioChannelServiceChild.h | 11 | include/firefox24/AudioChannelServiceChild.h | |
12 | include/firefox24/AudioEventTimeline.h | 12 | include/firefox24/AudioEventTimeline.h | |
13 | include/firefox24/AudioNodeEngine.h | 13 | include/firefox24/AudioNodeEngine.h | |
14 | include/firefox24/AudioNodeStream.h | 14 | include/firefox24/AudioNodeStream.h | |
@@ -250,26 +250,27 @@ include/firefox24/imgIScriptedNotificati | @@ -250,26 +250,27 @@ include/firefox24/imgIScriptedNotificati | |||
250 | include/firefox24/imgITools.h | 250 | include/firefox24/imgITools.h | |
251 | include/firefox24/imgLoader.h | 251 | include/firefox24/imgLoader.h | |
252 | include/firefox24/imgRequest.h | 252 | include/firefox24/imgRequest.h | |
253 | include/firefox24/imgRequestProxy.h | 253 | include/firefox24/imgRequestProxy.h | |
254 | include/firefox24/inICSSValueSearch.h | 254 | include/firefox24/inICSSValueSearch.h | |
255 | include/firefox24/inIDOMUtils.h | 255 | include/firefox24/inIDOMUtils.h | |
256 | include/firefox24/inIDOMView.h | 256 | include/firefox24/inIDOMView.h | |
257 | include/firefox24/inIDeepTreeWalker.h | 257 | include/firefox24/inIDeepTreeWalker.h | |
258 | include/firefox24/inIFlasher.h | 258 | include/firefox24/inIFlasher.h | |
259 | include/firefox24/inISearchObserver.h | 259 | include/firefox24/inISearchObserver.h | |
260 | include/firefox24/inISearchProcess.h | 260 | include/firefox24/inISearchProcess.h | |
261 | include/firefox24/ipc/IPCMessageUtils.h | 261 | include/firefox24/ipc/IPCMessageUtils.h | |
262 | include/firefox24/jArray.h | 262 | include/firefox24/jArray.h | |
263 | ${PLIST.dtrace}include/firefox24/javascript-trace.h | |||
263 | include/firefox24/js-config.h | 264 | include/firefox24/js-config.h | |
264 | include/firefox24/js.msg | 265 | include/firefox24/js.msg | |
265 | include/firefox24/js/Anchor.h | 266 | include/firefox24/js/Anchor.h | |
266 | include/firefox24/js/CallArgs.h | 267 | include/firefox24/js/CallArgs.h | |
267 | include/firefox24/js/CharacterEncoding.h | 268 | include/firefox24/js/CharacterEncoding.h | |
268 | include/firefox24/js/Date.h | 269 | include/firefox24/js/Date.h | |
269 | include/firefox24/js/GCAPI.h | 270 | include/firefox24/js/GCAPI.h | |
270 | include/firefox24/js/HashTable.h | 271 | include/firefox24/js/HashTable.h | |
271 | include/firefox24/js/HeapAPI.h | 272 | include/firefox24/js/HeapAPI.h | |
272 | include/firefox24/js/LegacyIntTypes.h | 273 | include/firefox24/js/LegacyIntTypes.h | |
273 | include/firefox24/js/MemoryMetrics.h | 274 | include/firefox24/js/MemoryMetrics.h | |
274 | include/firefox24/js/PropertyKey.h | 275 | include/firefox24/js/PropertyKey.h | |
275 | include/firefox24/js/RequiredDefines.h | 276 | include/firefox24/js/RequiredDefines.h | |
@@ -332,26 +333,27 @@ include/firefox24/mozIStorageRow.h | @@ -332,26 +333,27 @@ include/firefox24/mozIStorageRow.h | |||
332 | include/firefox24/mozIStorageService.h | 333 | include/firefox24/mozIStorageService.h | |
333 | include/firefox24/mozIStorageStatement.h | 334 | include/firefox24/mozIStorageStatement.h | |
334 | include/firefox24/mozIStorageStatementCallback.h | 335 | include/firefox24/mozIStorageStatementCallback.h | |
335 | include/firefox24/mozIStorageStatementParams.h | 336 | include/firefox24/mozIStorageStatementParams.h | |
336 | include/firefox24/mozIStorageStatementRow.h | 337 | include/firefox24/mozIStorageStatementRow.h | |
337 | include/firefox24/mozIStorageVacuumParticipant.h | 338 | include/firefox24/mozIStorageVacuumParticipant.h | |
338 | include/firefox24/mozIStorageValueArray.h | 339 | include/firefox24/mozIStorageValueArray.h | |
339 | include/firefox24/mozITXTToHTMLConv.h | 340 | include/firefox24/mozITXTToHTMLConv.h | |
340 | include/firefox24/mozIThirdPartyUtil.h | 341 | include/firefox24/mozIThirdPartyUtil.h | |
341 | include/firefox24/mozStorageCID.h | 342 | include/firefox24/mozStorageCID.h | |
342 | include/firefox24/mozStorageHelper.h | 343 | include/firefox24/mozStorageHelper.h | |
343 | include/firefox24/mozcontainer.h | 344 | include/firefox24/mozcontainer.h | |
344 | include/firefox24/mozilla-config.h | 345 | include/firefox24/mozilla-config.h | |
346 | ${PLIST.dtrace}include/firefox24/mozilla-trace.h | |||
345 | include/firefox24/mozilla/AppData.h | 347 | include/firefox24/mozilla/AppData.h | |
346 | include/firefox24/mozilla/AppProcessChecker.h | 348 | include/firefox24/mozilla/AppProcessChecker.h | |
347 | include/firefox24/mozilla/Assertions.h | 349 | include/firefox24/mozilla/Assertions.h | |
348 | include/firefox24/mozilla/Atomics.h | 350 | include/firefox24/mozilla/Atomics.h | |
349 | include/firefox24/mozilla/Attributes.h | 351 | include/firefox24/mozilla/Attributes.h | |
350 | include/firefox24/mozilla/AutoRestore.h | 352 | include/firefox24/mozilla/AutoRestore.h | |
351 | include/firefox24/mozilla/AvailableMemoryTracker.h | 353 | include/firefox24/mozilla/AvailableMemoryTracker.h | |
352 | include/firefox24/mozilla/Base64.h | 354 | include/firefox24/mozilla/Base64.h | |
353 | include/firefox24/mozilla/BlockingResourceBase.h | 355 | include/firefox24/mozilla/BlockingResourceBase.h | |
354 | include/firefox24/mozilla/BloomFilter.h | 356 | include/firefox24/mozilla/BloomFilter.h | |
355 | include/firefox24/mozilla/BrowserElementParent.h | 357 | include/firefox24/mozilla/BrowserElementParent.h | |
356 | include/firefox24/mozilla/CORSMode.h | 358 | include/firefox24/mozilla/CORSMode.h | |
357 | include/firefox24/mozilla/Casting.h | 359 | include/firefox24/mozilla/Casting.h |
@@ -1,38 +1,40 @@ | @@ -1,38 +1,40 @@ | |||
1 | # $NetBSD: mozilla-common.mk,v 1.3 2013/11/21 15:25:17 ryoon Exp $ | 1 | # $NetBSD: mozilla-common.mk,v 1.4 2013/11/24 12:37:40 richard 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 mail/thunderbird/Makefile | 5 | # used by mail/thunderbird/Makefile | |
6 | # used by www/firefox24/Makefile | 6 | # used by www/firefox24/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 readelf 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 | # gcc45-4.5.3 of lang/gcc45 does not generate proper binary, | 14 | # gcc45-4.5.3 of lang/gcc45 does not generate proper binary, | |
15 | # but gcc 4.5.4 of NetBSD 7 generates working binary. | 15 | # but gcc 4.5.4 of NetBSD 7 generates working binary. | |
16 | .if !empty(MACHINE_PLATFORM:MNetBSD-5.*) | 16 | .if !empty(MACHINE_PLATFORM:MNetBSD-5.*) | |
17 | GCC_REQD+= 4.6 | 17 | GCC_REQD+= 4.6 | |
18 | . if ${MACHINE_ARCH} == "i386" | 18 | . if ${MACHINE_ARCH} == "i386" | |
19 | # Fix for PR pkg/48152. | 19 | # Fix for PR pkg/48152. | |
20 | CPPFLAGS+= -march=i486 | 20 | CPPFLAGS+= -march=i486 | |
21 | . endif | 21 | . endif | |
22 | .else | 22 | .else | |
23 | GCC_REQD+= 4.5 | 23 | GCC_REQD+= 4.5 | |
24 | .endif | 24 | .endif | |
25 | 25 | |||
26 | CPPFLAGS.SunOS+= -D__EXTENSIONS__ | |||
27 | ||||
26 | CHECK_PORTABILITY_SKIP+=${MOZILLA_DIR}security/nss/tests/libpkix/libpkix.sh | 28 | CHECK_PORTABILITY_SKIP+=${MOZILLA_DIR}security/nss/tests/libpkix/libpkix.sh | |
27 | CHECK_PORTABILITY_SKIP+=${MOZILLA_DIR}security/nss/tests/multinit/multinit.sh | 29 | CHECK_PORTABILITY_SKIP+=${MOZILLA_DIR}security/nss/tests/multinit/multinit.sh | |
28 | CHECK_PORTABILITY_SKIP+=${MOZILLA_DIR}js/src/tests/update-test262.sh | 30 | CHECK_PORTABILITY_SKIP+=${MOZILLA_DIR}js/src/tests/update-test262.sh | |
29 | 31 | |||
30 | CONFIGURE_ARGS+= --disable-tests | 32 | CONFIGURE_ARGS+= --disable-tests | |
31 | CONFIGURE_ARGS+= --disable-pedantic | 33 | CONFIGURE_ARGS+= --disable-pedantic | |
32 | CONFIGURE_ARGS+= --enable-crypto | 34 | CONFIGURE_ARGS+= --enable-crypto | |
33 | CONFIGURE_ARGS+= --with-pthreads | 35 | CONFIGURE_ARGS+= --with-pthreads | |
34 | CONFIGURE_ARGS+= --disable-javaxpcom | 36 | CONFIGURE_ARGS+= --disable-javaxpcom | |
35 | CONFIGURE_ARGS+= --enable-default-toolkit=cairo-gtk2 | 37 | CONFIGURE_ARGS+= --enable-default-toolkit=cairo-gtk2 | |
36 | CONFIGURE_ARGS+= --enable-svg | 38 | CONFIGURE_ARGS+= --enable-svg | |
37 | CONFIGURE_ARGS+= --enable-mathml | 39 | CONFIGURE_ARGS+= --enable-mathml | |
38 | CONFIGURE_ARGS+= --enable-pango | 40 | CONFIGURE_ARGS+= --enable-pango |
@@ -1,18 +1,19 @@ | @@ -1,18 +1,19 @@ | |||
1 | # $NetBSD: options.mk,v 1.2 2013/11/16 02:01:46 ryoon Exp $ | 1 | # $NetBSD: options.mk,v 1.3 2013/11/24 12:37:40 richard Exp $ | |
2 | 2 | |||
3 | PKG_OPTIONS_VAR= PKG_OPTIONS.firefox24 | 3 | PKG_OPTIONS_VAR= PKG_OPTIONS.firefox24 | |
4 | PKG_SUPPORTED_OPTIONS= official-mozilla-branding | 4 | PKG_SUPPORTED_OPTIONS= official-mozilla-branding | |
5 | PKG_SUPPORTED_OPTIONS+= alsa debug mozilla-jemalloc gnome pulseaudio webrtc | 5 | PKG_SUPPORTED_OPTIONS+= alsa debug mozilla-jemalloc gnome pulseaudio webrtc | |
6 | PKG_SUPPORTED_OPTIONS+= dtrace | |||
6 | PLIST_VARS+= gnome jemalloc debug | 7 | PLIST_VARS+= gnome jemalloc debug | |
7 | 8 | |||
8 | .if ${OPSYS} == "Linux" | 9 | .if ${OPSYS} == "Linux" | |
9 | PKG_SUGGESTED_OPTIONS+= alsa mozilla-jemalloc | 10 | PKG_SUGGESTED_OPTIONS+= alsa mozilla-jemalloc | |
10 | .else | 11 | .else | |
11 | PKG_SUGGESTED_OPTIONS+= pulseaudio | 12 | PKG_SUGGESTED_OPTIONS+= pulseaudio | |
12 | .endif | 13 | .endif | |
13 | 14 | |||
14 | # On NetBSD/amd64 6.99.21 libxul.so is invalid when --enable-webrtc is set. | 15 | # On NetBSD/amd64 6.99.21 libxul.so is invalid when --enable-webrtc is set. | |
15 | .if (${OPSYS} == "FreeBSD") || (${OPSYS} == "Linux") || (${OPSYS} == "OpenBSD") | 16 | .if (${OPSYS} == "FreeBSD") || (${OPSYS} == "Linux") || (${OPSYS} == "OpenBSD") | |
16 | PKG_SUGGESTED_OPTIONS+= webrtc | 17 | PKG_SUGGESTED_OPTIONS+= webrtc | |
17 | .endif | 18 | .endif | |
18 | 19 | |||
@@ -70,13 +71,21 @@ NO_BIN_ON_CDROM= ${RESTRICTED} | @@ -70,13 +71,21 @@ NO_BIN_ON_CDROM= ${RESTRICTED} | |||
70 | NO_BIN_ON_FTP= ${RESTRICTED} | 71 | NO_BIN_ON_FTP= ${RESTRICTED} | |
71 | PLIST.branding= yes | 72 | PLIST.branding= yes | |
72 | .else | 73 | .else | |
73 | PLIST.nobranding= yes | 74 | PLIST.nobranding= yes | |
74 | .endif | 75 | .endif | |
75 | 76 | |||
76 | PLIST_VARS+= webrtc | 77 | PLIST_VARS+= webrtc | |
77 | .if !empty(PKG_OPTIONS:Mwebrtc) | 78 | .if !empty(PKG_OPTIONS:Mwebrtc) | |
78 | .include "../../graphics/libv4l/buildlink3.mk" | 79 | .include "../../graphics/libv4l/buildlink3.mk" | |
79 | CONFIGURE_ARGS+= --enable-webrtc | 80 | CONFIGURE_ARGS+= --enable-webrtc | |
80 | .else | 81 | .else | |
81 | CONFIGURE_ARGS+= --disable-webrtc | 82 | CONFIGURE_ARGS+= --disable-webrtc | |
82 | .endif | 83 | .endif | |
84 | ||||
85 | PLIST_VARS+= dtrace | |||
86 | .if !empty(PKG_OPTIONS:Mdtrace) | |||
87 | CONFIGURE_ARGS+= --enable-dtrace | |||
88 | PLIST.dtrace= yes | |||
89 | .else | |||
90 | CONFIGURE_ARGS+= --disable-dtrace | |||
91 | .endif |