Add taglib from #1308
authorFlorian Fainelli <florian@openwrt.org>
Tue, 15 May 2007 08:53:44 +0000 (08:53 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Tue, 15 May 2007 08:53:44 +0000 (08:53 +0000)
SVN-Revision: 7250

libs/taglib/Makefile [new file with mode: 0644]

diff --git a/libs/taglib/Makefile b/libs/taglib/Makefile
new file mode 100644 (file)
index 0000000..e9471dc
--- /dev/null
@@ -0,0 +1,69 @@
+# 
+# Copyright (C) 2007 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+# $Id :$ 
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=taglib
+PKG_VERSION:=1.4
+PKG_RELEASE:=1
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=http://developer.kde.org/~wheeler/files/src/
+PKG_MD5SUM:=dcd50ddb2544faeae77f194804559404
+PKG_CAT:=zcat
+
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
+PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/taglib
+  SECTION:=libs
+  CATEGORY:=Libraries
+  DEPENDS:=+zlib
+  TITLE:=Audio output library
+  DESCRIPTION:=\
+       the audio output library
+  URL:=http://developer.kde.org/~wheeler/taglib.html
+endef
+
+define Build/Configure
+       $(call Build/Configure/Default, \
+               --enable-final \
+       )
+endef
+
+define Build/Compile
+       $(call Build/Compile/Default,\
+               DESTDIR="$(PKG_INSTALL_DIR)" \
+               all install \
+       )
+endef
+
+define Build/InstallDev
+       mkdir -p $(STAGING_DIR)/usr/bin
+       $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(STAGING_DIR)/usr/bin/
+       mkdir -p $(STAGING_DIR)/usr/lib
+       $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtag* $(STAGING_DIR)/usr/lib/
+       mkdir -p $(STAGING_DIR)/usr/include/taglib
+       $(CP) $(PKG_INSTALL_DIR)/usr/include/taglib/* $(STAGING_DIR)/usr/include/taglib/
+endef
+
+define Build/UninstallDev
+       rm -rf \
+               $(STAGING_DIR)/usr/bin/taglib-config \
+               $(STAGING_DIR)/usr/lib/libtag* \
+               $(STAGING_DIR)/usr/include/taglib/
+endef
+
+define Package/taglib/install
+       $(INSTALL_DIR) $(1)/usr/lib
+       $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtag* $(1)/usr/lib/
+endef
+
+$(eval $(call BuildPackage,taglib))