libipfix: fix build
[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_LICENSE:=GPLv2
19 PKG_LICENSE_FILES:=COPYING
20
21 PKG_FIXUP:=autoreconf
22 PKG_INSTALL:=1
23
24 include $(INCLUDE_DIR)/package.mk
25
26 define Package/libid3tag
27   SECTION:=libs
28   CATEGORY:=Libraries
29   DEPENDS:=+zlib
30   TITLE:=An ID3 tag manipulation library
31   URL:=http://mad.sourceforge.net/
32 endef
33
34 define Package/libid3tag/description
35         libid3tag is a library for reading and (eventually) writing ID3 tags, both
36         ID3v1 and the various versions of ID3v2.
37 endef
38
39 TARGET_CFLAGS += $(FPIC)
40
41 CONFIGURE_VARS += CC="$(TARGET_CC) $(TARGET_CFLAGS)"
42
43 define Build/Configure
44         $(call Build/Configure/Default, \
45                 --enable-shared \
46                 --enable-static \
47                 --disable-debugging \
48                 --disable-profiling \
49         )
50 endef
51
52 define Build/InstallDev
53         $(INSTALL_DIR) $(1)/usr/include
54         $(CP) $(PKG_INSTALL_DIR)/usr/include/id3tag.h $(1)/usr/include/
55         $(INSTALL_DIR) $(1)/usr/lib
56         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libid3tag.so* $(1)/usr/lib/
57 endef
58
59 define Package/libid3tag/install
60         $(INSTALL_DIR) $(1)/usr/lib
61         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libid3tag.so.* $(1)/usr/lib/
62 endef
63
64 $(eval $(call BuildPackage,libid3tag))