Worked around embedding of staging dir to .pc files:
authorStanislav Brabec <utx@penguin.cz>
Tue, 1 Apr 2008 22:33:27 +0000 (22:33 +0000)
committerStanislav Brabec <utx@penguin.cz>
Tue, 1 Apr 2008 22:33:27 +0000 (22:33 +0000)
* from cups-config to libgnomecups-1.0.pc
* from more .pc files included in non-standard way to wv-1.0.pc

packages/gnome/libgnomecups_0.2.2.bb
packages/wv/wv_1.2.0.bb

index 53251ba..905a4a6 100644 (file)
@@ -6,6 +6,11 @@ DEPENDS="glib-2.0 gtk+ pango cups intltool libgnomeui"
 
 inherit gnome pkgconfig
 
+do_compile_append () {
+       cp libgnomecups-1.0.pc libgnomecups-1.0.pc.old
+       sed 's:${STAGING_DIR_HOST}::' < libgnomecups-1.0.pc.old > libgnomecups-1.0.pc
+}
+
 do_stage() {
 autotools_stage_all
 }
index 5b0a484..9e9e65f 100644 (file)
@@ -12,6 +12,11 @@ S = "${WORKDIR}/${PN}-${PV}"
 
 EXTRA_OECONF = ""
 
+do_compile_append () {
+       cp wv-1.0.pc wv-1.0.pc.old
+       sed 's:${STAGING_DIR_HOST}::g' < wv-1.0.pc.old > wv-1.0.pc
+}
+
 do_stage () {
        autotools_stage_all
 }