25d5ded4c717f1d8d426d0e178cd7100f2619425
[openwrt/svn-archive/archive.git] / libs / libcelt / Makefile
1 #
2 # Copyright (C) 2009-2010 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:=celt
11 PKG_VERSION:=0.7.0
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://downloads.us.xiph.org/releases/celt/
16 PKG_MD5SUM:=0bb72abec367f4ef12551f79dda11b23
17
18 PKG_BUILD_DEPENDS:=libogg
19
20 PKG_FIXUP:=libtool
21 PKG_REMOVE_FILES:=aclocal.m4 ltmain.sh
22
23 PKG_INSTALL:=1
24
25 include $(INCLUDE_DIR)/package.mk
26
27 define Package/libcelt
28 SECTION:=libs
29 CATEGORY:=Libraries
30 TITLE:=CELT Codec
31 URL:=http://www.celt-codec.org/
32 endef
33
34 define Package/libcelt/description
35 The CELT codec is an experimental audio codec for use in low-delay speech and audio communication.
36 endef
37
38 define Build/Configure
39 $(call Build/Configure/Default, \
40 --without-ogg \
41 )
42 endef
43
44 define Build/InstallDev
45 $(INSTALL_DIR) $(1)/usr/include/celt
46 $(CP) $(PKG_INSTALL_DIR)/usr/include/celt/celt*.h \
47 $(1)/usr/include/celt
48 $(INSTALL_DIR) $(1)/usr/lib
49 $(CP) $(PKG_INSTALL_DIR)/usr/lib/* \
50 $(1)/usr/lib/
51 endef
52
53 define Package/libcelt/install
54 $(INSTALL_DIR) $(1)/usr/lib
55 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcelt.so* $(1)/usr/lib/
56 endef
57
58 $(eval $(call BuildPackage,libcelt))