summaryrefslogtreecommitdiff
path: root/package/taglib
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2013-08-12 10:30:50 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2013-08-12 10:30:50 +0200
commit8f16335443a322578274737c8d80ce557e4d2656 (patch)
tree947d42d781b409f72c9f0fa957d8796352f9b386 /package/taglib
parent5212b6029108093bb3ac6d8386fd999fd00f2701 (diff)
add xmbc package for raspberry-pi target
Diffstat (limited to 'package/taglib')
-rw-r--r--package/taglib/Makefile34
-rw-r--r--package/taglib/files/taglib.pc11
-rw-r--r--package/taglib/patches/patch-taglib_pc_cmake19
-rw-r--r--package/taglib/patches/patch-taglib_pc_cmake.orig19
4 files changed, 83 insertions, 0 deletions
diff --git a/package/taglib/Makefile b/package/taglib/Makefile
new file mode 100644
index 000000000..9494d94d2
--- /dev/null
+++ b/package/taglib/Makefile
@@ -0,0 +1,34 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:= taglib
+PKG_VERSION:= 1.8
+PKG_RELEASE:= 1
+PKG_MD5SUM:= dcb8bd1b756f2843e18b1fdf3aaeee15
+PKG_DESCR:= Audio Meta-Data library
+PKG_SECTION:= libs
+PKG_DEPENDS:= zlib
+PKG_BUILDDEP:= zlib
+PKG_URL:= http://taglib.github.com/
+PKG_SITES:= http://taglib.github.io/releases/
+
+include $(TOPDIR)/mk/package.mk
+
+$(eval $(call PKG_template,TAGLIB,taglib,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+
+CONFIG_STYLE:= manual
+
+do-configure:
+ (cd ${WRKBUILD} && cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr .)
+
+pre-install:
+ $(INSTALL_DATA) ./files/taglib.pc $(WRKBUILD)/
+
+taglib-install:
+ $(INSTALL_DIR) $(IDIR_TAGLIB)/usr/lib
+ $(CP) $(WRKINST)/usr/lib/libtag*.so* \
+ $(IDIR_TAGLIB)/usr/lib
+
+include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/taglib/files/taglib.pc b/package/taglib/files/taglib.pc
new file mode 100644
index 000000000..788eed37d
--- /dev/null
+++ b/package/taglib/files/taglib.pc
@@ -0,0 +1,11 @@
+prefix=/usr
+exec_prefix=${prefix}
+libdir=${prefix}/lib
+includedir=${prefix}/include
+
+Name: TagLib
+Description: Audio meta-data library
+Requires:
+Version: 1.8.0
+Libs: -L${libdir} -ltag
+Cflags: -I${includedir}/taglib
diff --git a/package/taglib/patches/patch-taglib_pc_cmake b/package/taglib/patches/patch-taglib_pc_cmake
new file mode 100644
index 000000000..fa0b43e58
--- /dev/null
+++ b/package/taglib/patches/patch-taglib_pc_cmake
@@ -0,0 +1,19 @@
+--- taglib-1.8.orig/taglib.pc.cmake 2012-09-06 20:03:15.000000000 +0200
++++ taglib-1.8/taglib.pc.cmake 2013-07-31 11:57:48.000000000 +0200
+@@ -1,11 +1,11 @@
+ prefix=${CMAKE_INSTALL_PREFIX}
+-exec_prefix=${CMAKE_INSTALL_PREFIX}
+-libdir=${LIB_INSTALL_DIR}
+-includedir=${INCLUDE_INSTALL_DIR}
++exec_prefix=\${prefix}
++libdir=\${prefix}/lib
++includedir=\${prefix}/include
+
+ Name: TagLib
+ Description: Audio meta-data library
+ Requires:
+ Version: ${TAGLIB_LIB_MAJOR_VERSION}.${TAGLIB_LIB_MINOR_VERSION}.${TAGLIB_LIB_PATCH_VERSION}
+-Libs: -L${LIB_INSTALL_DIR} -ltag
+-Cflags: -I${INCLUDE_INSTALL_DIR}/taglib
++Libs: -L\${libdir} -ltag
++Cflags: -I\${includedir}/taglib
diff --git a/package/taglib/patches/patch-taglib_pc_cmake.orig b/package/taglib/patches/patch-taglib_pc_cmake.orig
new file mode 100644
index 000000000..b626622b1
--- /dev/null
+++ b/package/taglib/patches/patch-taglib_pc_cmake.orig
@@ -0,0 +1,19 @@
+--- taglib-1.8.orig/taglib.pc.cmake 2012-09-06 20:03:15.000000000 +0200
++++ taglib-1.8/taglib.pc.cmake 2013-07-31 11:54:55.000000000 +0200
+@@ -1,11 +1,11 @@
+ prefix=${CMAKE_INSTALL_PREFIX}
+-exec_prefix=${CMAKE_INSTALL_PREFIX}
+-libdir=${LIB_INSTALL_DIR}
+-includedir=${INCLUDE_INSTALL_DIR}
++exec_prefix=${prefix}
++libdir=${prefix}/lib
++includedir=${prefix}/include
+
+ Name: TagLib
+ Description: Audio meta-data library
+ Requires:
+ Version: ${TAGLIB_LIB_MAJOR_VERSION}.${TAGLIB_LIB_MINOR_VERSION}.${TAGLIB_LIB_PATCH_VERSION}
+-Libs: -L${LIB_INSTALL_DIR} -ltag
+-Cflags: -I${INCLUDE_INSTALL_DIR}/taglib
++Libs: -L${libdir} -ltag
++Cflags: -I${includedir}/taglib