diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2009-07-29 09:32:41 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2009-07-29 09:32:41 +0100 |
commit | 9930c668c032cb4e0621b3134b46b256b52b8a01 (patch) | |
tree | 25b255d6ad11f9ed6fb638f57d2e530dde8aea5b /meta | |
parent | 9e9663ac061b87a4336697bef338bae42a926a42 (diff) | |
download | poky-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.pc | 11 | ||||
-rw-r--r-- | meta/packages/libid3tag/libid3tag/addpkgconfig.patch | 41 | ||||
-rw-r--r-- | meta/packages/libid3tag/libid3tag_0.15.1b.bb | 16 |
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 @@ | |||
1 | prefix=/usr | ||
2 | exec_prefix=${prefix} | ||
3 | libdir=${exec_prefix}/lib | ||
4 | includedir=${prefix}/include | ||
5 | |||
6 | Name: id3tag | ||
7 | Description: ID3 tag reading library | ||
8 | Requires: | ||
9 | Version: 0.15.0b | ||
10 | Libs: -L${libdir} -lid3tag -lz | ||
11 | Cflags: -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 @@ | |||
1 | Index: 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 | ||
15 | Index: 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 | ||
26 | Index: 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" | |||
2 | PRIORITY = "optional" | 2 | PRIORITY = "optional" |
3 | DEPENDS = "zlib" | 3 | DEPENDS = "zlib" |
4 | DESCRIPTION = "Library for interacting with ID3 tags." | 4 | DESCRIPTION = "Library for interacting with ID3 tags." |
5 | LICENSE = "GPL" | 5 | LICENSE = "GPLv2" |
6 | PR = "r1" | 6 | PR = "r3" |
7 | 7 | ||
8 | SRC_URI = "ftp://ftp.mars.org/pub/mpeg/libid3tag-${PV}.tar.gz \ | 8 | SRC_URI = "ftp://ftp.mars.org/pub/mpeg/libid3tag-${PV}.tar.gz \ |
9 | file://id3tag.pc" | 9 | file://addpkgconfig.patch;patch=1" |
10 | 10 | ||
11 | S = "${WORKDIR}/libid3tag-${PV}" | 11 | S = "${WORKDIR}/libid3tag-${PV}" |
12 | 12 | ||
13 | inherit autotools pkgconfig | 13 | inherit autotools_stage pkgconfig |
14 | 14 | ||
15 | EXTRA_OECONF = "-enable-speed" | 15 | EXTRA_OECONF = "-enable-speed" |
16 | |||
17 | do_configure_prepend() { | ||
18 | install -m 0644 ${WORKDIR}/id3tag.pc ${S} | ||
19 | } | ||
20 | do_stage() { | ||
21 | oe_libinstall -so libid3tag ${STAGING_LIBDIR} | ||
22 | install -m 0644 id3tag.h ${STAGING_INCDIR} | ||
23 | } | ||