summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2009-07-29 09:32:41 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2009-07-29 09:32:41 +0100
commit9930c668c032cb4e0621b3134b46b256b52b8a01 (patch)
tree25b255d6ad11f9ed6fb638f57d2e530dde8aea5b /meta
parent9e9663ac061b87a4336697bef338bae42a926a42 (diff)
downloadpoky-9930c668c032cb4e0621b3134b46b256b52b8a01.tar.gz
libid3tag: Improve pkgconfig file handling and use autotools_stage class
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta')
-rw-r--r--meta/packages/libid3tag/files/id3tag.pc11
-rw-r--r--meta/packages/libid3tag/libid3tag/addpkgconfig.patch41
-rw-r--r--meta/packages/libid3tag/libid3tag_0.15.1b.bb16
3 files changed, 45 insertions, 23 deletions
diff --git a/meta/packages/libid3tag/files/id3tag.pc b/meta/packages/libid3tag/files/id3tag.pc
deleted file mode 100644
index e686000689..0000000000
--- a/meta/packages/libid3tag/files/id3tag.pc
+++ /dev/null
@@ -1,11 +0,0 @@
1prefix=/usr
2exec_prefix=${prefix}
3libdir=${exec_prefix}/lib
4includedir=${prefix}/include
5
6Name: id3tag
7Description: ID3 tag reading library
8Requires:
9Version: 0.15.0b
10Libs: -L${libdir} -lid3tag -lz
11Cflags: -I${includedir}
diff --git a/meta/packages/libid3tag/libid3tag/addpkgconfig.patch b/meta/packages/libid3tag/libid3tag/addpkgconfig.patch
new file mode 100644
index 0000000000..07a8f6ec4d
--- /dev/null
+++ b/meta/packages/libid3tag/libid3tag/addpkgconfig.patch
@@ -0,0 +1,41 @@
1Index: libid3tag-0.15.1b/Makefile.am
2===================================================================
3--- libid3tag-0.15.1b.orig/Makefile.am 2009-07-29 09:29:20.000000000 +0100
4+++ libid3tag-0.15.1b/Makefile.am 2009-07-29 09:29:47.000000000 +0100
5@@ -27,6 +27,9 @@
6 lib_LTLIBRARIES = libid3tag.la
7 include_HEADERS = id3tag.h
8
9+pkgconfigdir = $(libdir)/pkgconfig
10+pkgconfig_DATA = id3tag.pc
11+
12 ## From the libtool documentation on library versioning:
13 ##
14 ## CURRENT
15Index: libid3tag-0.15.1b/configure.ac
16===================================================================
17--- libid3tag-0.15.1b.orig/configure.ac 2009-07-29 09:27:15.000000000 +0100
18+++ libid3tag-0.15.1b/configure.ac 2009-07-29 09:27:45.000000000 +0100
19@@ -201,5 +201,5 @@
20 dnl AC_SUBST(LTLIBOBJS)
21
22 AC_CONFIG_FILES([Makefile msvc++/Makefile \
23- libid3tag.list])
24+ libid3tag.list id3tag.pc])
25 AC_OUTPUT
26Index: libid3tag-0.15.1b/id3tag.pc.in
27===================================================================
28--- /dev/null 1970-01-01 00:00:00.000000000 +0000
29+++ libid3tag-0.15.1b/id3tag.pc.in 2009-07-29 09:29:10.000000000 +0100
30@@ -0,0 +1,11 @@
31+prefix=@prefix@
32+exec_prefix=@exec_prefix@
33+libdir=@libdir@
34+includedir=@includedir@
35+
36+Name: id3tag
37+Description: ID3 tag reading library
38+Requires:
39+Version: @VERSION@
40+Libs: -L${libdir} -lid3tag -lz
41+Cflags: -I${includedir}
diff --git a/meta/packages/libid3tag/libid3tag_0.15.1b.bb b/meta/packages/libid3tag/libid3tag_0.15.1b.bb
index c9f4a0c0ba..3b5a87e03f 100644
--- a/meta/packages/libid3tag/libid3tag_0.15.1b.bb
+++ b/meta/packages/libid3tag/libid3tag_0.15.1b.bb
@@ -2,22 +2,14 @@ SECTION = "libs"
2PRIORITY = "optional" 2PRIORITY = "optional"
3DEPENDS = "zlib" 3DEPENDS = "zlib"
4DESCRIPTION = "Library for interacting with ID3 tags." 4DESCRIPTION = "Library for interacting with ID3 tags."
5LICENSE = "GPL" 5LICENSE = "GPLv2"
6PR = "r1" 6PR = "r3"
7 7
8SRC_URI = "ftp://ftp.mars.org/pub/mpeg/libid3tag-${PV}.tar.gz \ 8SRC_URI = "ftp://ftp.mars.org/pub/mpeg/libid3tag-${PV}.tar.gz \
9 file://id3tag.pc" 9 file://addpkgconfig.patch;patch=1"
10 10
11S = "${WORKDIR}/libid3tag-${PV}" 11S = "${WORKDIR}/libid3tag-${PV}"
12 12
13inherit autotools pkgconfig 13inherit autotools_stage pkgconfig
14 14
15EXTRA_OECONF = "-enable-speed" 15EXTRA_OECONF = "-enable-speed"
16
17do_configure_prepend() {
18 install -m 0644 ${WORKDIR}/id3tag.pc ${S}
19}
20do_stage() {
21 oe_libinstall -so libid3tag ${STAGING_LIBDIR}
22 install -m 0644 id3tag.h ${STAGING_INCDIR}
23}