2 # Copyright (C) 2006-2010 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
20 include $(INCLUDE_DIR
)/package.mk
22 define Package
/libspeex
25 TITLE
:=Open source speech compression codec library
26 URL
:=http
://www.speex.org
/
29 define Package
/libspeexdsp
32 TITLE
:=Open source speech compression codec library output to DSP
33 URL
:=http
://www.speex.org
/
36 define Package
/libspeex
/description
37 Open source patent-free speech compression codec library.
38 Speex is an Open Source
/Free Software patent-free audio compression
39 format designed for speech. The Speex Project aims to lower the
40 barrier of entry for voice applications by providing a free
41 alternative to expensive proprietary speech codecs. Moreover
, Speex
42 is well-adapted to Internet applications and provides useful features
43 that are not present in most other codecs.
45 This package contains the shared codec library
, needed by other programs.
48 TARGET_CFLAGS
+= $(FPIC
)
50 define Package
/libspeexdsp
/description
51 Open source patent-free speech compression codec library.
52 Speex is an Open Source
/Free Software patent-free audio compression
53 format designed for speech. The Speex Project aims to lower the
54 barrier of entry for voice applications by providing a free
55 alternative to expensive proprietary speech codecs. Moreover
, Speex
56 is well-adapted to Internet applications and provides useful features
57 that are not present in most other codecs.
59 This package contains the shared dsp library
, needed by other programs.
62 define Build
/Configure
63 $(call Build
/Configure
/Default
, \
66 --enable-fixed-point \
70 --with-ogg
=$(STAGING_DIR
)/usr \
75 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
76 DESTDIR
="$(PKG_INSTALL_DIR)" \
81 define Build
/InstallDev
82 $(INSTALL_DIR
) $(1)/usr
/include
83 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/speex
$(1)/usr
/include/
84 $(INSTALL_DIR
) $(1)/usr
/lib
85 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libspeex.
{a
,so
*} $(1)/usr
/lib
/
86 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libspeexdsp.
{a
,so
*} $(1)/usr
/lib
/
87 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
88 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/speex.
pc $(1)/usr
/lib
/pkgconfig
/
89 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/speexdsp.
pc $(1)/usr
/lib
/pkgconfig
/
92 define Package
/libspeex
/install
93 $(INSTALL_DIR
) $(1)/usr
/lib
94 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libspeex.so.
* $(1)/usr
/lib
/
97 define Package
/libspeexdsp
/install
98 $(INSTALL_DIR
) $(1)/usr
/lib
99 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libspeexdsp.so.
* $(1)/usr
/lib
/
102 $(eval
$(call BuildPackage
,libspeex
))
103 $(eval
$(call BuildPackage
,libspeexdsp
))