0585651c4339cf264ea87120951d6f539f0ea0dc
[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 # $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 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 TARGET_CFLAGS += $(FPIC)
32
33 CONFIGURE_ARGS += \
34 --enable-shared \
35 --enable-static \
36 --enable-final \
37
38 CONFIGURE_VARS += \
39 CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/include/uClibc++" \
40 CXXFLAGS="$$$$CXXFLAGS -fno-builtin -fno-rtti -nostdinc++" \
41 LDFLAGS="$$$$LDFLAGS" \
42 LIBS="-nodefaultlibs -lz -luClibc++" \
43
44 define Build/InstallDev
45 $(INSTALL_DIR) $(2)/bin
46 $(INSTALL_BIN) \
47 $(PKG_INSTALL_DIR)/usr/bin/taglib-config \
48 $(2)/bin/
49 $(SED) \
50 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
51 $(2)/bin/taglib-config
52
53 $(INSTALL_DIR) $(1)/usr/lib
54 $(INSTALL_DATA) \
55 $(PKG_INSTALL_DIR)/usr/lib/libtag.{la,so*} \
56 $(1)/usr/lib/
57 $(INSTALL_DIR) $(1)/usr/include/taglib
58 $(INSTALL_DATA) \
59 $(PKG_INSTALL_DIR)/usr/include/taglib/* \
60 $(1)/usr/include/taglib/
61 endef
62
63 define Package/taglib/install
64 $(INSTALL_DIR) $(1)/usr/lib
65 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtag.so.* $(1)/usr/lib/
66 endef
67
68 $(eval $(call BuildPackage,taglib))