Add libpthread-stubs and xcbproto.
[packages.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/libspeexdsp
31   SECTION:=libs
32   CATEGORY:=Libraries
33   TITLE:=Open source speech compression codec library output to DSP
34   URL:=http://www.speex.org/
35 endef
36
37 define Package/libspeex/description
38         Open source patent-free speech compression codec library.
39         Speex is an Open Source/Free Software patent-free audio compression 
40         format designed for speech. The Speex Project aims to lower the 
41         barrier of entry for voice applications by providing a free 
42         alternative to expensive proprietary speech codecs. Moreover, Speex 
43         is well-adapted to Internet applications and provides useful features 
44         that are not present in most other codecs.
45
46         This package contains the shared codec library, needed by other programs.
47 endef
48
49 TARGET_CFLAGS += $(FPIC)
50
51 define Package/libspeexdsp/description
52         Open source patent-free speech compression codec library.
53         Speex is an Open Source/Free Software patent-free audio compression 
54         format designed for speech. The Speex Project aims to lower the 
55         barrier of entry for voice applications by providing a free 
56         alternative to expensive proprietary speech codecs. Moreover, Speex 
57         is well-adapted to Internet applications and provides useful features 
58         that are not present in most other codecs.
59
60         This package contains the shared dsp library, needed by other programs.
61 endef
62
63 TARGET_LDFLAGS:=$(TARGET_LDFLAGS) -lnotimpl
64
65 define Build/Configure
66         $(call Build/Configure/Default, \
67                 --enable-shared \
68                 --enable-static \
69                 --enable-fixed-point \
70                 --disable-oggtest \
71                 --disable-float-api \
72                 --disable-vbr, \
73                 OGG_CFLAGS="" \
74         )
75 endef
76
77 define Build/Compile
78         $(MAKE) -C $(PKG_BUILD_DIR) \
79                 DESTDIR="$(PKG_INSTALL_DIR)" \
80                 bin_PROGRAMS="" \
81                 all install
82 endef
83
84 define Build/InstallDev
85         $(INSTALL_DIR) $(1)/usr/include
86         $(CP) $(PKG_INSTALL_DIR)/usr/include/speex $(1)/usr/include/
87         $(INSTALL_DIR) $(1)/usr/lib
88         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libspeex.{a,so*} $(1)/usr/lib/
89         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libspeexdsp.{a,so*} $(1)/usr/lib/
90         $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
91         $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/speex.pc $(1)/usr/lib/pkgconfig/
92         $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/speexdsp.pc $(1)/usr/lib/pkgconfig/
93 endef
94
95 define Package/libspeex/install
96         $(INSTALL_DIR) $(1)/usr/lib
97         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libspeex.so.* $(1)/usr/lib/
98 endef
99
100 define Package/libspeexdsp/install
101         $(INSTALL_DIR) $(1)/usr/lib
102         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libspeexdsp.so.* $(1)/usr/lib/
103 endef
104
105 $(eval $(call BuildPackage,libspeex))
106 $(eval $(call BuildPackage,libspeexdsp))
107