2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
12 PKG_VERSION
:=1.2beta3.2
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=http
://downloads.us.xiph.org
/releases
/speex
/
17 PKG_MD5SUM
:=b47396952c5fdd54b6468316c3bd339f
19 PKG_BUILD_DEPENDS
:=libnotimpl
21 include $(INCLUDE_DIR
)/package.mk
23 define Package
/libspeex
26 TITLE
:=Open source speech compression codec library
27 URL
:=http
://www.speex.org
/
30 define Package
/libspeexdsp
33 TITLE
:=Open source speech compression codec library output to DSP
34 URL
:=http
://www.speex.org
/
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.
46 This package contains the shared codec library
, needed by other programs.
49 TARGET_CFLAGS
+= $(FPIC
)
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.
60 This package contains the shared dsp library
, needed by other programs.
63 TARGET_LDFLAGS
:=$(TARGET_LDFLAGS
) -lnotimpl
65 define Build
/Configure
66 $(call Build
/Configure
/Default
, \
69 --enable-fixed-point \
78 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
79 DESTDIR
="$(PKG_INSTALL_DIR)" \
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
/
95 define Package
/libspeex
/install
96 $(INSTALL_DIR
) $(1)/usr
/lib
97 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libspeex.so.
* $(1)/usr
/lib
/
100 define Package
/libspeexdsp
/install
101 $(INSTALL_DIR
) $(1)/usr
/lib
102 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libspeexdsp.so.
* $(1)/usr
/lib
/
105 $(eval
$(call BuildPackage
,libspeex
))
106 $(eval
$(call BuildPackage
,libspeexdsp
))