5bac257528766f1397466d76395140928bb4b48b
[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_HASH:=63da4f6e7997278f8a3fef4c6a372d342f705051d1eeb6a46a86b03610e26151
17 PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
18
19 PKG_LICENSE:=GPL-2
20 PKG_LICENSE_FILES:=COPYING
21 PKG_CPE_ID:=cpe:/a:media-libs:libid3tag
22
23 PKG_FIXUP:=autoreconf
24 PKG_INSTALL:=1
25
26 include $(INCLUDE_DIR)/package.mk
27
28 define Package/libid3tag
29 SECTION:=libs
30 CATEGORY:=Libraries
31 DEPENDS:=+zlib
32 TITLE:=An ID3 tag manipulation library
33 URL:=http://mad.sourceforge.net/
34 endef
35
36 define Package/libid3tag/description
37 libid3tag is a library for reading and (eventually) writing ID3 tags, both
38 ID3v1 and the various versions of ID3v2.
39 endef
40
41 TARGET_CFLAGS += $(FPIC)
42
43 CONFIGURE_VARS += CC="$(TARGET_CC) $(TARGET_CFLAGS)"
44
45 define Build/Prepare
46 $(call Build/Prepare/Default)
47 $(SED) 's,@VERSION@,$(PKG_VERSION),g' $(PKG_BUILD_DIR)/id3tag.pc
48 endef
49
50 define Build/Configure
51 $(call Build/Configure/Default, \
52 --enable-shared \
53 --enable-static \
54 --disable-debugging \
55 --disable-profiling \
56 )
57 endef
58
59 define Build/InstallDev
60 $(INSTALL_DIR) $(1)/usr/include
61 $(CP) $(PKG_INSTALL_DIR)/usr/include/id3tag.h $(1)/usr/include/
62 $(INSTALL_DIR) $(1)/usr/lib
63 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libid3tag.so* $(1)/usr/lib/
64 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
65 $(CP) $(PKG_BUILD_DIR)/id3tag.pc $(1)/usr/lib/pkgconfig/
66 endef
67
68 define Package/libid3tag/install
69 $(INSTALL_DIR) $(1)/usr/lib
70 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libid3tag.so.* $(1)/usr/lib/
71 endef
72
73 $(eval $(call BuildPackage,libid3tag))