Update makefiles to use the autotools stuff put in the template, remove bogus stamp...
[openwrt/svn-archive/archive.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 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/libid3tag
26 SECTION:=libs
27 CATEGORY:=Libraries
28 DEPENDS:=+zlib
29 TITLE:=An ID3 tag manipulation library
30 DESCRIPTION:=\
31 libid3tag is a library for reading and (eventually) writing ID3 tags, both \\\
32 ID3v1 and the various versions of ID3v2.
33 URL:=http://mad.sourceforge.net/
34 endef
35
36 define Build/Configure
37 $(call Build/Configure/Default, \
38 --enable-shared \
39 --enable-static \
40 --disable-debugging \
41 --disable-profiling \
42 )
43 endef
44
45 define Build/Compile
46 $(MAKE) -C $(PKG_BUILD_DIR) \
47 DESTDIR="$(PKG_INSTALL_DIR)" \
48 all install
49 endef
50
51 define Build/InstallDev
52 mkdir -p $(STAGING_DIR)/usr/include
53 $(CP) $(PKG_INSTALL_DIR)/usr/include/id3tag.h $(STAGING_DIR)/usr/include/
54 mkdir -p $(STAGING_DIR)/usr/lib
55 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libid3tag.{a,so*} $(STAGING_DIR)/usr/lib/
56 endef
57
58 define Build/UninstallDev
59 rm -rf \
60 $(STAGING_DIR)/usr/include/id3tag.h \
61 $(STAGING_DIR)/usr/lib/libid3tag.{a,so*}
62 endef
63
64 define Package/libid3tag/install
65 install -d -m0755 $(1)/usr/lib
66 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libid3tag.so.* $(1)/usr/lib/
67 endef
68
69 $(eval $(call BuildPackage,libid3tag))