source: packages/libs/taglib/Makefile @ 12923

Last change on this file since 12923 was 12923, checked in by lars, 8 years ago

Add libtool fixup to taglib.

  • Property svn:keywords set to Author Date Id Revision
File size: 1.6 KB
Line 
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
9include $(TOPDIR)/rules.mk
10
11PKG_NAME:=taglib
12PKG_VERSION:=1.4
13PKG_RELEASE:=1
14
15PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16PKG_SOURCE_URL:=http://developer.kde.org/~wheeler/files/src/
17PKG_MD5SUM:=dcd50ddb2544faeae77f194804559404
18PKG_FIXUP:=libtool
19
20include $(INCLUDE_DIR)/package.mk
21
22PKG_INSTALL=1
23
24define Package/taglib
25  SECTION:=libs
26  CATEGORY:=Libraries
27  DEPENDS:= +uclibcxx +zlib @!TARGET_avr32
28  TITLE:=Audio output library
29  URL:=http://developer.kde.org/~wheeler/taglib.html
30endef
31
32TARGET_CFLAGS += $(FPIC)
33
34CONFIGURE_ARGS += \
35        --enable-shared \
36        --enable-static \
37        --enable-final \
38
39CONFIGURE_VARS += \
40        CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/include/uClibc++" \
41        CXXFLAGS="$$$$CXXFLAGS -fno-builtin -fno-rtti -nostdinc++" \
42        LDFLAGS="$$$$LDFLAGS" \
43        LIBS="-nodefaultlibs -lz -luClibc++" \
44
45define Build/InstallDev
46        $(INSTALL_DIR) $(2)/bin
47        $(INSTALL_BIN) \
48                $(PKG_INSTALL_DIR)/usr/bin/taglib-config \
49                $(2)/bin/
50        $(SED) \
51                's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
52                $(2)/bin/taglib-config
53
54        $(INSTALL_DIR) $(1)/usr/lib
55        $(INSTALL_DATA) \
56                $(PKG_INSTALL_DIR)/usr/lib/libtag.{la,so*} \
57                $(1)/usr/lib/
58        $(INSTALL_DIR) $(1)/usr/include/taglib
59        $(INSTALL_DATA) \
60                $(PKG_INSTALL_DIR)/usr/include/taglib/* \
61                $(1)/usr/include/taglib/
62endef
63
64define Package/taglib/install
65        $(INSTALL_DIR) $(1)/usr/lib
66        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtag.so.* $(1)/usr/lib/
67endef
68
69$(eval $(call BuildPackage,taglib))
Note: See TracBrowser for help on using the repository browser.