2007-01-12 15:47:53 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.114 2007/01/12 20:47:53 kurt Exp $
|
2003-06-30 22:34:36 -04:00
|
|
|
|
2004-03-02 03:32:13 -05:00
|
|
|
ONLY_FOR_ARCHS= alpha i386 sparc sparc64 amd64 powerpc
|
1998-08-22 14:38:50 -04:00
|
|
|
|
2006-11-25 09:24:47 -05:00
|
|
|
COMMENT-main= "open source version of the Netscape browser"
|
2003-05-23 06:09:17 -04:00
|
|
|
COMMENT-devel= "devel files for Gecko"
|
2001-05-06 00:22:45 -04:00
|
|
|
|
2006-05-02 03:27:12 -04:00
|
|
|
VER= 1.7.13
|
2000-09-16 12:13:06 -04:00
|
|
|
DISTNAME= mozilla
|
2007-01-12 15:47:53 -05:00
|
|
|
PKGNAME= mozilla-${VER}p6
|
|
|
|
PKGNAME-main= mozilla-${VER}p6
|
|
|
|
PKGNAME-devel= mozilla-devel-${VER}p6
|
2005-05-15 12:24:06 -04:00
|
|
|
DISTFILES= mozilla-${VER}-source.tar.bz2
|
2006-11-30 16:06:35 -05:00
|
|
|
SO_VERSION= 8.0
|
2005-04-11 11:03:18 -04:00
|
|
|
# NOTE: Must bump minor version if any shlib's are removed from the
|
|
|
|
# components dir to avoid pkg_add -r issues.
|
2006-01-01 11:02:36 -05:00
|
|
|
.for _lib in accessibility addrbook appcomps autoconfig bayesflt caps chrome \
|
|
|
|
composer cookie docshell editor embedcomponents fileview fort gfx_gtk \
|
|
|
|
gfxps gfxxprint gkgfx gklayout gkplugin gtkembedmoz gtkxtbin htmlpars \
|
|
|
|
i18n imglib2 impComm4xMail impText import inspector ipcdc jar50 jsd \
|
|
|
|
jsj localmail mailnews mailview mime mimeemitter mork mozfind mozjs \
|
|
|
|
msgbaseutil msgcompose msgdb msgimap msgmdn msgnews msgsmime myspell \
|
2006-11-17 14:33:19 -05:00
|
|
|
necko necko2 nsappshell nsprefm nss3 nssckbi oji p3p pipboot \
|
|
|
|
pipnss pippki pref profile rdf smime3 softokn3 \
|
2006-01-01 11:02:36 -05:00
|
|
|
spellchecker ssl3 swft system-pref transformiix txmgr typeaheadfind \
|
|
|
|
uconv ucvmath universalchardet vcard wallet walletviewers webbrwsr \
|
|
|
|
websrvcs widget_gtk2 xlibrgb xmlextras xpcom xpcom_compat \
|
|
|
|
xpcom_compat_c xpconnect xpinstall xpistub xremote_client \
|
|
|
|
xremoteservice
|
|
|
|
SHARED_LIBS+= ${_lib} ${SO_VERSION}
|
|
|
|
.endfor
|
2005-04-11 11:03:18 -04:00
|
|
|
|
1998-08-22 14:38:50 -04:00
|
|
|
CATEGORIES= www
|
|
|
|
|
2003-04-12 22:40:48 -04:00
|
|
|
HOMEPAGE= http://www.mozilla.org/
|
|
|
|
|
2003-10-18 15:44:41 -04:00
|
|
|
# mozilla public license
|
2001-12-27 07:59:01 -05:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2005-03-13 00:02:16 -05:00
|
|
|
MASTER_SITES= http://ftp.eu.mozilla.org/pub/mozilla.org/mozilla/releases/mozilla${VER}/source/ \
|
|
|
|
http://ftp.mozilla.org/pub/mozilla.org/mozilla/releases/mozilla${VER}/source/
|
1998-08-22 14:38:50 -04:00
|
|
|
|
2003-07-16 12:41:24 -04:00
|
|
|
VMEM_WARNING=yes
|
|
|
|
|
2006-11-25 09:24:47 -05:00
|
|
|
MULTI_PACKAGES= -main -devel
|
2003-05-23 06:09:17 -04:00
|
|
|
|
2006-10-01 18:23:47 -04:00
|
|
|
MODULES= devel/gettext
|
2005-09-22 13:00:24 -04:00
|
|
|
BUILD_DEPENDS= :libIDL-*:devel/libIDL \
|
2006-12-16 07:22:32 -05:00
|
|
|
:zip->=2.3:archivers/zip
|
2006-11-17 14:33:19 -05:00
|
|
|
LIB_DEPENDS= gdk-x11-2.0,gdk_pixbuf-2.0,gtk-x11-2.0::x11/gtk+2 \
|
2006-11-30 16:06:35 -05:00
|
|
|
nspr4.>=17,plc4.>=17,plds4.>=17:nspr->=4.6.4p1:devel/nspr
|
2007-01-04 15:19:53 -05:00
|
|
|
WANTLIB= X11 Xext Xrender Xt atk-1.0 c cairo fontconfig freetype \
|
|
|
|
glib-2.0 gmodule-2.0 gobject-2.0 glitz png m z \
|
2006-11-17 14:33:19 -05:00
|
|
|
pango-1.0 pangocairo-1.0 pangoft2-1.0
|
2005-03-30 17:03:04 -05:00
|
|
|
|
2006-11-25 09:24:47 -05:00
|
|
|
RUN_DEPENDS-devel= :${PKGNAME-main}:www/mozilla,-main
|
|
|
|
RUN_DEPENDS-main= :esound-0.2.*:audio/esound
|
|
|
|
WANTLIB-main= ${WANTLIB} \
|
2007-01-04 15:19:53 -05:00
|
|
|
Xft Xp jpeg pthread stdc++
|
1998-08-22 14:38:50 -04:00
|
|
|
|
2000-03-24 17:13:48 -05:00
|
|
|
USE_X11= Yes
|
2000-03-05 13:30:21 -05:00
|
|
|
USE_GMAKE= Yes
|
2003-06-30 22:28:42 -04:00
|
|
|
# Regression tests are too hard to adapt to run here
|
|
|
|
NO_REGRESS= Yes
|
2005-04-11 11:03:18 -04:00
|
|
|
SUBST_VARS= LOCALBASE SO_VERSION
|
1998-08-22 14:38:50 -04:00
|
|
|
|
2004-08-04 12:12:14 -04:00
|
|
|
MODGNU_CONFIG_GUESS_DIRS= ${WRKSRC}/build/autoconf \
|
|
|
|
${WRKSRC}/directory/c-sdk/config/autoconf
|
|
|
|
|
2004-05-06 10:39:49 -04:00
|
|
|
AUTOCONF_VERSION= 2.13
|
|
|
|
CONFIGURE_STYLE= autoconf no-autoheader
|
2001-08-13 10:16:34 -04:00
|
|
|
CONFIGURE_ARGS= \
|
2003-04-12 22:40:48 -04:00
|
|
|
--with-system-jpeg=${LOCALBASE} \
|
|
|
|
--with-system-png=${LOCALBASE} \
|
|
|
|
--with-system-zlib=/usr/lib \
|
2006-11-17 14:33:19 -05:00
|
|
|
--with-system-nspr \
|
2003-05-17 01:56:22 -04:00
|
|
|
--with-pthreads \
|
2005-09-22 13:00:24 -04:00
|
|
|
--enable-default-toolkit=gtk2 \
|
2005-03-30 17:03:04 -05:00
|
|
|
--enable-xft \
|
2004-02-15 14:44:01 -05:00
|
|
|
--enable-optimize=-Os \
|
2003-05-16 15:11:30 -04:00
|
|
|
--enable-crypto \
|
2003-05-23 06:09:17 -04:00
|
|
|
--enable-extensions=default \
|
2003-05-26 07:06:38 -04:00
|
|
|
--disable-pedantic \
|
2003-05-15 23:56:41 -04:00
|
|
|
--disable-debug \
|
|
|
|
--disable-tests \
|
2005-09-26 17:04:48 -04:00
|
|
|
--disable-ldap \
|
|
|
|
--disable-gnomevfs
|
1998-08-22 14:38:50 -04:00
|
|
|
|
2005-04-11 11:03:18 -04:00
|
|
|
CONFIGURE_ENV= PKG_CONFIG_PATH="${LOCALBASE}/lib/pkgconfig:${X11BASE}/lib/pkgconfig" \
|
2005-04-16 19:54:53 -04:00
|
|
|
BUILD_OFFICIAL=1 \
|
|
|
|
MOZILLA_OFFICIAL=1 \
|
2005-04-11 11:03:18 -04:00
|
|
|
SO_VERSION=${SO_VERSION}
|
|
|
|
|
|
|
|
MAKE_ENV= LD_LIBRARY_PATH="${WRKSRC}/dist/bin" \
|
2005-04-16 19:54:53 -04:00
|
|
|
BUILD_OFFICIAL=1 \
|
|
|
|
MOZILLA_OFFICIAL=1 \
|
2005-04-11 11:03:18 -04:00
|
|
|
SO_VERSION=${SO_VERSION}
|
2001-08-18 22:30:45 -04:00
|
|
|
|
2003-05-23 06:09:17 -04:00
|
|
|
MOB= ${WRKSRC}/dist
|
2003-05-14 20:53:45 -04:00
|
|
|
MOZ= ${PREFIX}/mozilla
|
|
|
|
|
2003-07-17 04:24:24 -04:00
|
|
|
post-extract:
|
|
|
|
@cp ${FILESDIR}/xptc* ${WRKSRC}/xpcom/reflect/xptcall/src/md/unix/
|
|
|
|
|
2003-05-17 01:52:25 -04:00
|
|
|
pre-configure:
|
2005-03-13 00:02:16 -05:00
|
|
|
@cd ${WRKSRC}/directory/c-sdk && ${SETENV} ${AUTOCONF_ENV} ${AUTOCONF}
|
2004-01-19 09:36:48 -05:00
|
|
|
@perl -pi -e 's|_LOCALBASE_|${LOCALBASE}|g; s|_X11BASE_|${X11BASE}|g' \
|
2003-06-19 15:07:59 -04:00
|
|
|
${WRKSRC}/xpfe/bootstrap/mozilla.in
|
2005-04-11 11:03:18 -04:00
|
|
|
@perl -pi -e 's|_SO_VERSION_|${SO_VERSION}|g' \
|
|
|
|
${WRKSRC}/xpcom/components/nsNativeComponentLoader.cpp
|
2003-05-17 01:52:25 -04:00
|
|
|
|
1998-08-22 14:38:50 -04:00
|
|
|
do-install:
|
2003-05-23 06:09:17 -04:00
|
|
|
.for dir in include lib
|
2003-05-21 07:15:28 -04:00
|
|
|
${INSTALL_DATA_DIR} ${MOZ}/${dir}
|
2003-05-14 20:53:45 -04:00
|
|
|
@cd ${MOB} && ${TAR} -chf - ${dir} | \
|
|
|
|
${TAR} -xf - -C ${MOZ}
|
|
|
|
.endfor
|
2004-02-01 23:53:49 -05:00
|
|
|
@cd ${MOB}/public && ${TAR} -chf - nss | \
|
|
|
|
${TAR} -xf - -C ${MOZ}/include
|
2005-03-13 00:02:16 -05:00
|
|
|
.for dir in chrome components defaults greprefs res searchplugins
|
2003-05-23 06:09:17 -04:00
|
|
|
${INSTALL_DATA_DIR} ${MOZ}/${dir}
|
|
|
|
@cd ${MOB}/bin && ${TAR} -chf - ${dir} | \
|
|
|
|
${TAR} -xf - -C ${MOZ}
|
|
|
|
.endfor
|
2005-04-11 11:03:18 -04:00
|
|
|
@cd ${MOB}/bin && ${TAR} -chf - *.so.?.? | \
|
2003-05-14 20:53:45 -04:00
|
|
|
${TAR} -xf - -C ${MOZ}
|
2005-04-11 11:03:18 -04:00
|
|
|
@chmod 444 ${MOZ}/*.so.?.? ${MOZ}/components/*.so.?.? ${MOZ}/components/*.js
|
2003-05-23 06:09:17 -04:00
|
|
|
${INSTALL_DATA} ${MOB}/bin/LICENSE ${MOZ}
|
|
|
|
${INSTALL_SCRIPT} ${MOB}/bin/mozilla ${PREFIX}/bin
|
2003-06-06 08:50:30 -04:00
|
|
|
${INSTALL_SCRIPT} ${MOB}/bin/run-mozilla.sh ${MOB}/bin/mozilla-config ${MOZ}
|
2005-03-26 14:05:54 -05:00
|
|
|
${INSTALL_PROGRAM} ${MOB}/bin/regchrome ${MOB}/bin/regxpcom ${MOB}/bin/mozilla-bin ${MOB}/bin/mozilla-xremote-client ${MOZ}
|
2003-07-04 02:59:15 -04:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/applications
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/pixmaps
|
2003-12-04 10:01:38 -05:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/lib/pkgconfig
|
|
|
|
${INSTALL_DATA} ${WRKBUILD}/build/unix/*.pc ${PREFIX}/lib/pkgconfig
|
1998-08-22 14:38:50 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|