noddos: Noddos v0.5.0 with mDNS / DNS-SD support
[feed/packages.git] / libs / libid3tag / Makefile
1 #
2 # Copyright (C) 2006-2014 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:=4
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/mad
16 PKG_MD5SUM:=e5808ad997ba32c498803822078748c3
17 PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
18
19 PKG_LICENSE:=GPL-2
20 PKG_LICENSE_FILES:=COPYING
21
22 PKG_FIXUP:=autoreconf
23 PKG_INSTALL:=1
24
25 include $(INCLUDE_DIR)/package.mk
26
27 define Package/libid3tag
28 SECTION:=libs
29 CATEGORY:=Libraries
30 DEPENDS:=+zlib
31 TITLE:=An ID3 tag manipulation library
32 URL:=http://mad.sourceforge.net/
33 endef
34
35 define Package/libid3tag/description
36 libid3tag is a library for reading and (eventually) writing ID3 tags, both
37 ID3v1 and the various versions of ID3v2.
38 endef
39
40 TARGET_CFLAGS += $(FPIC)
41
42 CONFIGURE_VARS += CC="$(TARGET_CC) $(TARGET_CFLAGS)"
43
44 define Build/Configure
45 $(call Build/Configure/Default, \
46 --enable-shared \
47 --enable-static \
48 --disable-debugging \
49 --disable-profiling \
50 )
51 endef
52
53 define Build/InstallDev
54 $(INSTALL_DIR) $(1)/usr/include
55 $(CP) $(PKG_INSTALL_DIR)/usr/include/id3tag.h $(1)/usr/include/
56 $(INSTALL_DIR) $(1)/usr/lib
57 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libid3tag.so* $(1)/usr/lib/
58 endef
59
60 define Package/libid3tag/install
61 $(INSTALL_DIR) $(1)/usr/lib
62 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libid3tag.so.* $(1)/usr/lib/
63 endef
64
65 $(eval $(call BuildPackage,libid3tag))