2 # Copyright (C) 2006-2009 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
11 PKG_VERSION
:=1.2beta3.2
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=http
://downloads.us.xiph.org
/releases
/speex
/
16 PKG_MD5SUM
:=b47396952c5fdd54b6468316c3bd339f
18 include $(INCLUDE_DIR
)/package.mk
20 define Package
/libspeex
23 TITLE
:=Open source speech compression codec library
24 URL
:=http
://www.speex.org
/
27 define Package
/libspeexdsp
30 TITLE
:=Open source speech compression codec library output to DSP
31 URL
:=http
://www.speex.org
/
34 define Package
/libspeex
/description
35 Open source patent-free speech compression codec library.
36 Speex is an Open Source
/Free Software patent-free audio compression
37 format designed for speech. The Speex Project aims to lower the
38 barrier of entry for voice applications by providing a free
39 alternative to expensive proprietary speech codecs. Moreover
, Speex
40 is well-adapted to Internet applications and provides useful features
41 that are not present in most other codecs.
43 This package contains the shared codec library
, needed by other programs.
46 TARGET_CFLAGS
+= $(FPIC
)
48 define Package
/libspeexdsp
/description
49 Open source patent-free speech compression codec library.
50 Speex is an Open Source
/Free Software patent-free audio compression
51 format designed for speech. The Speex Project aims to lower the
52 barrier of entry for voice applications by providing a free
53 alternative to expensive proprietary speech codecs. Moreover
, Speex
54 is well-adapted to Internet applications and provides useful features
55 that are not present in most other codecs.
57 This package contains the shared dsp library
, needed by other programs.
60 define Build
/Configure
61 $(call Build
/Configure
/Default
, \
64 --enable-fixed-point \
73 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
74 DESTDIR
="$(PKG_INSTALL_DIR)" \
79 define Build
/InstallDev
80 $(INSTALL_DIR
) $(1)/usr
/include
81 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/speex
$(1)/usr
/include/
82 $(INSTALL_DIR
) $(1)/usr
/lib
83 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libspeex.
{a
,so
*} $(1)/usr
/lib
/
84 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libspeexdsp.
{a
,so
*} $(1)/usr
/lib
/
85 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
86 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/speex.
pc $(1)/usr
/lib
/pkgconfig
/
87 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/speexdsp.
pc $(1)/usr
/lib
/pkgconfig
/
90 define Package
/libspeex
/install
91 $(INSTALL_DIR
) $(1)/usr
/lib
92 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libspeex.so.
* $(1)/usr
/lib
/
95 define Package
/libspeexdsp
/install
96 $(INSTALL_DIR
) $(1)/usr
/lib
97 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libspeexdsp.so.
* $(1)/usr
/lib
/
100 $(eval
$(call BuildPackage
,libspeex
))
101 $(eval
$(call BuildPackage
,libspeexdsp
))