firefox: fix .pc files for 3.5.2 and 3.6, fix up staging a bit
authorKoen Kooi <koen@openembedded.org>
Thu, 4 Mar 2010 13:49:56 +0000 (14:49 +0100)
committerKoen Kooi <koen@openembedded.org>
Thu, 4 Mar 2010 15:37:23 +0000 (16:37 +0100)
recipes/mozilla/firefox-3.5.2/firefox-plugin.pc [new file with mode: 0644]
recipes/mozilla/firefox-3.5.2/firefox-xpcom.pc [new file with mode: 0644]
recipes/mozilla/firefox-3.5.2/nspr.pc [new file with mode: 0644]
recipes/mozilla/firefox-3.6/firefox-plugin.pc [new file with mode: 0644]
recipes/mozilla/firefox-3.6/firefox-xpcom.pc [new file with mode: 0644]
recipes/mozilla/firefox-3.6/nspr.pc [new file with mode: 0644]
recipes/mozilla/firefox.inc
recipes/mozilla/firefox_3.6.bb

diff --git a/recipes/mozilla/firefox-3.5.2/firefox-plugin.pc b/recipes/mozilla/firefox-3.5.2/firefox-plugin.pc
new file mode 100644 (file)
index 0000000..611acd5
--- /dev/null
@@ -0,0 +1,10 @@
+prefix=/usr
+exec_prefix=/usr
+libdir=/usr/lib
+includedir=/usr/include/firefox-3.5.2
+
+Name: Mozilla Plug-In API
+Description: Mozilla Plug-In API
+Version: 3.5
+Requires: firefox-xpcom = 3.5
+Cflags: -I${includedir}/java -I${includedir}/plugin
diff --git a/recipes/mozilla/firefox-3.5.2/firefox-xpcom.pc b/recipes/mozilla/firefox-3.5.2/firefox-xpcom.pc
new file mode 100644 (file)
index 0000000..935d357
--- /dev/null
@@ -0,0 +1,13 @@
+prefix=/usr
+exec_prefix=/usr
+libdir=/usr/lib
+includedir=/usr/include
+mozdir=${includedir}/firefox-3.5.2
+idldir=${includedir}/firefox-3.5.2
+
+Name: XPCOM
+Description: The Mozilla Cross Platform Component Library
+Version: 3.5
+Requires: nspr >= 4.8
+Libs: -L${libdir} -lxpcom -Wl,-R${libdir}
+Cflags: -I${mozdir} -I${mozdir}/xpcom -I${mozdir}/string
diff --git a/recipes/mozilla/firefox-3.5.2/nspr.pc b/recipes/mozilla/firefox-3.5.2/nspr.pc
new file mode 100644 (file)
index 0000000..ba3d131
--- /dev/null
@@ -0,0 +1,10 @@
+prefix=/usr
+exec_prefix=/usr
+libdir=/usr/lib
+includedir=/usr/include/firefox-3.5.2
+
+Name: NSPR
+Description: The Netscape Portable Runtime
+Version: 4.8
+Libs: -L${libdir} -lplds4 -lplc4 -lnspr4 -lpthread -ldl  -Wl,-R${libdir}
+Cflags: -I${includedir}
diff --git a/recipes/mozilla/firefox-3.6/firefox-plugin.pc b/recipes/mozilla/firefox-3.6/firefox-plugin.pc
new file mode 100644 (file)
index 0000000..f6ad141
--- /dev/null
@@ -0,0 +1,10 @@
+prefix=/usr
+exec_prefix=/usr
+libdir=/usr/lib
+includedir=/usr/include/firefox-3.6
+
+Name: Mozilla Plug-In API
+Description: Mozilla Plug-In API
+Version: 3.5
+Requires: firefox-xpcom = 3.6
+Cflags: -I${includedir}/java -I${includedir}/plugin
diff --git a/recipes/mozilla/firefox-3.6/firefox-xpcom.pc b/recipes/mozilla/firefox-3.6/firefox-xpcom.pc
new file mode 100644 (file)
index 0000000..6eb1289
--- /dev/null
@@ -0,0 +1,13 @@
+prefix=/usr
+exec_prefix=/usr
+libdir=/usr/lib
+includedir=/usr/include
+mozdir=${includedir}/firefox-3.6
+idldir=${includedir}/firefox-3.6
+
+Name: XPCOM
+Description: The Mozilla Cross Platform Component Library
+Version: 3.6
+Requires: nspr >= 4.8
+Libs: -L${libdir} -lxpcom -Wl,-R${libdir}
+Cflags: -I${mozdir} -I${mozdir}/xpcom -I${mozdir}/string
diff --git a/recipes/mozilla/firefox-3.6/nspr.pc b/recipes/mozilla/firefox-3.6/nspr.pc
new file mode 100644 (file)
index 0000000..b73ffc0
--- /dev/null
@@ -0,0 +1,10 @@
+prefix=/usr
+exec_prefix=/usr
+libdir=/usr/lib
+includedir=/usr/include/firefox-3.6
+
+Name: NSPR
+Description: The Netscape Portable Runtime
+Version: 4.8
+Libs: -L${libdir} -lplds4 -lplc4 -lnspr4 -lpthread -ldl  -Wl,-R${libdir}
+Cflags: -I${includedir}
index cf429f0..024858a 100644 (file)
@@ -48,6 +48,15 @@ do_install() {
        grep -Rl app.update.enabled ${D}${libdir}/${PN}-*/ \
           | grep '.js$' \
           | xargs -n 1 sed -i 's/\(pref("app.update.enabled",\s*\)true)/\1false)/g'
+
+        for pc in ${WORKDIR}/*.pc ; do
+            sed -i s:3.5.2:${PV}:g $pc
+        done
+
+        install -d ${D}${libdir}/pkgconfig
+        install -m 0644 ${WORKDIR}/firefox-plugin.pc ${D}${libdir}/pkgconfig
+        install -m 0644 ${WORKDIR}/firefox-xpcom.pc ${D}${libdir}/pkgconfig
+        install -m 0644 ${WORKDIR}/nspr.pc ${D}${libdir}/pkgconfig
 }
 
 pkg_postinst_${PN}() {
@@ -55,10 +64,6 @@ pkg_postinst_${PN}() {
        chmod -R a+w ${libdir}/${PN}* ||true 
 }
 
-do_stage() {
-       autotools_stage_all
-}
-
 # Force feed mozilla our ldflags
 TARGET_CC_ARCH += " ${LDFLAGS} "
 
index 43e42b7..573154f 100644 (file)
@@ -1,7 +1,8 @@
 DEPENDS += "cairo sqlite3 libnotify"
 
-PR = "r2"
+PR = "r4"
 
+# The .pc files below have "3.6" hardcoded, fix that before using them in a newer FF version!
 SRC_URI = "ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/${PV}/source/firefox-${PV}.source.tar.bz2;name=archive \
        file://jsautocfg.h \
        file://security-cross.patch;patch=1 \