From 348b36e31097151e5ee2ba7c437a7af454a17ce0 Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Tue, 15 May 2007 08:53:44 +0000 Subject: [PATCH] Add taglib from #1308 SVN-Revision: 7250 --- libs/taglib/Makefile | 69 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 libs/taglib/Makefile diff --git a/libs/taglib/Makefile b/libs/taglib/Makefile new file mode 100644 index 0000000000..e9471dcd1d --- /dev/null +++ b/libs/taglib/Makefile @@ -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)) -- 2.30.2