summaryrefslogtreecommitdiff
path: root/recipes/gnome-mplayer/gecko-mediaplayer_0.9.8.bb
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2009-11-08 10:18:31 +0100
committerKoen Kooi <koen@openembedded.org>2009-11-08 10:18:31 +0100
commit1309ac4fd20ff3a1f0e3571db6ddfb59f7ae1228 (patch)
treee190d585df2a5f3d6df1b939157981f140ccfe0d /recipes/gnome-mplayer/gecko-mediaplayer_0.9.8.bb
parent496294034cb8cadeb666cd8b8a2694b33c449fc0 (diff)
gecko-mediaplayer: remove fragile hardcoded symlink
It now iterates over every firefox directory and symlinks accordingly
Diffstat (limited to 'recipes/gnome-mplayer/gecko-mediaplayer_0.9.8.bb')
-rw-r--r--recipes/gnome-mplayer/gecko-mediaplayer_0.9.8.bb18
1 files changed, 10 insertions, 8 deletions
diff --git a/recipes/gnome-mplayer/gecko-mediaplayer_0.9.8.bb b/recipes/gnome-mplayer/gecko-mediaplayer_0.9.8.bb
index 6a1d1a0a81..a8ee6ffa65 100644
--- a/recipes/gnome-mplayer/gecko-mediaplayer_0.9.8.bb
+++ b/recipes/gnome-mplayer/gecko-mediaplayer_0.9.8.bb
@@ -4,7 +4,7 @@ LICENSE = "GPL"
DEPENDS = "firefox gtk+ gconf dbus-glib"
RDEPENDS = "firefox gnome-mplayer"
-PR = "r5"
+PR = "r6"
inherit autotools
@@ -13,21 +13,23 @@ SRC_URI = "http://gecko-mediaplayer.googlecode.com/files/${P}.tar.gz \
file://extensions \
"
-# Yes, this needs to match the firefox version you are building *exactly*
-MOZILLA_HOME = "firefox-3.5.5"
-
do_install_append() {
- install -d ${D}${libdir}/${MOZILLA_HOME}/extensions/
cp -dpR ${WORKDIR}/extens* ${D}${libdir}/mozilla/
- ln -sf ${libdir}/mozilla/extensions/flash@alwaysinnovating.com ${D}${libdir}/${MOZILLA_HOME}/extensions/
}
PACKAGES =+ "${PN}-firefox-hack"
RDEPENDS_${PN}-firefox-hack = "${PN}"
-FILES_${PN}-firefox-hack = "${libdir}/mozilla/extensions ${libdir}/${MOZILLA_HOME}"
+FILES_${PN}-firefox-hack = "${libdir}/mozilla/extensions"
FILES_${PN} += "${sysconfdir}/* \
- ${libdir}/mozilla/* ${libdir}/${MOZILLA_HOME}"
+ ${libdir}/mozilla/*"
FILES_${PN}-dbg += "${libdir}/mozilla*/plugins/.debug/*"
+pkg_postinst_${PN}-firefox-hack() {
+for firefoxdir in $D${libdir}/firefox-* ; do
+ if [ -e $firefoxdir/extensions/ ] ; then
+ ln -sf ${libdir}/mozilla/extensions/flash@alwaysinnovating.com $firefoxdir/extensions/
+ fi
+done
+}