[50850] trunk/dports/www/firefox-x11/Portfile
jeremyhu at macports.org
jeremyhu at macports.org
Mon May 11 00:22:15 PDT 2009
Revision: 50850
http://trac.macports.org/changeset/50850
Author: jeremyhu at macports.org
Date: 2009-05-11 00:22:09 -0700 (Mon, 11 May 2009)
Log Message:
-----------
firefox-x11: Added a internal_dependencies variant like firefox-x11-devel.
Modified Paths:
--------------
trunk/dports/www/firefox-x11/Portfile
Modified: trunk/dports/www/firefox-x11/Portfile
===================================================================
--- trunk/dports/www/firefox-x11/Portfile 2009-05-11 06:53:17 UTC (rev 50849)
+++ trunk/dports/www/firefox-x11/Portfile 2009-05-11 07:22:09 UTC (rev 50850)
@@ -41,6 +41,12 @@
depends_lib \
port:xulrunner
+if {[variant_isset internal_dependencies]} {
+ set pkg_name ${name}-standalone
+} else {
+ set pkg_name firefox-x11
+}
+
configure.args \
--with-xulrunner-stub-name=xulrunner-stub \
--disable-static \
@@ -61,7 +67,7 @@
--enable-system-lcms \
--enable-system-cairo \
--enable-system-sqlite \
- --with-default-mozilla-five-home=${prefix}/lib/${name} \
+ --with-default-mozilla-five-home=${prefix}/lib/${pkg_name} \
--enable-oji \
--enable-plugins \
--enable-mathml \
@@ -132,6 +138,31 @@
--enable-official-branding
}
+variant internal_dependencies description {Use internal versions of nspr, nss, and xulrunner} {
+ configure.args-delete \
+ --with-system-nspr \
+ --with-nspr-prefix=${prefix} \
+ --with-system-nss \
+ --with-nss-prefix=${prefix} \
+ --with-libxul-sdk=${prefix}/lib/xulrunner
+
+ configure.args-append \
+ --enable-libxul
+
+ depends_lib-delete \
+ port:xulrunner
+
+ depends_lib-append \
+ port:heimdal \
+ port:lcms \
+ port:gconf \
+ port:esound \
+ port:libcanberra \
+ port:findutils \
+ port:gtk2 \
+ port:xorg-libXt
+}
+
post-extract {
# https://bugzilla.mozilla.org/show_bug.cgi?id=484353
move ${worksrcpath}/modules/libjar/nsWildCard.cpp ${worksrcpath}/modules/libjar/nsWildCard_jar.cpp
@@ -166,12 +197,12 @@
}
# Set the right install_name on the libs
- reinplace "s:@executable_path:${prefix}/lib/${name}:g" ${worksrcpath}/config/rules.mk
- reinplace "s:@executable_path:${prefix}/lib/${name}:g" ${worksrcpath}/config/config.mk
- reinplace "s:@executable_path:${prefix}/lib/${name}:g" ${worksrcpath}/nsprpub/configure.in
- reinplace "s:@executable_path:${prefix}/lib/${name}:g" ${worksrcpath}/nsprpub/configure
- reinplace "s:@executable_path:${prefix}/lib/${name}:g" ${worksrcpath}/security/coreconf/Darwin.mk
- reinplace "s:@executable_path:${prefix}/lib/${name}:g" ${worksrcpath}/security/nss/lib/freebl/config.mk
+ reinplace "s:@executable_path:${prefix}/lib/${pkg_name}:g" ${worksrcpath}/config/rules.mk
+ reinplace "s:@executable_path:${prefix}/lib/${pkg_name}:g" ${worksrcpath}/config/config.mk
+ reinplace "s:@executable_path:${prefix}/lib/${pkg_name}:g" ${worksrcpath}/nsprpub/configure.in
+ reinplace "s:@executable_path:${prefix}/lib/${pkg_name}:g" ${worksrcpath}/nsprpub/configure
+ reinplace "s:@executable_path:${prefix}/lib/${pkg_name}:g" ${worksrcpath}/security/coreconf/Darwin.mk
+ reinplace "s:@executable_path:${prefix}/lib/${pkg_name}:g" ${worksrcpath}/security/nss/lib/freebl/config.mk
# Fix the correct library filenames for loading at runtime
reinplace "s:libatk-1.0.so.0:${prefix}/lib/libatk-1.0.dylib:" ${worksrcpath}/accessible/src/atk/nsAppRootAccessible.cpp
@@ -207,20 +238,20 @@
configure.env \
MOZCONFIG="${worksrcpath}/browser/config/mozconfig" \
- MOZILLA_FIVE_HOME="${prefix}/lib/${name}"
+ MOZILLA_FIVE_HOME="${prefix}/lib/${pkg_name}"
build.args-append \
- includedir="${prefix}/include/${name}" \
- idldir="${prefix}/share/idl/${name}" \
- installdir="${prefix}/lib/${name}" \
- sdkdir="${prefix}/lib/${name}" \
+ includedir="${prefix}/include/${pkg_name}" \
+ idldir="${prefix}/share/idl/${pkg_name}" \
+ installdir="${prefix}/lib/${pkg_name}" \
+ sdkdir="${prefix}/lib/${pkg_name}" \
SKIP_COPY_XULRUNNER=1
destroot.args-append \
- includedir="${prefix}/include/${name}" \
- idldir="${prefix}/share/idl/${name}" \
- installdir="${prefix}/lib/${name}" \
- sdkdir="${prefix}/lib/${name}" \
+ includedir="${prefix}/include/${pkg_name}" \
+ idldir="${prefix}/share/idl/${pkg_name}" \
+ installdir="${prefix}/lib/${pkg_name}" \
+ sdkdir="${prefix}/lib/${pkg_name}" \
SKIP_COPY_XULRUNNER=1
post-destroot {
@@ -230,8 +261,13 @@
${filespath}/share-applications-firefox.desktop \
${destroot}${prefix}/share/applications/firefox.desktop
- # Workaround to get root certs loaded, so https:// works
- ln -s ${prefix}/lib/nss/libnssckbi.dylib ${destroot}${prefix}/lib/${name}/libnssckbi.dylib
+ move ${destroot}${prefix}/bin/firefox ${destroot}${prefix}/bin/${pkg_name}
+ if {![variant_isset internal_dependencies]} {
+ ln -s ${pkg_name} ${destroot}${prefix}/bin/firefox
+
+ # Workaround to get root certs loaded, so https:// works
+ ln -s ${prefix}/lib/nss/libnssckbi.dylib ${destroot}${prefix}/lib/${pkg_name}/libnssckbi.dylib
+ }
}
livecheck.check regex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090511/fe09f96a/attachment.html>
More information about the macports-changes
mailing list