remove UninstallDev
[openwrt/svn-archive/archive.git] / libs / taglib / Makefile
1 #
2 # Copyright (C) 2007 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:=taglib
12 PKG_VERSION:=1.4
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://developer.kde.org/~wheeler/files/src/
17 PKG_MD5SUM:=dcd50ddb2544faeae77f194804559404
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/taglib
22 SECTION:=libs
23 CATEGORY:=Libraries
24 DEPENDS:= +uclibcxx +zlib
25 TITLE:=Audio output library
26 URL:=http://developer.kde.org/~wheeler/taglib.html
27 endef
28
29 CONFIGURE_ARGS += \
30 --enable-shared \
31 --enable-static \
32 --enable-final \
33
34 CONFIGURE_VARS += \
35 CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/include/uClibc++" \
36 CXXFLAGS="$$$$CXXFLAGS -fno-builtin -fno-rtti -nostdinc++" \
37 LDFLAGS="$$$$LDFLAGS" \
38 LIBS="-nodefaultlibs -lz -luClibc++" \
39
40 define Build/Compile
41 $(MAKE) -C $(PKG_BUILD_DIR) \
42 DESTDIR="$(PKG_INSTALL_DIR)" \
43 all install
44 endef
45
46 define Build/InstallDev
47 mkdir -p $(1)/usr/bin
48 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/taglib-config $(1)/usr/bin/
49 mkdir -p $(1)/usr/lib
50 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtag.{a,so*} $(1)/usr/lib/
51 mkdir -p $(1)/usr/include/taglib
52 $(CP) $(PKG_INSTALL_DIR)/usr/include/taglib/* $(1)/usr/include/taglib/
53 endef
54
55 define Package/taglib/install
56 $(INSTALL_DIR) $(1)/usr/lib
57 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtag.so.* $(1)/usr/lib/
58 endef
59
60 $(eval $(call BuildPackage,taglib))