[oe-commits] Koen Kooi : firefox: fix .pc files for 3.5.2 and 3.6, fix up staging a bit
git version control
git at git.openembedded.org
Thu Mar 4 15:37:49 UTC 2010
Module: openembedded.git
Branch: org.openembedded.dev
Commit: 4d040590a7b3a44a9c18acced263dae350650bb5
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=4d040590a7b3a44a9c18acced263dae350650bb5
Author: Koen Kooi <koen at openembedded.org>
Date: Thu Mar 4 14:49:56 2010 +0100
firefox: fix .pc files for 3.5.2 and 3.6, fix up staging a bit
---
recipes/mozilla/firefox-3.5.2/firefox-plugin.pc | 10 ++++++++++
recipes/mozilla/firefox-3.5.2/firefox-xpcom.pc | 13 +++++++++++++
recipes/mozilla/firefox-3.5.2/nspr.pc | 10 ++++++++++
recipes/mozilla/firefox-3.6/firefox-plugin.pc | 10 ++++++++++
recipes/mozilla/firefox-3.6/firefox-xpcom.pc | 13 +++++++++++++
recipes/mozilla/firefox-3.6/nspr.pc | 10 ++++++++++
recipes/mozilla/firefox.inc | 13 +++++++++----
recipes/mozilla/firefox_3.6.bb | 3 ++-
8 files changed, 77 insertions(+), 5 deletions(-)
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
index 0000000..611acd5
--- /dev/null
+++ b/recipes/mozilla/firefox-3.5.2/firefox-plugin.pc
@@ -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
index 0000000..935d357
--- /dev/null
+++ b/recipes/mozilla/firefox-3.5.2/firefox-xpcom.pc
@@ -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
index 0000000..ba3d131
--- /dev/null
+++ b/recipes/mozilla/firefox-3.5.2/nspr.pc
@@ -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
index 0000000..f6ad141
--- /dev/null
+++ b/recipes/mozilla/firefox-3.6/firefox-plugin.pc
@@ -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
index 0000000..6eb1289
--- /dev/null
+++ b/recipes/mozilla/firefox-3.6/firefox-xpcom.pc
@@ -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
index 0000000..b73ffc0
--- /dev/null
+++ b/recipes/mozilla/firefox-3.6/nspr.pc
@@ -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}
diff --git a/recipes/mozilla/firefox.inc b/recipes/mozilla/firefox.inc
index cf429f0..024858a 100644
--- a/recipes/mozilla/firefox.inc
+++ b/recipes/mozilla/firefox.inc
@@ -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} "
diff --git a/recipes/mozilla/firefox_3.6.bb b/recipes/mozilla/firefox_3.6.bb
index 43e42b7..573154f 100644
--- a/recipes/mozilla/firefox_3.6.bb
+++ b/recipes/mozilla/firefox_3.6.bb
@@ -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 \
More information about the Openembedded-commits
mailing list