Makefile cleanups, round 5
[packages.git] / libs / libid3tag / Makefile
1
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=libid3tag
12 PKG_VERSION:=0.15.1b
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/mad
17 PKG_MD5SUM:=e5808ad997ba32c498803822078748c3
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/libid3tag
22   SECTION:=libs
23   CATEGORY:=Libraries
24   DEPENDS:=+zlib
25   TITLE:=An ID3 tag manipulation library
26   URL:=http://mad.sourceforge.net/
27 endef
28
29 define Package/libid3tag/description
30         libid3tag is a library for reading and (eventually) writing ID3 tags, both 
31         ID3v1 and the various versions of ID3v2.
32 endef
33
34 define Build/Configure
35         $(call Build/Configure/Default, \
36                 --enable-shared \
37                 --enable-static \
38                 --disable-debugging \
39                 --disable-profiling \
40         )
41 endef
42
43 define Build/Compile
44         $(MAKE) -C $(PKG_BUILD_DIR) \
45                 DESTDIR="$(PKG_INSTALL_DIR)" \
46                 all install
47 endef
48
49 define Build/InstallDev
50         mkdir -p $(1)/usr/include
51         $(CP) $(PKG_INSTALL_DIR)/usr/include/id3tag.h $(1)/usr/include/
52         mkdir -p $(1)/usr/lib
53         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libid3tag.{a,so*} $(1)/usr/lib/
54 endef
55
56 define Package/libid3tag/install
57         $(INSTALL_DIR) $(1)/usr/lib
58         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libid3tag.so.* $(1)/usr/lib/
59 endef
60
61 $(eval $(call BuildPackage,libid3tag))