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