nuke $Id$ in /packages as well
[packages.git] / libs / id3lib / 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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=id3lib
11 PKG_VERSION:=3.8.3
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/id3lib
16 PKG_MD5SUM:=19f27ddd2dda4b2d26a559a4f0f402a7
17
18 PKG_FIXUP = libtool
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/id3lib
23   SECTION:=libs
24   CATEGORY:=Libraries
25   DEPENDS:=+zlib +uclibcxx
26   TITLE:=An ID3v1/ID3v2 tag manipulation library
27   URL:=http://www.id3lib.org/
28 endef
29
30 TARGET_CFLAGS += $(FPIC)
31
32 CONFIGURE_ARGS += \
33         --enable-shared \
34         --enable-static \
35
36 CONFIGURE_VARS += \
37         CXXFLAGS="$$$$CXXFLAGS -fno-builtin -fno-rtti"  \
38         LIBS="-nodefaultlibs -lz -luClibc++ -Wl,-Bstatic,-lstdc++,-Bdynamic -lm" \
39
40 define Build/Compile
41         $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" all install
42 endef
43
44 define Build/InstallDev
45         mkdir -p $(1)/usr/include
46         $(CP) $(PKG_INSTALL_DIR)/usr/include/id3 $(1)/usr/include/
47         $(CP) $(PKG_INSTALL_DIR)/usr/include/id3.h $(1)/usr/include/
48         mkdir -p $(1)/usr/lib
49         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libid3.{a,so} $(1)/usr/lib/
50         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libid3-*.so.* $(1)/usr/lib/
51 endef
52
53 define Package/id3lib/install
54         $(INSTALL_DIR) $(1)/usr/lib/
55         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libid3-*.so.* $(1)/usr/lib/
56 endef
57
58 $(eval $(call BuildPackage,id3lib))