aee4331522
http://www.mozilla.org/projects/security/known-vulnerabilities.html#Mozilla - Bump shlib major after recent libc changes
165 lines
4.7 KiB
Makefile
165 lines
4.7 KiB
Makefile
# $OpenBSD: Makefile,v 1.88 2005/05/15 16:24:06 kurt Exp $
|
|
|
|
ONLY_FOR_ARCHS= alpha i386 sparc sparc64 amd64 powerpc
|
|
|
|
COMMENT= "open source version of the Netscape browser"
|
|
COMMENT-devel= "devel files for Gecko"
|
|
|
|
VER= 1.7.8
|
|
DISTNAME= mozilla
|
|
PKGNAME= mozilla-${VER}
|
|
PKGNAME-devel= mozilla-devel-${VER}
|
|
DISTFILES= mozilla-${VER}-source.tar.bz2
|
|
SO_VERSION= 3.0
|
|
# NOTE: Must bump minor version if any shlib's are removed from the
|
|
# components dir to avoid pkg_add -r issues.
|
|
|
|
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= -devel
|
|
SUBPACKAGE?=
|
|
|
|
FLAVORS= gtk2
|
|
FLAVOR?=
|
|
|
|
MODULES= gcc3 devel/gettext
|
|
MODGCC3_ARCHES= alpha
|
|
MODGCC3_LANGS= C++
|
|
BUILD_DEPENDS= :zip->=2.3:archivers/zip \
|
|
:pkgconfig-*:devel/pkgconfig
|
|
LIB_DEPENDS= jpeg.62::graphics/jpeg \
|
|
png.3::graphics/png
|
|
|
|
WANTLIB= X11 Xext Xt m
|
|
|
|
.if defined(PACKAGING) && ${SUBPACKAGE} == "-devel"
|
|
LIB_DEPENDS=
|
|
MODULES= devel/gettext
|
|
. if ${FLAVOR:L:Mgtk2}
|
|
RUN_DEPENDS= :${PKGNAME}-gtk2:www/mozilla,gtk2
|
|
WANTLIB+= Xft Xrender fontconfig freetype
|
|
. else
|
|
RUN_DEPENDS= :${PKGNAME}:www/mozilla
|
|
. endif
|
|
.else
|
|
RUN_DEPENDS= :esound-0.2.*:audio/esound
|
|
WANTLIB+= Xft Xp Xrender c fontconfig freetype pthread z
|
|
. if empty(MACHINE_ARCH:Malpha)
|
|
WANTLIB+= stdc++
|
|
. endif
|
|
|
|
. if ${FLAVOR:L:Mgtk2}
|
|
LIB_DEPENDS+= gnomevfs-2::x11/gnome/vfs2
|
|
WANTLIB+= ORBit-2 bonobo-2 bonobo-activation gconf-2 gthread-2.0.0.0
|
|
. endif
|
|
.endif
|
|
|
|
.if ${FLAVOR:L:Mgtk2}
|
|
BUILD_DEPENDS+= :libIDL-*:devel/libIDL
|
|
LIB_DEPENDS+= gdk-x11-2.0.0.0,gdk_pixbuf-2.0.0.0,gtk-x11-2.0.0.0::x11/gtk+2
|
|
WANTLIB+= Xcursor Xinerama atk-1.0.0.0 glib-2.0.0.0 gmodule-2.0.0.0 \
|
|
gobject-2.0.0.0 pango-1.0.0.0 pangox-1.0.0.0 pangoxft-1.0.0.0
|
|
.else
|
|
BUILD_DEPENDS+= :ORBit-*:devel/ORBit
|
|
LIB_DEPENDS+= gtk.1,gdk.1::x11/gtk+
|
|
WANTLIB+= Xi glib gmodule
|
|
.endif
|
|
|
|
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}/nsprpub/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-pthreads \
|
|
--without-system-nspr \
|
|
--enable-xft \
|
|
--enable-optimize=-Os \
|
|
--enable-crypto \
|
|
--enable-extensions=default \
|
|
--disable-pedantic \
|
|
--disable-debug \
|
|
--disable-tests \
|
|
--disable-ldap
|
|
|
|
.if ${FLAVOR:L:Mgtk2}
|
|
CONFIGURE_ARGS+=--enable-default-toolkit=gtk2
|
|
.else
|
|
CONFIGURE_ARGS+=--enable-default-toolkit=gtk
|
|
.endif
|
|
|
|
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}/nsprpub && ${SETENV} ${AUTOCONF_ENV} ${AUTOCONF}
|
|
@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}/nsprpub/pr/include/md/_openbsd.h \
|
|
${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
|
|
|
|
.include <bsd.port.mk>
|