[packages] net-snmp: Enable ipv6 support if defined globally
[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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=libid3tag
11 PKG_VERSION:=0.15.1b
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/mad
16 PKG_MD5SUM:=e5808ad997ba32c498803822078748c3
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/libid3tag
21 SECTION:=libs
22 CATEGORY:=Libraries
23 DEPENDS:=+zlib
24 TITLE:=An ID3 tag manipulation library
25 URL:=http://mad.sourceforge.net/
26 endef
27
28 define Package/libid3tag/description
29 libid3tag is a library for reading and (eventually) writing ID3 tags, both
30 ID3v1 and the various versions of ID3v2.
31 endef
32
33 TARGET_CFLAGS += $(FPIC)
34
35 define Build/Configure
36 $(call Build/Configure/Default, \
37 --enable-shared \
38 --enable-static \
39 --disable-debugging \
40 --disable-profiling \
41 )
42 endef
43
44 define Build/Compile
45 $(MAKE) -C $(PKG_BUILD_DIR) \
46 DESTDIR="$(PKG_INSTALL_DIR)" \
47 all install
48 endef
49
50 define Build/InstallDev
51 mkdir -p $(1)/usr/include
52 $(CP) $(PKG_INSTALL_DIR)/usr/include/id3tag.h $(1)/usr/include/
53 mkdir -p $(1)/usr/lib
54 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libid3tag.{a,so*} $(1)/usr/lib/
55 endef
56
57 define Package/libid3tag/install
58 $(INSTALL_DIR) $(1)/usr/lib
59 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libid3tag.so.* $(1)/usr/lib/
60 endef
61
62 $(eval $(call BuildPackage,libid3tag))