Update libmpcdec to 1.2.6 (#3601)
[openwrt/svn-archive/archive.git] / libs / libmpcdec / 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:=libmpcdec
12 PKG_VERSION:=1.2.6
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=http://files.musepack.net/source/
17 PKG_MD5SUM:=7f7a060e83b4278acf4b77d7a7b9d2c0
18 PKG_FIXUP:=libtool
19
20 include $(INCLUDE_DIR)/package.mk
21
22 PKG_INSTALL=1
23
24 define Package/libmpcdec
25 SECTION:=libs
26 CATEGORY:=Libraries
27 TITLE:=Musepack decoder library
28 URL:=http://www.musepack.net
29 endef
30
31 define Package/libmpcdec/description
32 Musepack decoder library
33 endef
34
35 TARGET_CFLAGS += $(FPIC)
36
37 define Build/InstallDev
38 $(INSTALL_DIR) $(1)/usr/include/mpcdec/
39 $(INSTALL_DATA) \
40 $(PKG_INSTALL_DIR)/usr/include/mpcdec/*.h \
41 $(1)/usr/include/mpcdec/
42
43 $(INSTALL_DIR) $(1)/usr/lib
44 $(INSTALL_DATA) \
45 $(PKG_INSTALL_DIR)/usr/lib/*.{so*,la} \
46 $(1)/usr/lib/
47 endef
48
49 define Package/libmpcdec/install
50 $(INSTALL_DIR) $(1)/usr/lib
51 $(INSTALL_DATA) \
52 $(PKG_INSTALL_DIR)/usr/lib/libmpcdec.{so*,a} \
53 $(1)/usr/lib/
54 endef
55
56 $(eval $(call BuildPackage,libmpcdec))