diff options
author | ahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059> | 2005-11-14 03:07:59 +0800 |
---|---|---|
committer | ahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059> | 2005-11-14 03:07:59 +0800 |
commit | 459fe3b96274bcacd59c10df3fd35478eecf4258 (patch) | |
tree | 3db0e05ddd1b02f6fa73efb0a2b1c33d21d79366 /www/mozilla/files/mozconfig-generic.in | |
parent | 38d4d9a4cbb4068804836f0ecc1e32754b6f4a0c (diff) | |
download | marcuscom-ports-459fe3b96274bcacd59c10df3fd35478eecf4258.tar marcuscom-ports-459fe3b96274bcacd59c10df3fd35478eecf4258.tar.gz marcuscom-ports-459fe3b96274bcacd59c10df3fd35478eecf4258.tar.bz2 marcuscom-ports-459fe3b96274bcacd59c10df3fd35478eecf4258.tar.lz marcuscom-ports-459fe3b96274bcacd59c10df3fd35478eecf4258.tar.xz marcuscom-ports-459fe3b96274bcacd59c10df3fd35478eecf4258.tar.zst marcuscom-ports-459fe3b96274bcacd59c10df3fd35478eecf4258.zip |
- Introducing Makefile.common for mozilla ports.
Makefile.common defines common variables and does quite a few common
tasks handled by mozilla ports. A generic .mozconfig file is located
in files/mozconfig-generic.in which includes common configure knobs
and defines. if files/mozconfig.in exists it is included at the end
of ${WRKSRC}/.mozconfig after mozconfig-generic.in. As of right now
Makefile.common uses pre-configure: to do the common patch work
which will allow mozilla ports to still use post-patch
and defines. if files/mozconfig.in exists it is included at the end
of ${WRKSRC}/.mozconfig after mozconfig-generic.in. As of right now
Makefile.common uses pre-configure: to do the common patch work
which will allow mozilla ports to still use post-patch
for less common things.
Changes to mozilla:
- Use system nss nspr and libm stuff[obtained from www/firefox]
- Convert most things to .mozconfig
Todo:
- Style cleanup
- Find more common things to put in Makefile.common
- Import post-* pre-* targets from
http://people.freebsd.org/~mezz/diff/firefox.diff
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@5120 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'www/mozilla/files/mozconfig-generic.in')
-rw-r--r-- | www/mozilla/files/mozconfig-generic.in | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/www/mozilla/files/mozconfig-generic.in b/www/mozilla/files/mozconfig-generic.in new file mode 100644 index 000000000..027996be8 --- /dev/null +++ b/www/mozilla/files/mozconfig-generic.in @@ -0,0 +1,70 @@ +# $FreeBSD$ +# $MCom$ +###################################################################### +# standard opts from README +ac_add_options --enable-crypto +ac_add_options --disable-tests +ac_add_options --disable-mailnews +ac_add_options --disable-composer +ac_add_options --enable-default-toolkit=gtk2 +ac_add_options --enable-xft +# See the following URL for approval email for using official branding +# http://people.freebsd.org/~ahze/firefox_thunderbird-approved.txt +ac_add_options --enable-official-branding +###################################################################### +# FreeBSD specific +export CPPFLAGS="@CPPFLAGS@" +export CFLAGS="@CFLAGS@" +export LIBS="@LIBS@" +export LDFLAGS="@LDFLAGS@" +export CONFIG_SH=/bin/sh +export XP_UNIX=1 +mk_add_options XP_UNIX=1 +export PERL="@PERL@" +mk_add_options PERL=$PERL +# Configure options for installation +ac_add_options --prefix=@FAKEDIR@ +ac_add_options --x-includes=@X11BASE@/include +ac_add_options --x-libraries=@X11BASE@/lib +###################################################################### +# Use ports for these libraries +ac_add_options --with-system-jpeg=@LOCALBASE@ +ac_add_options --with-system-zlib +ac_add_options --with-system-png=@LOCALBASE@ +ac_add_options --with-gssapi=@KRB5_HOME@ +ac_add_options --with-system-nspr +###################################################################### +# set compile/link features +ac_add_options --with-pthreads +###################################################################### +# disable unneeded/unavailable +ac_add_options --disable-auto-deps +ac_add_options --disable-bidi +ac_add_options --disable-dtd-debug +ac_add_options --disable-jsd +ac_add_options --disable-ldap +ac_add_options --disable-pedantic +ac_add_options --disable-profilesharing +ac_add_options --disable-installer +ac_add_options --enable-single-profile +ac_add_options --disable-profilesharing +ac_add_options --enable-image-decoders=png,gif,jpeg,bmp +ac_add_options --enable-extensions="default" +###################################################################### +if test -n "$WITH_DEBUG"; then + ac_add_options --enable-debug + ac_add_options --disable-strip +else + ac_add_options --disable-debug + ac_add_options --enable-optimize=${WITH_OPTIMIZE} + ac_add_options --enable-strip +fi +if test -n "$WITH_LOGGING"; then + ac_add_options --enable-logging +else + ac_add_options --disable-logging +fi +if test -z "$WITH_SMB"; then + ac_add_options --disable-gnomevfs +fi +###################################################################### |