summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <hrw@openedhand.com>2008-01-11 16:08:41 +0000
committerMarcin Juszkiewicz <hrw@openedhand.com>2008-01-11 16:08:41 +0000
commit529625cb0c843d2a2daa254c56e338aee7134e91 (patch)
treeb279509a2a05246058a3d8baba385b8c3799baeb
parent29983c5834e29d1cb9a89de617cfc3c6621446b3 (diff)
downloadpoky-529625cb0c843d2a2daa254c56e338aee7134e91.tar.gz
poky-529625cb0c843d2a2daa254c56e338aee7134e91.tar.bz2
poky-529625cb0c843d2a2daa254c56e338aee7134e91.zip
libid3tag: add pkg-config support (from Poky trunk r3467)
git-svn-id: https://svn.o-hand.com/repos/poky/branches/blinky@3468 311d38ba-8fff-0310-9ca6-ca027cbcb966
-rw-r--r--meta/packages/libid3tag/files/id3tag.pc11
-rw-r--r--meta/packages/libid3tag/libid3tag_0.15.0b.bb11
2 files changed, 19 insertions, 3 deletions
diff --git a/meta/packages/libid3tag/files/id3tag.pc b/meta/packages/libid3tag/files/id3tag.pc
new file mode 100644
index 0000000000..e686000689
--- /dev/null
+++ b/meta/packages/libid3tag/files/id3tag.pc
@@ -0,0 +1,11 @@
+prefix=/usr
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+
+Name: id3tag
+Description: ID3 tag reading library
+Requires:
+Version: 0.15.0b
+Libs: -L${libdir} -lid3tag -lz
+Cflags: -I${includedir}
diff --git a/meta/packages/libid3tag/libid3tag_0.15.0b.bb b/meta/packages/libid3tag/libid3tag_0.15.0b.bb
index 840c7f8ae7..8b078d63e7 100644
--- a/meta/packages/libid3tag/libid3tag_0.15.0b.bb
+++ b/meta/packages/libid3tag/libid3tag_0.15.0b.bb
@@ -3,15 +3,20 @@ PRIORITY = "optional"
DEPENDS = "zlib"
DESCRIPTION = "Library for interacting with ID3 tags."
LICENSE = "GPL"
-PR = "r2"
+PR = "r3"
+
+SRC_URI = "ftp://ftp.mars.org/pub/mpeg/libid3tag-${PV}.tar.gz \
+ file://id3tag.pc"
-SRC_URI = "ftp://ftp.mars.org/pub/mpeg/libid3tag-${PV}.tar.gz "
S = "${WORKDIR}/libid3tag-${PV}"
-inherit autotools
+inherit autotools pkgconfig
EXTRA_OECONF = "-enable-speed"
+do_configure_prepend() {
+ install -m 0644 ${WORKDIR}/id3tag.pc ${S}
+}
do_stage() {
oe_libinstall -so libid3tag ${STAGING_LIBDIR}
install -m 0644 id3tag.h ${STAGING_INCDIR}