[package] add libcelt (#6287)
[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 PKG_BUILD_DEPENDS:=libogg
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/libcelt
23 SECTION:=libs
24 CATEGORY:=Libraries
25 TITLE:=CELT Codec
26 URL:=http://www.celt-codec.org/
27 endef
28
29 define Package/libcelt/description
30 The CELT codec is an experimental audio codec for use in low-delay speech and audio communication.
31 endef
32
33 CONFIGURE_ARGS += \
34 --without-ogg
35
36 define Build/Compile
37 $(MAKE) -C $(PKG_BUILD_DIR) \
38 $(TARGET_CONFIGURE_OPTS) \
39 CFLAGS="$(TARGET_CFLAGS)" \
40 LDFLAGS="$(TARGET_LDFLAGS)" \
41 DESTDIR="$(PKG_INSTALL_DIR)" \
42 all install
43 endef
44
45 define Build/InstallDev
46 $(INSTALL_DIR) $(1)/usr/include/celt
47 $(CP) $(PKG_INSTALL_DIR)/usr/include/celt/celt*.h \
48 $(1)/usr/include/celt
49 $(INSTALL_DIR) $(1)/usr/lib
50 $(CP) $(PKG_INSTALL_DIR)/usr/lib/* \
51 $(1)/usr/lib/
52 endef
53
54 define Package/libcelt/install
55 $(INSTALL_DIR) $(1)/usr/lib
56 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcelt.so* $(1)/usr/lib/
57 endef
58
59 $(eval $(call BuildPackage,libcelt))