Fix PKG_CONFIG_PATH references which should be PKG_CONFIG_DIR
authorRichard Purdie <rpurdie@rpsys.net>
Sun, 2 Sep 2007 10:24:06 +0000 (10:24 +0000)
committerRichard Purdie <rpurdie@rpsys.net>
Sun, 2 Sep 2007 10:24:06 +0000 (10:24 +0000)
classes/gtk-binver.bbclass
classes/pkgconfig.bbclass
packages/gnome/libsoup_2.2.100.bb
packages/qt/qt4-x11-free_4.3.0.bb
packages/xcalibrateext/xcalibrateext_git.bb
packages/xfce/xfce-mcs-manager.inc

index 8398cc5..5208249 100644 (file)
@@ -1,7 +1,7 @@
 def gtkbinver_find(d):
     import bb
     try:
-        for line in file( "%s/gtk+-2.0.pc" % bb.data.getVar('PKG_CONFIG_PATH', d, 1) ).readlines():
+        for line in file( "%s/gtk+-2.0.pc" % bb.data.getVar('PKG_CONFIG_DIR', d, 1) ).readlines():
             if line.startswith( "gtk_binary_version" ):
                 # bb.note( "gtk_binary_version = '%s'" % line.split("=")[1].strip() )
                 return line.split("=")[1].strip()
index 3256977..c795c8a 100644 (file)
@@ -31,7 +31,7 @@ do_install_append () {
 do_stage_append () {
        for pc in `find ${S} -name '*.pc' -type f | grep -v -- '-uninstalled.pc$'`; do
                pcname=`basename $pc`
-               install -d ${PKG_CONFIG_PATH}
-               cat $pc | sed ${@get_pkgconfig_mangle(d)} -e 's:${D}${libdir}\S*:${STAGING_LIBDIR}:g' -e 's:${D}${prefix}/include\S*:${STAGING_INCDIR}:g' > ${PKG_CONFIG_PATH}/$pcname
+               install -d ${PKG_CONFIG_DIR}
+               cat $pc | sed ${@get_pkgconfig_mangle(d)} -e 's:${D}${libdir}\S*:${STAGING_LIBDIR}:g' -e 's:${D}${prefix}/include\S*:${STAGING_INCDIR}:g' > ${PKG_CONFIG_DIR}/$pcname
        done
 }
index 701ab15..e829ad3 100644 (file)
@@ -8,9 +8,9 @@ SRC_URI = "http://ftp.gnome.org/pub/GNOME/sources/${PN}/2.2/${PN}-${PV}.tar.bz2"
 inherit autotools pkgconfig
 
 do_stage() {
-       rm -f ${PKG_CONFIG_PATH}/libsoup*
+       rm -f ${PKG_CONFIG_DIR}/libsoup*
        autotools_stage_all
-       ln -sf ${PKG_CONFIG_PATH}/libsoup.pc ${PKG_CONFIG_PATH}/libsoup-2.2.pc
+       ln -sf ${PKG_CONFIG_DIR}/libsoup.pc ${PKG_CONFIG_DIR}/libsoup-2.2.pc
 }
 
 FILES_${PN} = "${libdir}/lib*.so.*"
index 8ad2017..8d68642 100644 (file)
@@ -81,9 +81,10 @@ do_stage() {
        for pcc in AssistantClient DBus Test UiTools ; do
                sed -i -e 's,${S}/lib,${STAGING_QT_DIR}/lib,g' ${STAGING_QT_DIR}/lib/pkgconfig/Qt${pcc}.pc
        done
+       install -d ${PKG_CONFIG_DIR}/
         for pc in ${STAGING_QT_DIR}/lib/pkgconfig/*.pc ; do
                sed -i -e 's,$(OE_QMAKE_LIBS_X11),-lX11 -lXext,g' $pc
-                install -m 0644 $pc ${PKG_CONFIG_PATH}/
+                install -m 0644 $pc ${PKG_CONFIG_DIR}/
         done
 }
 
index 16955b5..51649c9 100644 (file)
@@ -13,5 +13,5 @@ inherit autotools pkgconfig
 do_stage() {
        autotools_stage_all
        #make it compatible with the old package from cvs
-       ln -sf ${PKG_CONFIG_PATH}/xcalibrateproto.pc ${PKG_CONFIG_PATH}/xcalibrateext.pc
+       ln -sf ${PKG_CONFIG_DIR}/xcalibrateproto.pc ${PKG_CONFIG_DIR}/xcalibrateext.pc
 }
index c50bf0c..e4fa10f 100644 (file)
@@ -20,6 +20,6 @@ do_stage() {
 # for this particular .pc, so the following will suffice:
 
 do_stage_append () {
-       install -d ${PKG_CONFIG_PATH}
-       sed -e 's:${includedir}:${STAGING_INCDIR}:;' ${S}/xfce-mcs-manager/xfce-mcs-manager.pc >${PKG_CONFIG_PATH}/xfce-mcs-manager.pc
+       install -d ${PKG_CONFIG_DIR}
+       sed -e 's:${includedir}:${STAGING_INCDIR}:;' ${S}/xfce-mcs-manager/xfce-mcs-manager.pc >${PKG_CONFIG_DIR}/xfce-mcs-manager.pc
 }