gmyth*: fix up .pc files for -dev packages as well
authorKoen Kooi <koen@openembedded.org>
Sun, 10 Aug 2008 15:33:21 +0000 (15:33 +0000)
committerKoen Kooi <koen@openembedded.org>
Sun, 10 Aug 2008 15:33:21 +0000 (15:33 +0000)
packages/mythtv/gmyth-upnp_0.7.0.bb
packages/mythtv/gmyth_0.7.1.bb

index 3200ba3..eb6028a 100644 (file)
@@ -2,6 +2,8 @@ DESCRIPTION = "GMyth is a library to access MythTV backend services."
 LICENSE = "LGPLv2""
 HOMEPAGE = "http://gmyth.sourceforge.net/wiki/index.php/Main_Page"
 
+PR = "r1"
+
 DEPENDS = "glib-2.0 mysql gmyth libupnp
 
 SRC_URI = "${SOURCEFORGE_MIRROR}/gmyth/${PN}_0.7-indt1.tar.gz"
@@ -11,7 +13,14 @@ inherit autotools
 
 AUTOTOOLS_STAGE_PKGCONFIG = "1"
 
+do_compile_append() {
+        sed -i -e s:${STAGING_DIR_TARGET}::g \
+              -e s,Version:,Version:\ 0\.7\.0,g \
+              -e s:/${TARGET_SYS}::g \   
+                 gmyth-upnp.pc
+}
+
 do_stage() {
-       autotools_stage_all
-}      
+        autotools_stage_all
+}
 
index b5f9849..11d6f43 100644 (file)
@@ -3,14 +3,21 @@ LICENSE = "LGPLv2""
 HOMEPAGE = "http://gmyth.sourceforge.net/wiki/index.php/Main_Page"
 DEPENDS = "curl libxml2 glib-2.0"
 
+PR = "r1"
+
 SRC_URI = "${SOURCEFORGE_MIRROR}/gmyth/${PN}-${PV}.tar.gz"
 
 inherit autotools
 
 AUTOTOOLS_STAGE_PKGCONFIG = "1"
 
+do_compile_append() {
+        sed -i -e s:${STAGING_DIR_TARGET}::g \
+               -e s:/${TARGET_SYS}::g \
+                  gmyth.pc
+}
+
 do_stage() {
-       sed -i -e s:${STAGING_DIR}::g gmyth.pc
        autotools_stage_all
 }