mirror of
https://git.yoctoproject.org/poky
synced 2026-05-09 17:39:31 +00:00
libid3tag: Improve pkgconfig file handling and use autotools_stage class
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
@@ -1,11 +0,0 @@
|
|||||||
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}
|
|
||||||
@@ -0,0 +1,41 @@
|
|||||||
|
Index: libid3tag-0.15.1b/Makefile.am
|
||||||
|
===================================================================
|
||||||
|
--- libid3tag-0.15.1b.orig/Makefile.am 2009-07-29 09:29:20.000000000 +0100
|
||||||
|
+++ libid3tag-0.15.1b/Makefile.am 2009-07-29 09:29:47.000000000 +0100
|
||||||
|
@@ -27,6 +27,9 @@
|
||||||
|
lib_LTLIBRARIES = libid3tag.la
|
||||||
|
include_HEADERS = id3tag.h
|
||||||
|
|
||||||
|
+pkgconfigdir = $(libdir)/pkgconfig
|
||||||
|
+pkgconfig_DATA = id3tag.pc
|
||||||
|
+
|
||||||
|
## From the libtool documentation on library versioning:
|
||||||
|
##
|
||||||
|
## CURRENT
|
||||||
|
Index: libid3tag-0.15.1b/configure.ac
|
||||||
|
===================================================================
|
||||||
|
--- libid3tag-0.15.1b.orig/configure.ac 2009-07-29 09:27:15.000000000 +0100
|
||||||
|
+++ libid3tag-0.15.1b/configure.ac 2009-07-29 09:27:45.000000000 +0100
|
||||||
|
@@ -201,5 +201,5 @@
|
||||||
|
dnl AC_SUBST(LTLIBOBJS)
|
||||||
|
|
||||||
|
AC_CONFIG_FILES([Makefile msvc++/Makefile \
|
||||||
|
- libid3tag.list])
|
||||||
|
+ libid3tag.list id3tag.pc])
|
||||||
|
AC_OUTPUT
|
||||||
|
Index: libid3tag-0.15.1b/id3tag.pc.in
|
||||||
|
===================================================================
|
||||||
|
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
|
||||||
|
+++ libid3tag-0.15.1b/id3tag.pc.in 2009-07-29 09:29:10.000000000 +0100
|
||||||
|
@@ -0,0 +1,11 @@
|
||||||
|
+prefix=@prefix@
|
||||||
|
+exec_prefix=@exec_prefix@
|
||||||
|
+libdir=@libdir@
|
||||||
|
+includedir=@includedir@
|
||||||
|
+
|
||||||
|
+Name: id3tag
|
||||||
|
+Description: ID3 tag reading library
|
||||||
|
+Requires:
|
||||||
|
+Version: @VERSION@
|
||||||
|
+Libs: -L${libdir} -lid3tag -lz
|
||||||
|
+Cflags: -I${includedir}
|
||||||
@@ -2,22 +2,14 @@ SECTION = "libs"
|
|||||||
PRIORITY = "optional"
|
PRIORITY = "optional"
|
||||||
DEPENDS = "zlib"
|
DEPENDS = "zlib"
|
||||||
DESCRIPTION = "Library for interacting with ID3 tags."
|
DESCRIPTION = "Library for interacting with ID3 tags."
|
||||||
LICENSE = "GPL"
|
LICENSE = "GPLv2"
|
||||||
PR = "r1"
|
PR = "r3"
|
||||||
|
|
||||||
SRC_URI = "ftp://ftp.mars.org/pub/mpeg/libid3tag-${PV}.tar.gz \
|
SRC_URI = "ftp://ftp.mars.org/pub/mpeg/libid3tag-${PV}.tar.gz \
|
||||||
file://id3tag.pc"
|
file://addpkgconfig.patch;patch=1"
|
||||||
|
|
||||||
S = "${WORKDIR}/libid3tag-${PV}"
|
S = "${WORKDIR}/libid3tag-${PV}"
|
||||||
|
|
||||||
inherit autotools pkgconfig
|
inherit autotools_stage pkgconfig
|
||||||
|
|
||||||
EXTRA_OECONF = "-enable-speed"
|
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}
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user