taglib 1.4 fix packaging, fix buildsystem (thanks to debian patch), remove taglibc
authorMichael Lauer <mickey@vanille-media.de>
Sat, 9 Feb 2008 11:56:21 +0000 (11:56 +0000)
committerMichael Lauer <mickey@vanille-media.de>
Sat, 9 Feb 2008 11:56:21 +0000 (11:56 +0000)
packages/taglib/files/.mtn2git_empty [new file with mode: 0644]
packages/taglib/files/taglib_1.4-8.diff.gz [new file with mode: 0644]
packages/taglib/taglib_1.4.bb
packages/taglib/taglibc_1.4.bb [deleted file]

diff --git a/packages/taglib/files/.mtn2git_empty b/packages/taglib/files/.mtn2git_empty
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/packages/taglib/files/taglib_1.4-8.diff.gz b/packages/taglib/files/taglib_1.4-8.diff.gz
new file mode 100644 (file)
index 0000000..f128f4d
Binary files /dev/null and b/packages/taglib/files/taglib_1.4-8.diff.gz differ
index 43fb2a2..e50eeb6 100644 (file)
@@ -1,41 +1,24 @@
 DESCRIPTION = "TagLib is a library for reading and editing the meta-data of several popular audio formats"
-SECTION = "libs"
+SECTION = "libs/multimedia"
 HOMEPAGE = "http://developer.kde.org/~wheeler/taglib.html"
 LICENSE = "LGPL"
-PR = "r1"
+PR = "r2"
 
-SRC_URI = "http://developer.kde.org/~wheeler/files/src/taglib-${PV}.tar.gz"
+SRC_URI = "http://developer.kde.org/~wheeler/files/src/taglib-${PV}.tar.gz \
+           file://taglib_1.4-8.diff.gz;patch=1"
 S = "${WORKDIR}/taglib-${PV}"
 
-inherit autotools qmake_base pkgconfig binconfig
+inherit autotools pkgconfig binconfig
 
-export OE_QMAKE_LINK="${CXX}"
-
-do_configure() {
-       # calling oe_runconf to generate pkgconfig and binconfig files
-       oe_runconf
-       cd ${S}/taglib && rm -f Makefile* && qmake -project -o tag.pro -t lib && \
-       qmake -spec ${QMAKESPEC} -after CONFIG=console INCLUDEPATH+=${S}
-}
-
-do_compile() {
-       oe_runmake -C taglib
+do_postpatch() {
+       rm -rf patches && rm -rf .pc && mv -f debian/patches patches && quilt push -av
 }
+addtask postpatch after do_patch before do_configure
 
-do_stage_append() {
-       install -d ${STAGING_INCDIR}/taglib
-       for i in `find taglib -name "*.h"`
-       do
-               install $i ${STAGING_INCDIR}/taglib/
-       done
-       for i in `find taglib -name "*.tcc"`
-       do
-               install $i ${STAGING_INCDIR}/taglib/
-       done
-       oe_libinstall -so -C taglib libtag ${STAGING_LIBDIR}
+do_stage() {
+       autotools_stage_all
 }
 
-do_install() {
-       install -d ${D}${libdir}
-       oe_libinstall -so -C taglib libtag ${D}${libdir}
-}
+PACKAGES =+ "${PN}-c"
+FILES_${PN}-dbg += "${bindir}/taglib-config"
+FILES_${PN}-c = "${libdir}/libtag_c.so.*"
diff --git a/packages/taglib/taglibc_1.4.bb b/packages/taglib/taglibc_1.4.bb
deleted file mode 100644 (file)
index 1a3a702..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-DESCRIPTION = "TagLib is a library for reading and editing the meta-data \
-of several popular audio formats. Currently it supports both ID3v1 and ID3v2 \
-for MP3 files, Ogg Vorbis comments and ID3 tags and Vorbis comments in FLAC files"
-SECTION = "libs"
-HOMEPAGE = "http://developer.kde.org/~wheeler/taglib.html"
-DEPENDS = "taglib"
-LICENSE = "LGPL"
-
-SRC_URI = "http://developer.kde.org/~wheeler/files/src/taglib-${PV}.tar.gz"
-S = "${WORKDIR}/taglib-${PV}"
-
-inherit autotools qmake_base pkgconfig binconfig
-
-do_configure() {
-       echo running oe_runconf to get pkgconfig and binconfig files created
-       oe_runconf
-       cd ${S}/bindings/c && rm -f Makefile* && qmake -project -o tag_c.pro -t lib && \
-       qmake -spec ${QMAKESPEC} -after CONFIG=console INCLUDEPATH+=${STAGING_INCDIR}/taglib LIBS+=-ltag
-}
-
-do_compile() {
-       oe_runmake -C bindings/c
-}
-
-do_stage_append() {
-       install -d ${STAGING_INCDIR}/taglib
-       install -m 0644 bindings/c/tag_c.h ${STAGING_INCDIR}
-       oe_libinstall -so -C bindings/c libtag_c ${STAGING_LIBDIR}
-}
-
-do_install() {
-       oe_libinstall -so -C bindings/c libtag_c ${D}${libdir}
-}