744e05b675bebcc564ff0df9651e8feb59f4b83f
[packages.git] / libs / libid3tag / Makefile
1 #
2 # Copyright (C) 2006-2010 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:=3
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/mad
16 PKG_MD5SUM:=e5808ad997ba32c498803822078748c3
17
18 PKG_FIXUP:=libtool
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/libid3tag
24   SECTION:=libs
25   CATEGORY:=Libraries
26   DEPENDS:=+zlib
27   TITLE:=An ID3 tag manipulation library
28   URL:=http://mad.sourceforge.net/
29 endef
30
31 define Package/libid3tag/description
32         libid3tag is a library for reading and (eventually) writing ID3 tags, both 
33         ID3v1 and the various versions of ID3v2.
34 endef
35
36 TARGET_CFLAGS += $(FPIC)
37
38 define Build/Configure
39         $(call Build/Configure/Default, \
40                 --enable-shared \
41                 --enable-static \
42                 --disable-debugging \
43                 --disable-profiling \
44         )
45 endef
46
47 define Build/InstallDev
48         $(INSTALL_DIR) $(1)/usr/include
49         $(CP) $(PKG_INSTALL_DIR)/usr/include/id3tag.h $(1)/usr/include/
50         $(INSTALL_DIR) $(1)/usr/lib
51         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libid3tag.{a,so*} $(1)/usr/lib/
52 endef
53
54 define Package/libid3tag/install
55         $(INSTALL_DIR) $(1)/usr/lib
56         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libid3tag.so.* $(1)/usr/lib/
57 endef
58
59 $(eval $(call BuildPackage,libid3tag))