0131efecdf
ok naddy@
142 lines
4.8 KiB
Makefile
142 lines
4.8 KiB
Makefile
# $OpenBSD: Makefile,v 1.116 2007/02/17 22:27:37 steven Exp $
|
|
|
|
ONLY_FOR_ARCHS= alpha i386 sparc sparc64 amd64 powerpc
|
|
|
|
COMMENT-main= "open source version of the Netscape browser"
|
|
COMMENT-devel= "devel files for Gecko"
|
|
|
|
VER= 1.7.13
|
|
DISTNAME= mozilla
|
|
PKGNAME= mozilla-${VER}
|
|
PKGNAME-main= mozilla-${VER}p7
|
|
PKGNAME-devel= mozilla-devel-${VER}p7
|
|
DISTFILES= mozilla-${VER}-source.tar.bz2
|
|
SO_VERSION= 8.0
|
|
# NOTE: Must bump minor version if any shlib's are removed from the
|
|
# components dir to avoid pkg_add -r issues.
|
|
.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 \
|
|
necko necko2 nsappshell nsprefm nss3 nssckbi oji p3p pipboot \
|
|
pipnss pippki pref profile rdf smime3 softokn3 \
|
|
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
|
|
|
|
CATEGORIES= www
|
|
|
|
HOMEPAGE= http://www.mozilla.org/
|
|
|
|
# mozilla public license
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
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/
|
|
|
|
VMEM_WARNING=yes
|
|
|
|
MULTI_PACKAGES= -main -devel
|
|
|
|
MODULES= devel/gettext
|
|
BUILD_DEPENDS= :libIDL-*:devel/libIDL \
|
|
:zip->=2.3:archivers/zip
|
|
LIB_DEPENDS= gdk-x11-2.0,gdk_pixbuf-2.0,gtk-x11-2.0::x11/gtk+2 \
|
|
nspr4.>=17,plc4.>=17,plds4.>=17:nspr->=4.6.4p1:devel/nspr
|
|
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 \
|
|
pango-1.0 pangocairo-1.0 pangoft2-1.0
|
|
|
|
RUN_DEPENDS-devel= :${PKGNAME-main}:www/mozilla,-main
|
|
RUN_DEPENDS-main= :esound-0.2.*:audio/esound
|
|
WANTLIB-main= ${WANTLIB} \
|
|
Xft Xp jpeg pthread stdc++
|
|
|
|
USE_X11= Yes
|
|
USE_GMAKE= Yes
|
|
# Regression tests are too hard to adapt to run here
|
|
NO_REGRESS= Yes
|
|
SUBST_VARS= LOCALBASE SO_VERSION
|
|
|
|
MODGNU_CONFIG_GUESS_DIRS= ${WRKSRC}/build/autoconf \
|
|
${WRKSRC}/directory/c-sdk/config/autoconf
|
|
|
|
AUTOCONF_VERSION= 2.13
|
|
CONFIGURE_STYLE= autoconf no-autoheader
|
|
CONFIGURE_ARGS= \
|
|
--with-system-jpeg=${LOCALBASE} \
|
|
--with-system-png=${LOCALBASE} \
|
|
--with-system-zlib=/usr/lib \
|
|
--with-system-nspr \
|
|
--with-pthreads \
|
|
--enable-default-toolkit=gtk2 \
|
|
--enable-xft \
|
|
--enable-optimize=-Os \
|
|
--enable-crypto \
|
|
--enable-extensions=default \
|
|
--disable-pedantic \
|
|
--disable-debug \
|
|
--disable-tests \
|
|
--disable-ldap \
|
|
--disable-gnomevfs
|
|
|
|
CONFIGURE_ENV= PKG_CONFIG_PATH="${LOCALBASE}/lib/pkgconfig:${X11BASE}/lib/pkgconfig" \
|
|
BUILD_OFFICIAL=1 \
|
|
MOZILLA_OFFICIAL=1 \
|
|
SO_VERSION=${SO_VERSION}
|
|
|
|
MAKE_ENV= LD_LIBRARY_PATH="${WRKSRC}/dist/bin" \
|
|
BUILD_OFFICIAL=1 \
|
|
MOZILLA_OFFICIAL=1 \
|
|
SO_VERSION=${SO_VERSION}
|
|
|
|
MOB= ${WRKSRC}/dist
|
|
MOZ= ${PREFIX}/mozilla
|
|
|
|
post-extract:
|
|
@cp ${FILESDIR}/xptc* ${WRKSRC}/xpcom/reflect/xptcall/src/md/unix/
|
|
|
|
pre-configure:
|
|
@cd ${WRKSRC}/directory/c-sdk && ${SETENV} ${AUTOCONF_ENV} ${AUTOCONF}
|
|
@perl -pi -e 's|_LOCALBASE_|${LOCALBASE}|g; s|_X11BASE_|${X11BASE}|g' \
|
|
${WRKSRC}/xpfe/bootstrap/mozilla.in
|
|
@perl -pi -e 's|_SO_VERSION_|${SO_VERSION}|g' \
|
|
${WRKSRC}/xpcom/components/nsNativeComponentLoader.cpp
|
|
|
|
do-install:
|
|
.for dir in include lib
|
|
${INSTALL_DATA_DIR} ${MOZ}/${dir}
|
|
@cd ${MOB} && ${TAR} -chf - ${dir} | \
|
|
${TAR} -xf - -C ${MOZ}
|
|
.endfor
|
|
@cd ${MOB}/public && ${TAR} -chf - nss | \
|
|
${TAR} -xf - -C ${MOZ}/include
|
|
.for dir in chrome components defaults greprefs res searchplugins
|
|
${INSTALL_DATA_DIR} ${MOZ}/${dir}
|
|
@cd ${MOB}/bin && ${TAR} -chf - ${dir} | \
|
|
${TAR} -xf - -C ${MOZ}
|
|
.endfor
|
|
@cd ${MOB}/bin && ${TAR} -chf - *.so.?.? | \
|
|
${TAR} -xf - -C ${MOZ}
|
|
@chmod 444 ${MOZ}/*.so.?.? ${MOZ}/components/*.so.?.? ${MOZ}/components/*.js
|
|
${INSTALL_DATA} ${MOB}/bin/LICENSE ${MOZ}
|
|
${INSTALL_SCRIPT} ${MOB}/bin/mozilla ${PREFIX}/bin
|
|
${INSTALL_SCRIPT} ${MOB}/bin/run-mozilla.sh ${MOB}/bin/mozilla-config ${MOZ}
|
|
${INSTALL_PROGRAM} ${MOB}/bin/regchrome ${MOB}/bin/regxpcom ${MOB}/bin/mozilla-bin ${MOB}/bin/mozilla-xremote-client ${MOZ}
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/applications
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/pixmaps
|
|
${INSTALL_DATA_DIR} ${PREFIX}/lib/pkgconfig
|
|
${INSTALL_DATA} ${WRKBUILD}/build/unix/*.pc ${PREFIX}/lib/pkgconfig
|
|
${INSTALL_MAN} ${WRKSRC}/xpfe/bootstrap/mozilla.1 ${PREFIX}/man/man1/
|
|
|
|
.include <bsd.port.mk>
|