[packages] taglib: bump to v1.6.3, switch to cmake, add uclibc++ compat, throw away...
[openwrt/svn-archive/archive.git] / libs / taglib / Makefile
1 #
2 # Copyright (C) 2007-2011 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:=taglib
11 PKG_VERSION:=1.6.3
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://developer.kde.org/~wheeler/files/src/
16 PKG_MD5SUM:=ddf02f4e1d2dc30f76734df806e613eb
17
18 include $(INCLUDE_DIR)/package.mk
19 include $(INCLUDE_DIR)/cmake.mk
20
21 PKG_INSTALL:=1
22
23 define Package/taglib
24 SECTION:=libs
25 CATEGORY:=Libraries
26 DEPENDS:= +uclibcxx +zlib @!TARGET_avr32
27 TITLE:=Audio output library
28 URL:=http://developer.kde.org/~wheeler/taglib.html
29 endef
30
31 define Package/taglibc
32 SECTION:=libs
33 CATEGORY:=Libraries
34 DEPENDS:=+taglib
35 TITLE:=Audio output library
36 URL:=http://developer.kde.org/~wheeler/taglib.html
37 endef
38
39 TARGET_CFLAGS += $(FPIC)
40 CMAKE_OPTIONS += -DCMAKE_CXX_COMPILER="g++-uc"
41
42 define Build/InstallDev
43 $(INSTALL_DIR) $(2)/bin
44 $(INSTALL_BIN) \
45 $(PKG_INSTALL_DIR)/usr/bin/taglib-config \
46 $(2)/bin/
47 $(SED) \
48 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
49 $(2)/bin/taglib-config
50
51 $(INSTALL_DIR) $(1)/usr/lib
52 $(CP) \
53 $(PKG_INSTALL_DIR)/usr/lib/libtag{,_c}.so* \
54 $(1)/usr/lib/
55 $(INSTALL_DIR) $(1)/usr/include/taglib
56 $(INSTALL_DATA) \
57 $(PKG_INSTALL_DIR)/usr/include/taglib/* \
58 $(1)/usr/include/taglib/
59 endef
60
61 define Package/taglib/install
62 $(INSTALL_DIR) $(1)/usr/lib
63 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtag.so.* $(1)/usr/lib/
64 endef
65
66 define Package/taglibc/install
67 $(INSTALL_DIR) $(1)/usr/lib
68 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtag_c.so.* $(1)/usr/lib/
69 endef
70
71 $(eval $(call BuildPackage,taglib))
72 $(eval $(call BuildPackage,taglibc))