diff options
-rw-r--r-- | meta/classes/pkgconfig.bbclass | 8 | ||||
-rw-r--r-- | meta/classes/pkgconfig_stage.bbclass | 7 |
2 files changed, 8 insertions, 7 deletions
diff --git a/meta/classes/pkgconfig.bbclass b/meta/classes/pkgconfig.bbclass index 22a9cd0072..84dad76ae2 100644 --- a/meta/classes/pkgconfig.bbclass +++ b/meta/classes/pkgconfig.bbclass | |||
@@ -1,9 +1,3 @@ | |||
1 | DEPENDS_prepend = "pkgconfig-native " | 1 | DEPENDS_prepend = "pkgconfig-native " |
2 | 2 | ||
3 | do_stage_append () { | 3 | inherit pkconfig_stage |
4 | install -d ${PKG_CONFIG_DIR} | ||
5 | for pc in `find ${S} -name '*.pc' -type f | grep -v -- '-uninstalled.pc$'`; do | ||
6 | pcname=`basename $pc` | ||
7 | cat $pc > ${PKG_CONFIG_DIR}/$pcname | ||
8 | done | ||
9 | } | ||
diff --git a/meta/classes/pkgconfig_stage.bbclass b/meta/classes/pkgconfig_stage.bbclass new file mode 100644 index 0000000000..fae2ee024e --- /dev/null +++ b/meta/classes/pkgconfig_stage.bbclass | |||
@@ -0,0 +1,7 @@ | |||
1 | do_stage_append () { | ||
2 | install -d ${PKG_CONFIG_DIR} | ||
3 | for pc in `find ${S} -name '*.pc' -type f | grep -v -- '-uninstalled.pc$'`; do | ||
4 | pcname=`basename $pc` | ||
5 | cat $pc > ${PKG_CONFIG_DIR}/$pcname | ||
6 | done | ||
7 | } | ||