15946c80023ee558dd0d54014e7f2850a43dcb2b
[openwrt/svn-archive/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:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/mad
16 PKG_MD5SUM:=e5808ad997ba32c498803822078748c3
17
18 PKG_INSTALL:=1
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/libid3tag
23 SECTION:=libs
24 CATEGORY:=Libraries
25 DEPENDS:=+zlib
26 TITLE:=An ID3 tag manipulation library
27 URL:=http://mad.sourceforge.net/
28 endef
29
30 define Package/libid3tag/description
31 libid3tag is a library for reading and (eventually) writing ID3 tags, both
32 ID3v1 and the various versions of ID3v2.
33 endef
34
35 TARGET_CFLAGS += $(FPIC)
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/InstallDev
47 $(INSTALL_DIR) $(1)/usr/include
48 $(CP) $(PKG_INSTALL_DIR)/usr/include/id3tag.h $(1)/usr/include/
49 $(INSTALL_DIR) $(1)/usr/lib
50 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libid3tag.{a,so*} $(1)/usr/lib/
51 endef
52
53 define Package/libid3tag/install
54 $(INSTALL_DIR) $(1)/usr/lib
55 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libid3tag.so.* $(1)/usr/lib/
56 endef
57
58 $(eval $(call BuildPackage,libid3tag))