| @@ -1,40 +1,40 @@ | | | @@ -1,40 +1,40 @@ |
1 | # $NetBSD: Makefile,v 1.10 2008/12/17 15:43:01 tnn Exp $ | | 1 | # $NetBSD: Makefile,v 1.11 2008/12/17 19:50:42 tnn Exp $ |
2 | | | 2 | |
3 | MOZILLA= firefox3 # allow coexisting with firefox2 | | 3 | MOZILLA= firefox3 # allow coexisting with firefox2 |
4 | COMMENT= Lightweight gecko-based web browser | | 4 | COMMENT= Lightweight gecko-based web browser |
5 | | | 5 | |
6 | PKG_DESTDIR_SUPPORT= user-destdir | | 6 | PKG_DESTDIR_SUPPORT= user-destdir |
7 | | | 7 | |
8 | MOZILLA_USE_GTK2= # yes | | 8 | MOZILLA_USE_GTK2= # yes |
9 | MOZILLA_USE_XFT= YES | | 9 | MOZILLA_USE_XFT= YES |
10 | | | 10 | |
11 | INSTALLATION_DIRS= lib/pkgconfig | | 11 | INSTALLATION_DIRS= lib/pkgconfig |
12 | | | 12 | |
13 | CHECK_PORTABILITY_SKIP= security/nss/tests/libpkix/libpkix.sh | | 13 | CHECK_PORTABILITY_SKIP= security/nss/tests/libpkix/libpkix.sh |
14 | | | 14 | |
15 | BUILDLINK_API_DEPENDS.cairo+= cairo>=1.6.4 | | 15 | BUILDLINK_API_DEPENDS.cairo+= cairo>=1.6.4 |
16 | | | 16 | |
17 | PYTHON_FOR_BUILD_ONLY= yes | | 17 | PYTHON_FOR_BUILD_ONLY= yes |
18 | .include "../../lang/python/application.mk" | | 18 | .include "../../lang/python/application.mk" |
19 | CONFIGURE_ENV+= PYTHON=${PYTHONBIN:Q} | | 19 | CONFIGURE_ENV+= PYTHON=${PYTHONBIN:Q} |
20 | | | 20 | |
21 | # Pull in standard firefox build framework, and override some things below | | 21 | # Pull in standard firefox build framework, and override some things below |
22 | .include "../../www/firefox/Makefile-firefox.common" | | 22 | .include "../../www/firefox/Makefile-firefox.common" |
23 | | | 23 | |
24 | MAINTAINER= tnn@NetBSD.org | | 24 | MAINTAINER= tnn@NetBSD.org |
25 | MOZ_VER= 3.0.5 | | 25 | MOZ_VER= 3.0.5 |
26 | | | 26 | |
27 | FILESDIR= ${.CURDIR}/files | | 27 | XPTCFILES:= ${XPTCFILES:C,^,../../firefox3/files/,} |
28 | DESCR_SRC= ${.CURDIR}/../../www/firefox/DESCR | | 28 | DESCR_SRC= ${.CURDIR}/../../www/firefox/DESCR |
29 | | | 29 | |
30 | DISTINFO_FILE= ${.CURDIR}/../../www/firefox3/distinfo | | 30 | DISTINFO_FILE= ${.CURDIR}/../../www/firefox3/distinfo |
31 | PATCHDIR= ${.CURDIR}/../../www/firefox3/patches | | 31 | PATCHDIR= ${.CURDIR}/../../www/firefox3/patches |
32 | | | 32 | |
33 | post-extract: copy-pkgconfig | | 33 | post-extract: copy-pkgconfig |
34 | .PHONY: copy-pkgconfig | | 34 | .PHONY: copy-pkgconfig |
35 | copy-pkgconfig: | | 35 | copy-pkgconfig: |
36 | cp ${.CURDIR}/../../www/firefox3/files/*.pc ${WRKSRC:Q}/build/unix | | 36 | cp ${.CURDIR}/../../www/firefox3/files/*.pc ${WRKSRC:Q}/build/unix |
37 | | | 37 | |
38 | SUBST_CLASSES+= fix-pc | | 38 | SUBST_CLASSES+= fix-pc |
39 | SUBST_STAGE.fix-pc= pre-configure | | 39 | SUBST_STAGE.fix-pc= pre-configure |
40 | SUBST_MESSAGE.fix-pc= Substituting prefix in pkg-config files. | | 40 | SUBST_MESSAGE.fix-pc= Substituting prefix in pkg-config files. |
| @@ -55,33 +55,37 @@ ye-olde-rm-hack: | | | @@ -55,33 +55,37 @@ ye-olde-rm-hack: |
55 | printf '#!/bin/sh\n[ "$$*" = "-f" ] && exit 0\nexec /bin/rm $$@\n' > \ | | 55 | printf '#!/bin/sh\n[ "$$*" = "-f" ] && exit 0\nexec /bin/rm $$@\n' > \ |
56 | ${WRAPPER_DIR}/bin/rm | | 56 | ${WRAPPER_DIR}/bin/rm |
57 | chmod +x ${WRAPPER_DIR}/bin/rm | | 57 | chmod +x ${WRAPPER_DIR}/bin/rm |
58 | | | 58 | |
59 | # Link browser.xpt | | 59 | # Link browser.xpt |
60 | post-build: stage-package | | 60 | post-build: stage-package |
61 | .PHONY: stage-package | | 61 | .PHONY: stage-package |
62 | stage-package: | | 62 | stage-package: |
63 | cd ${WRKSRC}/browser/installer && \ | | 63 | cd ${WRKSRC}/browser/installer && \ |
64 | ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} stage-package | | 64 | ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} stage-package |
65 | cp ${WRKSRC}/dist/firefox/components/browser.xpt \ | | 65 | cp ${WRKSRC}/dist/firefox/components/browser.xpt \ |
66 | ${WRKSRC}/dist/bin/components/browser.xpt | | 66 | ${WRKSRC}/dist/bin/components/browser.xpt |
67 | | | 67 | |
68 | # Install libjemalloc.so which is needed on Linux. | | 68 | .if !empty(PKG_OPTIONS:Mmozilla-jemalloc) |
69 | .if ${OPSYS} == "Linux" | | 69 | PLIST_SUBST+= JEMALLOC= |
| | | 70 | SCRIPTS_ENV+= JEMALLOC= |
70 | post-install: install-libjemalloc | | 71 | post-install: install-libjemalloc |
71 | .PHONY: install-libjemalloc | | 72 | .PHONY: install-libjemalloc |
72 | install-libjemalloc: | | 73 | install-libjemalloc: |
73 | ${INSTALL_LIB} ${WRKSRC}/dist/lib/libjemalloc.so \ | | 74 | ${INSTALL_LIB} ${WRKSRC}/dist/lib/libjemalloc.${SO_SUFFIX} \ |
74 | ${DESTDIR}${PREFIX}/lib/${MOZILLA}/libjemalloc.${SO_SUFFIX} | | 75 | ${DESTDIR}${PREFIX}/lib/${MOZILLA}/libjemalloc.${SO_SUFFIX} |
| | | 76 | .else |
| | | 77 | PLIST_SUBST+= JEMALLOC="@comment " |
| | | 78 | SCRIPTS_ENV+= JEMALLOC="@comment " |
75 | .endif | | 79 | .endif |
76 | | | 80 | |
77 | INSTALLATION_DIRS+= lib/${MOZILLA}/modules | | 81 | INSTALLATION_DIRS+= lib/${MOZILLA}/modules |
78 | | | 82 | |
79 | # Can't use system PNG because it doesn't have APNG support? | | 83 | # Can't use system PNG because it doesn't have APNG support? |
80 | CONFIGURE_ARGS+= --without-system-png | | 84 | CONFIGURE_ARGS+= --without-system-png |
81 | # Override www/firefox's idea of toolkit | | 85 | # Override www/firefox's idea of toolkit |
82 | CONFIGURE_ARGS+= --enable-default-toolkit=cairo-gtk2 | | 86 | CONFIGURE_ARGS+= --enable-default-toolkit=cairo-gtk2 |
83 | # Is dbus support useful for anything? | | 87 | # Is dbus support useful for anything? |
84 | CONFIGURE_ARGS+= --disable-dbus | | 88 | CONFIGURE_ARGS+= --disable-dbus |
85 | # Avoids needing curl on Linux | | 89 | # Avoids needing curl on Linux |
86 | CONFIGURE_ARGS+= --disable-crashreporter | | 90 | CONFIGURE_ARGS+= --disable-crashreporter |
87 | CONFIGURE_ARGS+= --disable-system-sqlite | | 91 | CONFIGURE_ARGS+= --disable-system-sqlite |