packages/scpa5xx-view: use lowercase config option, use new service functions
[openwrt/svn-archive/archive.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-ucxx
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/id3lib
24 SECTION:=libs
25 CATEGORY:=Libraries
26 DEPENDS:=+zlib +uclibcxx
27 TITLE:=An ID3v1/ID3v2 tag manipulation library
28 URL:=http://www.id3lib.org/
29 endef
30
31 TARGET_CFLAGS += $(FPIC)
32
33 CONFIGURE_ARGS += \
34 --enable-shared \
35 --enable-static
36
37 #CONFIGURE_VARS += \
38 CXXFLAGS="$$$$CXXFLAGS -fno-builtin -fno-rtti" \
39 LIBS="-nodefaultlibs -lz -luClibc++ -Wl,-Bstatic,-lstdc++,-Bdynamic -lm" \
40
41 define Build/InstallDev
42 $(INSTALL_DIR) $(1)/usr/include
43 $(CP) $(PKG_INSTALL_DIR)/usr/include/id3 $(1)/usr/include/
44 $(CP) $(PKG_INSTALL_DIR)/usr/include/id3.h $(1)/usr/include/
45 $(INSTALL_DIR) $(1)/usr/lib
46 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libid3.{a,so} $(1)/usr/lib/
47 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libid3-*.so.* $(1)/usr/lib/
48 endef
49
50 define Package/id3lib/install
51 $(INSTALL_DIR) $(1)/usr/lib/
52 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libid3-*.so.* $(1)/usr/lib/
53 endef
54
55 $(eval $(call BuildPackage,id3lib))