summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2006-08-10 08:59:08 +0000
committerKoen Kooi <koen@openembedded.org>2006-08-10 08:59:08 +0000
commitef641a20ce582cb6dfc16dd2a3c265f06e87cf3a (patch)
treedb7f47e237220b66c8a9fd6fc3eedaacf434b6fd /packages
parent67400ff100d61de7babea2ce320c5bb99d7f4061 (diff)
libpng 1.2.12: fix libpng.pc
Diffstat (limited to 'packages')
-rw-r--r--packages/libpng/libpng_1.2.12.bb15
1 files changed, 14 insertions, 1 deletions
diff --git a/packages/libpng/libpng_1.2.12.bb b/packages/libpng/libpng_1.2.12.bb
index b1096779fa..47849a73ce 100644
--- a/packages/libpng/libpng_1.2.12.bb
+++ b/packages/libpng/libpng_1.2.12.bb
@@ -4,6 +4,7 @@ LICENSE = "libpng"
SECTION = "libs"
PRIORITY = "required"
MAINTAINER = "Chris Larson <kergoth@handhelds.org>"
+PR = "r1"
DEPENDS = "zlib"
@@ -20,7 +21,7 @@ FILES_${PN}-dev = ${includedir} ${libdir}/lib*.so ${libdir}/*.la \
SRC_URI = "${SOURCEFORGE_MIRROR}/libpng/libpng-${PV}.tar.bz2"
S = "${WORKDIR}/libpng-${PV}"
-inherit pkgconfig binconfig
+inherit pkgconfig binconfig pkgconfig
EXTRA_OEMAKE_append = " ZLIBINC=${STAGING_INCDIR} ZLIBLIB=${STAGING_LIBDIR}"
@@ -32,6 +33,18 @@ do_compile() {
'ZLIBLIB=${STAGING_LIBDIR}'
}
+# apperently libpng doesn't expand the vars in libpng.pc, so we'll do that with sed
+# pkgconfig.bbclass will use a similar trick to fix them
+
+do_stage_prepend() {
+ sed -i -e 's:=@libdir@:=${libdir}:;' \
+ -e 's:=@includedir@:=${includedir}:;' \
+ -e 's:=@prefix@:=${prefix}:' \
+ -e 's:=@exec_prefix@:=${exec_prefix}:' \
+ libpng.pc
+
+}
+
do_stage() {
cp libpng.pc libpng12.pc
install -m 644 png.h ${STAGING_INCDIR}/png.h