remove PKG_CAT from packages
[openwrt/svn-archive/archive.git] / libs / libid3tag / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=libid3tag
12 PKG_VERSION:=0.15.1b
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/mad
17 PKG_MD5SUM:=e5808ad997ba32c498803822078748c3
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/libid3tag
25 SECTION:=libs
26 CATEGORY:=Libraries
27 DEPENDS:=+zlib
28 TITLE:=An ID3 tag manipulation library
29 URL:=http://mad.sourceforge.net/
30 endef
31
32 define Package/libid3tag/description
33 libid3tag is a library for reading and (eventually) writing ID3 tags, both
34 ID3v1 and the various versions of ID3v2.
35 endef
36
37 define Build/Configure
38 $(call Build/Configure/Default, \
39 --enable-shared \
40 --enable-static \
41 --disable-debugging \
42 --disable-profiling \
43 )
44 endef
45
46 define Build/Compile
47 $(MAKE) -C $(PKG_BUILD_DIR) \
48 DESTDIR="$(PKG_INSTALL_DIR)" \
49 all install
50 endef
51
52 define Build/InstallDev
53 mkdir -p $(1)/usr/include
54 $(CP) $(PKG_INSTALL_DIR)/usr/include/id3tag.h $(1)/usr/include/
55 mkdir -p $(1)/usr/lib
56 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libid3tag.{a,so*} $(1)/usr/lib/
57 endef
58
59 define Build/UninstallDev
60 rm -rf \
61 $(STAGING_DIR)/usr/include/id3tag.h \
62 $(STAGING_DIR)/usr/lib/libid3tag.{a,so*}
63 endef
64
65 define Package/libid3tag/install
66 $(INSTALL_DIR) $(1)/usr/lib
67 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libid3tag.so.* $(1)/usr/lib/
68 endef
69
70 $(eval $(call BuildPackage,libid3tag))