[package] taglib: Add package for taglibc, the c bindings for taglib. Use new
[openwrt/svn-archive/archive.git] / libs / taglib / Makefile
1 #
2 # Copyright (C) 2007-2008 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.4
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://developer.kde.org/~wheeler/files/src/
16 PKG_MD5SUM:=dcd50ddb2544faeae77f194804559404
17 PKG_FIXUP:=libtool-ucxx
18
19 include $(INCLUDE_DIR)/package.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
41 CONFIGURE_ARGS += \
42 --enable-shared \
43 --enable-static \
44 --enable-final \
45
46 CONFIGURE_VARS += \
47 CXX="g++-uc"
48
49 MAKE_FLAGS += \
50 CXX="g++-uc"
51
52 define Build/InstallDev
53 $(INSTALL_DIR) $(2)/bin
54 $(INSTALL_BIN) \
55 $(PKG_INSTALL_DIR)/usr/bin/taglib-config \
56 $(2)/bin/
57 $(SED) \
58 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
59 $(2)/bin/taglib-config
60
61 $(INSTALL_DIR) $(1)/usr/lib
62 $(CP) \
63 $(PKG_INSTALL_DIR)/usr/lib/libtag{,_c}.{la,a,so*} \
64 $(1)/usr/lib/
65 $(INSTALL_DIR) $(1)/usr/include/taglib
66 $(INSTALL_DATA) \
67 $(PKG_INSTALL_DIR)/usr/include/taglib/* \
68 $(1)/usr/include/taglib/
69 endef
70
71 define Package/taglib/install
72 $(INSTALL_DIR) $(1)/usr/lib
73 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtag.so.* $(1)/usr/lib/
74 endef
75
76 define Package/taglibc/install
77 $(INSTALL_DIR) $(1)/usr/lib
78 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtag_c.so.* $(1)/usr/lib/
79 endef
80
81 $(eval $(call BuildPackage,taglib))
82 $(eval $(call BuildPackage,taglibc))