pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc - allow firefox and xulrunner to share some infrastruc...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a019779f65d5
branches:  trunk
changeset: 400102:a019779f65d5
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Sun Oct 11 10:49:56 2009 +0000

description:
- allow firefox and xulrunner to share some infrastructure
- install headers for plugin and liveconnect (needed by openjdk7-icedtea-plugin)
- bump revision for both packages

diffstat:

 devel/xulrunner/Makefile         |  86 +++++++--------------------------------
 devel/xulrunner/PLIST            |  48 +++++++++++++++++++++-
 devel/xulrunner/distinfo         |   8 ++-
 devel/xulrunner/patches/patch-aa |  22 ++++++++-
 devel/xulrunner/patches/patch-ay |  40 ++++++++++++++++++
 devel/xulrunner/patches/patch-ra |   9 ++++
 devel/xulrunner/patches/patch-rb |   7 +++
 devel/xulrunner/patches/patch-rc |  12 +++++
 www/firefox/Makefile             |  52 +++--------------------
 www/firefox/distinfo             |  14 ------
 www/firefox/patches/patch-aa     |  78 ------------------------------------
 www/firefox/patches/patch-ao     |  24 -----------
 www/firefox/patches/patch-ma     |  23 ----------
 www/firefox/patches/patch-mi     |  15 ------
 www/firefox/patches/patch-mk     |  19 --------
 www/firefox/patches/patch-mm     |  19 --------
 www/firefox/patches/patch-ra     |   9 ----
 www/firefox/patches/patch-rb     |   7 ---
 www/firefox/patches/patch-rc     |  12 -----
 19 files changed, 164 insertions(+), 340 deletions(-)

diffs (truncated from 840 to 300 lines):

