blob: 44ac508728f8b34af91adda1322d8512217c5b30 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
|
# $NetBSD: Makefile,v 1.52 2009/08/08 04:14:18 tnn Exp $
#
DISTNAME= firefox-${FIREFOX_VER}-source
PKGNAME= firefox-${FIREFOX_VER}
FIREFOX_VER= 3.5.2
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_MOZILLA:=firefox/releases/${FIREFOX_VER}/source/}
EXTRACT_SUFX= .tar.bz2
MAINTAINER= tnn@NetBSD.org
HOMEPAGE= http://www.mozilla.com/en-US/firefox/
COMMENT= Web browser with support for extensions
WRKSRC= ${WRKDIR}/mozilla-1.9.1
GNU_CONFIGURE= yes
USE_TOOLS+= pkg-config perl gmake autoconf213
USE_LANGUAGES= c c++
BUILD_DEPENDS+= zip>=2.3:../../archivers/zip
PKG_DESTDIR_SUPPORT= user-destdir
CHECK_PORTABILITY_SKIP= security/nss/tests/libpkix/libpkix.sh
PRIVILEGED_STAGES= clean
CONFIG_GUESS_OVERRIDE= build/autoconf/config.guess
CONFIG_GUESS_OVERRIDE+= js/src/build/autoconf/config.guess
CONFIG_GUESS_OVERRIDE+= nsprpub/build/autoconf/config.guess
CONFIG_SUB_OVERRIDE= build/autoconf/config.sub
CONFIG_SUB_OVERRIDE+= js/src/build/autoconf/config.sub
CONFIG_SUB_OVERRIDE+= nsprpub/build/autoconf/config.sub
CONFIGURE_ARGS+= --enable-application=browser
CONFIGURE_ARGS+= --enable-libxul
CONFIGURE_ARGS+= --disable-tests --disable-pedantic
CONFIGURE_ARGS+= --enable-crypto
CONFIGURE_ARGS+= --enable-optimize=-O2 --with-pthreads
CONFIGURE_ARGS+= --disable-gnomevfs --disable-gnomeui
CONFIGURE_ARGS+= --disable-dbus --disable-javaxpcom
CONFIGURE_ARGS+= --enable-default-toolkit=cairo-gtk2
CONFIGURE_ARGS+= --enable-svg --enable-mathml
CONFIGURE_ARGS+= --enable-system-cairo --enable-system-lcms
CONFIGURE_ARGS+= --with-system-jpeg
CONFIGURE_ARGS+= --with-system-zlib --with-system-bz2
CONFIGURE_ARGS+= --enable-system-sqlite
CONFIGURE_ARGS+= --disable-crashreporter
ALL_ENV+= MOZILLA_PKG_NAME=firefox
PYTHON_FOR_BUILD_ONLY= yes
.include "../../lang/python/application.mk"
CONFIGURE_ENV+= PYTHON=${PYTHONBIN:Q}
.include "options.mk"
.include "../../mk/bsd.prefs.mk"
MOZILLA=firefox
.if !empty(PKG_OPTIONS:Mofficial-mozilla-branding)
MOZILLA_NAME= Firefox 3.5
MOZILLA_ICON= ${WRKSRC}/other-licenses/branding/firefox/default48.png
.else
MOZILLA_NAME= Shiretoko 3.5
MOZILLA_ICON= ${WRKSRC}/browser/branding/unofficial/default48.png
.endif
pre-configure:
cd ${WRKSRC} && autoconf
cd ${WRKSRC}/js/src && autoconf
cd ${WRKSRC}/nsprpub && autoconf
# Makefiles sometimes call "rm -f" without more arguments. Kludge around ...
.PHONY: create-rm-wrapper
pre-configure: create-rm-wrapper
create-rm-wrapper:
printf '#!/bin/sh\n[ "$$*" = "-f" ] && exit 0\nexec /bin/rm $$@\n' > \
${WRAPPER_DIR}/bin/rm
chmod +x ${WRAPPER_DIR}/bin/rm
.PHONY: install-desktop
post-install: install-desktop
install-desktop:
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/applications
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/pixmaps
${SED} -e 's|@MOZILLA@|${MOZILLA}|g' \
-e 's|@MOZILLA_NAME@|${MOZILLA_NAME}|g' \
-e 's|@FIREFOX_ICON@|${MOZILLA}.png|g' \
< ${FILESDIR}/desktop.in \
> ${WRKDIR}/desktop
${INSTALL_DATA} ${WRKDIR}/desktop \
${DESTDIR}${PREFIX}/share/applications/${MOZILLA}.desktop
${INSTALL_DATA} ${MOZILLA_ICON} \
${DESTDIR}${PREFIX}/share/pixmaps/${MOZILLA}.png
.if ${OPSYS} == "Linux"
.include "../../audio/alsa-lib/buildlink3.mk"
.endif
.include "../../archivers/bzip2/buildlink3.mk"
.include "../../databases/sqlite3/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../graphics/lcms/buildlink3.mk"
.include "../../net/libIDL/buildlink3.mk"
.include "../../x11/gtk2/buildlink3.mk"
.include "../../x11/libXt/buildlink3.mk"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../mk/bsd.pkg.mk"
|