pkgsrc/devel/xulrunner192/Makefile
tnn 25f700b359 Update legacy firefox36 package to 3.6.21.
Fixes some security issues:

MFSA 2011-34 Protection against fraudulent DigiNotar certificates
MFSA 2011-30 Security issues addressed in Firefox 3.6.20
MFSA 2011-24 Cookie isolation error
MFSA 2011-23 Multiple dangling pointer vulnerabilities
MFSA 2011-22 Integer overflow and arbitrary code execution in Array.reduceRight()
MFSA 2011-21 Memory corruption due to multipart/x-mixed-replace images
MFSA 2011-20 Use-after-free vulnerability when viewing XUL document with script disabled
MFSA 2011-19 Miscellaneous memory safety hazards (rv:3.0/1.9.2.18)
2011-09-05 11:05:21 +00:00

60 lines
2.3 KiB
Makefile

# $NetBSD: Makefile,v 1.6 2011/09/05 11:05:21 tnn Exp $
.include "dist.mk"
PKGNAME= xulrunner192-${MOZ_BRANCH}${MOZ_BRANCH_MINOR}
CATEGORIES= devel www
MAINTAINER= tnn@NetBSD.org
HOMEPAGE= http://developer.mozilla.org/en/docs/XULRunner
COMMENT= XML User Interface Language runtime environment
LICENSE= mpl-1.1
MOZILLA_DIR= # empty
PKGCONFIG_OVERRIDE+= xulrunner/installer/libxul-embedding.pc.in
PKGCONFIG_OVERRIDE+= xulrunner/installer/libxul.pc.in
PKGCONFIG_OVERRIDE+= xulrunner/installer/mozilla-gtkmozembed-embedding.pc.in
PKGCONFIG_OVERRIDE+= xulrunner/installer/mozilla-gtkmozembed.pc.in
PKGCONFIG_OVERRIDE+= xulrunner/installer/mozilla-js.pc.in
PKGCONFIG_OVERRIDE+= xulrunner/installer/mozilla-nspr.pc.in
PKGCONFIG_OVERRIDE+= xulrunner/installer/mozilla-nss.pc.in
PKGCONFIG_OVERRIDE+= xulrunner/installer/mozilla-plugin.pc.in
CONFIGURE_ARGS+= --enable-application=xulrunner
CONFIGURE_ARGS+= --enable-libxul
CONFIGURE_ARGS+= --disable-ipc
ALL_ENV+= MOZILLA_PKG_NAME=xulrunner192
MAKE_ENV+= FREEBL_NO_DEPEND=0
SUBST_CLASSES+= fix-paths2
SUBST_STAGE.fix-paths2= pre-configure
SUBST_MESSAGE.fix-paths2= Fixing absolute paths.
SUBST_FILES.fix-paths2= ${MOZILLA_DIR}xpcom/build/nsXPCOMPrivate.h
SUBST_FILES.fix-paths2+= ${MOZILLA_DIR}xulrunner/app/nsRegisterGREUnix.cpp
SUBST_FILES.fix-paths2+= ${MOZILLA_DIR}xulrunner/installer/Makefile.in
SUBST_SED.fix-paths2= -e 's,/etc/gre.d,${PREFIX}/lib/xulrunner192/gre.d,g'
.include "../../devel/xulrunner/mozilla-common.mk"
CONFIGURE_ARGS+= --enable-chrome-format=jar
.include "options.mk"
pre-configure:
cd ${WRKSRC} && autoconf
cd ${WRKSRC}/js/src && autoconf
cd ${WRKSRC}/nsprpub && autoconf
post-install:
# XXX fix the pkg-config files instead
rm -f ${DESTDIR}${PREFIX}/lib/xulrunner192/libxpcomglue.a
ln -s ${PREFIX}/lib/xulrunner192-sdk/sdk/lib/libxpcomglue.a \
${DESTDIR}${PREFIX}/lib/xulrunner192/libxpcomglue.a
rm -f ${DESTDIR}${PREFIX}/lib/xulrunner192/libxpcomglue_s.a
ln -s ${PREFIX}/lib/xulrunner192-sdk/sdk/lib/libxpcomglue_s.a \
${DESTDIR}${PREFIX}/lib/xulrunner192/libxpcomglue_s.a
rm -f ${DESTDIR}${PREFIX}/lib/xulrunner192/libunicharutil_external_s.a
ln -s ${PREFIX}/lib/xulrunner192-sdk/sdk/lib/libunicharutil_external_s.a \
${DESTDIR}${PREFIX}/lib/xulrunner192/libunicharutil_external_s.a
.include "../../mk/bsd.pkg.mk"