Update bluez-libs to 3.36 (#3765)
[openwrt/svn-archive/archive.git] / libs / speex / Makefile
1 #
2 # Copyright (C) 2006 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:=speex
12 PKG_VERSION:=1.2beta3.2
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://downloads.us.xiph.org/releases/speex/
17 PKG_MD5SUM:=b47396952c5fdd54b6468316c3bd339f
18
19 PKG_BUILD_DEPENDS:=libnotimpl
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/libspeex
24 SECTION:=libs
25 CATEGORY:=Libraries
26 TITLE:=Open source speech compression codec library
27 URL:=http://www.speex.org/
28 endef
29
30 define Package/libspeex/description
31 Open source patent-free speech compression codec library.
32 Speex is an Open Source/Free Software patent-free audio compression
33 format designed for speech. The Speex Project aims to lower the
34 barrier of entry for voice applications by providing a free
35 alternative to expensive proprietary speech codecs. Moreover, Speex
36 is well-adapted to Internet applications and provides useful features
37 that are not present in most other codecs.
38
39 This package contains the shared codec library, needed by other programs.
40 endef
41
42 TARGET_LDFLAGS:=$(TARGET_LDFLAGS) -lnotimpl
43
44 define Build/Configure
45 $(call Build/Configure/Default, \
46 --enable-shared \
47 --enable-static \
48 --enable-fixed-point \
49 --disable-oggtest \
50 --disable-float-api \
51 --disable-vbr, \
52 OGG_CFLAGS="" \
53 )
54 endef
55
56 define Build/Compile
57 $(MAKE) -C $(PKG_BUILD_DIR) \
58 DESTDIR="$(PKG_INSTALL_DIR)" \
59 bin_PROGRAMS="" \
60 all install
61 endef
62
63 define Build/InstallDev
64 mkdir -p $(1)/usr/include
65 $(CP) $(PKG_INSTALL_DIR)/usr/include/speex $(1)/usr/include/
66 mkdir -p $(1)/usr/lib
67 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libspeex.{a,so*} $(1)/usr/lib/
68 mkdir -p $(1)/usr/lib/pkgconfig
69 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/speex.pc $(1)/usr/lib/pkgconfig/
70 endef
71
72 define Package/libspeex/install
73 $(INSTALL_DIR) $(1)/usr/lib
74 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libspeex.so.* $(1)/usr/lib/
75 endef
76
77 $(eval $(call BuildPackage,libspeex))