diff -r 131f23e29303 -r a019779f65d5 devel/xulrunner/Makefile
--- a/devel/xulrunner/Makefile  Sun Oct 11 10:30:06 2009 +0000
+++ b/devel/xulrunner/Makefile  Sun Oct 11 10:49:56 2009 +0000
@@ -1,10 +1,10 @@
-# $NetBSD: Makefile,v 1.23 2009/09/27 17:52:22 tnn Exp $
+# $NetBSD: Makefile,v 1.24 2009/10/11 10:49:56 tnn Exp $
 #
 
 DISTNAME=      firefox-${FIREFOX_VER}.source
 PKGNAME=       ${DISTNAME:S/firefox/xulrunner/:S/3.5/1.9.1/:S/.source//}
 FIREFOX_VER=   3.5.3
-PKGREVISION=   5
+PKGREVISION=   6
 CATEGORIES=    devel www
 MASTER_SITES=  ${MASTER_SITE_MOZILLA:=firefox/releases/${FIREFOX_VER}/source/}
 EXTRACT_SUFX=  .tar.bz2
@@ -14,14 +14,7 @@
 COMMENT=       XML User Interface Language runtime environment
 
 WRKSRC=                ${WRKDIR}/mozilla-1.9.1
-GNU_CONFIGURE= yes
-USE_TOOLS+=    pkg-config perl gmake autoconf213
-USE_LANGUAGES= c c++
-
-BUILD_DEPENDS+=                zip>=2.3:../../archivers/zip
-
-PKG_DESTDIR_SUPPORT=   user-destdir
-CHECK_PORTABILITY_SKIP=        security/nss/tests/libpkix/libpkix.sh
+MOZILLA_DIR=   # empty
 
 PKGCONFIG_OVERRIDE+=   xulrunner/installer/libxul-embedding-unstable.pc.in
 PKGCONFIG_OVERRIDE+=   xulrunner/installer/libxul-embedding.pc.in
@@ -34,62 +27,20 @@
 PKGCONFIG_OVERRIDE+=   xulrunner/installer/mozilla-nss.pc.in
 PKGCONFIG_OVERRIDE+=   xulrunner/installer/mozilla-plugin.pc.in
 
-PRIVILEGED_STAGES=     clean
-
-CONFIG_GUESS_OVERRIDE= build/autoconf/config.guess
-CONFIG_GUESS_OVERRIDE+=        js/src/build/autoconf/config.guess
-CONFIG_GUESS_OVERRIDE+=        nsprpub/build/autoconf/config.guess
-CONFIG_SUB_OVERRIDE=   build/autoconf/config.sub
-CONFIG_SUB_OVERRIDE+=  js/src/build/autoconf/config.sub
-CONFIG_SUB_OVERRIDE+=  nsprpub/build/autoconf/config.sub
-
 CONFIGURE_ARGS+=       --enable-application=xulrunner
 CONFIGURE_ARGS+=       --enable-libxul
-CONFIGURE_ARGS+=       --disable-tests --disable-pedantic
-CONFIGURE_ARGS+=       --enable-crypto
-CONFIGURE_ARGS+=       --enable-optimize=-O2 --with-pthreads
-CONFIGURE_ARGS+=       --disable-javaxpcom
-CONFIGURE_ARGS+=       --enable-default-toolkit=cairo-gtk2
-CONFIGURE_ARGS+=       --enable-svg --enable-mathml
-CONFIGURE_ARGS+=       --enable-system-cairo
-CONFIGURE_ARGS+=       --with-system-jpeg
-CONFIGURE_ARGS+=       --with-system-zlib --with-system-bz2
-CONFIGURE_ARGS+=       --enable-system-sqlite
-CONFIGURE_ARGS+=       --disable-crashreporter
 
 ALL_ENV+=              MOZILLA_PKG_NAME=xulrunner
 
-SUBST_CLASSES+=                        fix-paths
-SUBST_STAGE.fix-paths=         pre-configure
-SUBST_MESSAGE.fix-paths=       Fixing absolute paths.
-SUBST_FILES.fix-paths=         xpcom/build/nsXPCOMPrivate.h
-SUBST_FILES.fix-paths+=                xulrunner/app/nsRegisterGREUnix.cpp
-SUBST_FILES.fix-paths+=                xulrunner/installer/Makefile.in
-SUBST_FILES.fix-paths+=                extensions/java/xpcom/interfaces/org/mozilla/xpcom/Mozilla.java
-SUBST_FILES.fix-paths+=                xpcom/io/nsAppFileLocationProvider.cpp
-SUBST_SED.fix-paths=           -e 's,/etc/gre.d,${PREFIX}/lib/xulrunner/gre.d,g'
-SUBST_SED.fix-paths+=          -e 's,/usr/lib/mozilla/plugins,${PREFIX}/lib/netscape/plugins,g'
-
-PYTHON_FOR_BUILD_ONLY= yes
-.include "../../lang/python/application.mk"
-CONFIGURE_ENV+=                PYTHON=${PYTHONBIN:Q}
-
+.include "../../mk/bsd.prefs.mk"
+.include "mozilla-common.mk"
 .include "options.mk"
-.include "../../mk/bsd.prefs.mk"
 
 pre-configure:
        cd ${WRKSRC} && autoconf
        cd ${WRKSRC}/js/src && autoconf
        cd ${WRKSRC}/nsprpub && autoconf
 
-# Makefiles sometimes call "rm -f" without more arguments. Kludge around ...
-.PHONY: create-rm-wrapper
-pre-configure: create-rm-wrapper
-create-rm-wrapper:
-       printf '#!/bin/sh\n[ "$$*" = "-f" ] && exit 0\nexec /bin/rm $$@\n' > \
-         ${WRAPPER_DIR}/bin/rm
-       chmod +x ${WRAPPER_DIR}/bin/rm
-
 INCLUDE_SUBDIRS=\
        caps chardet commandhandler content cookie docshell dom         \
        downloads embedcomponents exthandler fastfind find gfx          \
@@ -97,34 +48,29 @@
        locale loginmgr mimetype necko nkcache nspr oji pipboot pipnss  \
        places pref profdirserviceprovider rdf shistory spellchecker    \
        string thebes toolkitcomps uconv uriloader webbrowserpersist    \
-       webbrwsr webshell widget windowwatcher xpcom xpconnect xulapp
+       webbrwsr webshell widget windowwatcher xpcom xpconnect xulapp   \
+       plugin liveconnect
 
 post-install:
        # XXX fix the pkg-config files instead
        rm -f ${DESTDIR}${PREFIX}/lib/xulrunner/libxpcomglue.a
-       ln -s ${PREFIX}/lib/xulrunner-sdk/sdk/lib/libxpcomglue.a \
+       ln -s ${PREFIX}/lib/xulrunner-sdk/sdk/lib/libxpcomglue.a        \
          ${DESTDIR}${PREFIX}/lib/xulrunner/libxpcomglue.a
        rm -f ${DESTDIR}${PREFIX}/lib/xulrunner/libxpcomglue_s.a
-       ln -s ${PREFIX}/lib/xulrunner-sdk/sdk/lib/libxpcomglue_s.a \
+       ln -s ${PREFIX}/lib/xulrunner-sdk/sdk/lib/libxpcomglue_s.a      \
          ${DESTDIR}${PREFIX}/lib/xulrunner/libxpcomglue_s.a
-       ${INSTALL_LIB} ${WRKSRC}/dist/lib/libunicharutil_external_s.a \
+       ${INSTALL_LIB} ${WRKSRC}/dist/lib/libunicharutil_external_s.a   \
          ${DESTDIR}${PREFIX}/lib/xulrunner
-       cd ${WRKSRC}/dist/include && \
-         ${INSTALL_DATA} `find ${INCLUDE_SUBDIRS} -name "*.h" -print` \
+.for dir in ${INCLUDE_SUBDIRS}
+       cd ${WRKSRC}/dist/include &&                                    \
+         ${INSTALL_DATA} `find ${dir} -name "*.h" -print`              \
+         ${DESTDIR}${PREFIX}/include/xulrunner/unstable
+.endfor
+       cd ${WRKSRC}/dist/include && ${INSTALL_DATA}                    \
          js/jsproto.tbl mozilla-config.h gtkembedmoz/gtkmozembed_glue.cpp \
          ${DESTDIR}${PREFIX}/include/xulrunner/unstable
        ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/include/xulrunner/unstable/obsolete
        cd ${WRKSRC}/dist/include/nspr/obsolete && ${INSTALL_DATA} protypes.h \
          ${DESTDIR}${PREFIX}/include/xulrunner/unstable/obsolete
 
-.if ${OPSYS} == "Linux"
-.include "../../audio/alsa-lib/buildlink3.mk"
-.endif
-.include "../../archivers/bzip2/buildlink3.mk"
-BUILDLINK_API_DEPENDS.sqlite3+=        sqlite3>=3.6.10
-.include "../../databases/sqlite3/buildlink3.mk"
-.include "../../devel/zlib/buildlink3.mk"
-.include "../../net/libIDL/buildlink3.mk"
-.include "../../x11/gtk2/buildlink3.mk"
-.include "../../x11/libXt/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 131f23e29303 -r a019779f65d5 devel/xulrunner/PLIST
--- a/devel/xulrunner/PLIST     Sun Oct 11 10:30:06 2009 +0000
+++ b/devel/xulrunner/PLIST     Sun Oct 11 10:49:56 2009 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.16 2009/10/06 15:46:32 tnn Exp $
+@comment $NetBSD: PLIST,v 1.17 2009/10/11 10:49:56 tnn Exp $
 bin/xulrunner
 include/xulrunner/stable/base64.h
 include/xulrunner/stable/blapit.h
@@ -572,6 +572,7 @@
 include/xulrunner/unstable/jshash.h
 include/xulrunner/unstable/jsinterp.h
 include/xulrunner/unstable/jsiter.h
+include/xulrunner/unstable/jsjava.h
 include/xulrunner/unstable/jslock.h
 include/xulrunner/unstable/jslong.h
 include/xulrunner/unstable/jsmath.h
@@ -619,6 +620,12 @@
 ${PLIST.jit}include/xulrunner/unstable/nanojit.h
 include/xulrunner/unstable/necko-config.h
 include/xulrunner/unstable/netCore.h
+include/xulrunner/unstable/netscape_javascript_JSException.h
+include/xulrunner/unstable/netscape_javascript_JSObject.h
+include/xulrunner/unstable/npapi.h
+include/xulrunner/unstable/npfunctions.h
+include/xulrunner/unstable/npruntime.h
+include/xulrunner/unstable/nptypes.h
 include/xulrunner/unstable/nsASocketHandler.h
 include/xulrunner/unstable/nsAString.h
 include/xulrunner/unstable/nsAXPCNativeCallContext.h
@@ -717,6 +724,7 @@
 include/xulrunner/unstable/nsDateTimeFormatCID.h
 include/xulrunner/unstable/nsDebug.h
 include/xulrunner/unstable/nsDebugImpl.h
+include/xulrunner/unstable/nsDefaultPlugin.h
 include/xulrunner/unstable/nsDependentString.h
 include/xulrunner/unstable/nsDependentSubstring.h
 include/xulrunner/unstable/nsDeque.h
@@ -872,6 +880,7 @@
 include/xulrunner/unstable/nsICipherInfo.h
 include/xulrunner/unstable/nsIClassInfo.h
 include/xulrunner/unstable/nsIClassInfoImpl.h
+include/xulrunner/unstable/nsIClassicPluginFactory.h
 include/xulrunner/unstable/nsIClientAuthDialogs.h
 include/xulrunner/unstable/nsIClipboard.h
 include/xulrunner/unstable/nsIClipboardCommands.h
@@ -924,6 +933,7 @@
 include/xulrunner/unstable/nsICookiePermission.h
 include/xulrunner/unstable/nsICookiePromptService.h
 include/xulrunner/unstable/nsICookieService.h
+include/xulrunner/unstable/nsICookieStorage.h
 include/xulrunner/unstable/nsICryptoFIPSInfo.h
 include/xulrunner/unstable/nsICryptoHMAC.h
 include/xulrunner/unstable/nsICryptoHash.h
@@ -1345,6 +1355,7 @@
 include/xulrunner/unstable/nsIEnumerator.h
 include/xulrunner/unstable/nsIEnvironment.h
 include/xulrunner/unstable/nsIErrorService.h
+include/xulrunner/unstable/nsIEventHandler.h
 include/xulrunner/unstable/nsIEventListener.h
 include/xulrunner/unstable/nsIEventListenerManager.h
 include/xulrunner/unstable/nsIEventStateManager.h
@@ -1369,6 +1380,7 @@
 include/xulrunner/unstable/nsIFileProtocolHandler.h
 include/xulrunner/unstable/nsIFileStreams.h
 include/xulrunner/unstable/nsIFileURL.h
+include/xulrunner/unstable/nsIFileUtilities.h
 include/xulrunner/unstable/nsIFind.h
 include/xulrunner/unstable/nsIFocusController.h
 include/xulrunner/unstable/nsIFocusEventSuppressor.h
@@ -1405,6 +1417,7 @@
 include/xulrunner/unstable/nsIHTMLContentSink.h
 include/xulrunner/unstable/nsIHTMLDocument.h
 include/xulrunner/unstable/nsIHTMLToTextSink.h
+include/xulrunner/unstable/nsIHTTPHeaderListener.h
 include/xulrunner/unstable/nsIHandlerService.h
 include/xulrunner/unstable/nsIHashable.h
 include/xulrunner/unstable/nsIHelperAppLauncherDialog.h
@@ -1441,12 +1454,15 @@
 include/xulrunner/unstable/nsIInterfaceInfoManager.h
 include/xulrunner/unstable/nsIInterfaceRequestor.h
 include/xulrunner/unstable/nsIInterfaceRequestorUtils.h
+include/xulrunner/unstable/nsIJRILiveConnectPIPeer.h
+include/xulrunner/unstable/nsIJRILiveConnectPlugin.h
 include/xulrunner/unstable/nsIJRIPlugin.h
 include/xulrunner/unstable/nsIJSContextStack.h
 include/xulrunner/unstable/nsIJSEventListener.h
 include/xulrunner/unstable/nsIJSNativeInitializer.h
 include/xulrunner/unstable/nsIJSON.h
 include/xulrunner/unstable/nsIJSRuntimeService.h
+include/xulrunner/unstable/nsIJVMAuthTools.h
 include/xulrunner/unstable/nsIJVMConfigManager.h
 include/xulrunner/unstable/nsIJVMConsole.h
 include/xulrunner/unstable/nsIJVMManager.h
@@ -1468,6 +1484,7 @@
 include/xulrunner/unstable/nsIListBoxObject.h
 include/xulrunner/unstable/nsIListControlFrame.h
 include/xulrunner/unstable/nsILiveConnectManager.h
+include/xulrunner/unstable/nsILiveconnect.h
 include/xulrunner/unstable/nsILivemarkService.h
 include/xulrunner/unstable/nsILoadContext.h
 include/xulrunner/unstable/nsILoadGroup.h
@@ -1550,6 +1567,22 @@
 include/xulrunner/unstable/nsIPhonetic.h
 include/xulrunner/unstable/nsIPipe.h
 include/xulrunner/unstable/nsIPlatformCharset.h
+include/xulrunner/unstable/nsIPlugin.h
+include/xulrunner/unstable/nsIPluginDocument.h
+include/xulrunner/unstable/nsIPluginHost.h
+include/xulrunner/unstable/nsIPluginInputStream.h
+include/xulrunner/unstable/nsIPluginInstance.h
+include/xulrunner/unstable/nsIPluginInstanceInternal.h
+include/xulrunner/unstable/nsIPluginInstanceOwner.h
+include/xulrunner/unstable/nsIPluginInstancePeer.h
+include/xulrunner/unstable/nsIPluginInstancePeer2.h
+include/xulrunner/unstable/nsIPluginManager.h
+include/xulrunner/unstable/nsIPluginManager2.h
+include/xulrunner/unstable/nsIPluginStreamInfo.h
+include/xulrunner/unstable/nsIPluginStreamListener.h
+include/xulrunner/unstable/nsIPluginTag.h
+include/xulrunner/unstable/nsIPluginTagInfo.h
+include/xulrunner/unstable/nsIPluginTagInfo2.h
 include/xulrunner/unstable/nsIPluginWidget.h
 include/xulrunner/unstable/nsIPopupBoxObject.h
 include/xulrunner/unstable/nsIPosixLocale.h
@@ -1681,6 +1714,7 @@
 include/xulrunner/unstable/nsIScriptableDateFormat.h
 include/xulrunner/unstable/nsIScriptableInputStream.h
 include/xulrunner/unstable/nsIScriptableInterfaces.h
+include/xulrunner/unstable/nsIScriptablePlugin.h
 include/xulrunner/unstable/nsIScriptableRegion.h
 include/xulrunner/unstable/nsIScriptableUConv.h
 include/xulrunner/unstable/nsIScrollBoxObject.h
@@ -1691,7 +1725,9 @@
 include/xulrunner/unstable/nsISecretDecoderRing.h
 include/xulrunner/unstable/nsISecureBrowserUI.h
 include/xulrunner/unstable/nsISecureEnv.h
+include/xulrunner/unstable/nsISecureLiveconnect.h
 include/xulrunner/unstable/nsISecurityCheckedComponent.h
+include/xulrunner/unstable/nsISecurityContext.h
 include/xulrunner/unstable/nsISecurityEventSink.h
 include/xulrunner/unstable/nsISecurityInfoProvider.h
 include/xulrunner/unstable/nsISecurityPref.h
@@ -1837,6 +1873,7 @@
 include/xulrunner/unstable/nsIWidget.h
 include/xulrunner/unstable/nsIWin32Locale.h
 include/xulrunner/unstable/nsIWindowWatcher.h
+include/xulrunner/unstable/nsIWindowlessPlugInstPeer.h
 include/xulrunner/unstable/nsIWritablePropertyBag.h
 include/xulrunner/unstable/nsIWritablePropertyBag2.h
 include/xulrunner/unstable/nsIWyciwygChannel.h
@@ -1920,6 +1957,8 @@
 include/xulrunner/unstable/nsPIDOMStorage.h
 include/xulrunner/unstable/nsPIDOMWindow.h
 include/xulrunner/unstable/nsPIPlacesDatabase.h
+include/xulrunner/unstable/nsPIPluginHost.h
+include/xulrunner/unstable/nsPIPluginInstancePeer.h



Home | Main Index | Thread Index | Old Index