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
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=http
://downloads.us.xiph.org
/releases
/speex
/
16 PKG_MD5SUM
:=c4438b22c08e5811ff10e2b06ee9b9ae
20 include $(INCLUDE_DIR
)/package.mk
22 define Package
/libspeex
25 TITLE
:=Open source speech compression codec library
26 URL
:=http
://www.speex.org
/
27 MAINTAINER
:=Peter Wagner
<tripolar@gmx.at
>
30 define Package
/libspeexdsp
33 TITLE
:=Open source speech compression codec library output to DSP
34 URL
:=http
://www.speex.org
/
35 MAINTAINER
:=Peter Wagner
<tripolar@gmx.at
>
38 define Package
/libspeex
/description
39 Open source patent-free speech compression codec library.
40 Speex is an Open Source
/Free Software patent-free audio compression
41 format designed for speech. The Speex Project aims to lower the
42 barrier of entry for voice applications by providing a free
43 alternative to expensive proprietary speech codecs. Moreover
, Speex
44 is well-adapted to Internet applications and provides useful features
45 that are not present in most other codecs.
47 This package contains the shared codec library
, needed by other programs.
50 TARGET_CFLAGS
+= $(FPIC
)
52 define Package
/libspeexdsp
/description
53 Open source patent-free speech compression codec library.
54 Speex is an Open Source
/Free Software patent-free audio compression
55 format designed for speech. The Speex Project aims to lower the
56 barrier of entry for voice applications by providing a free
57 alternative to expensive proprietary speech codecs. Moreover
, Speex
58 is well-adapted to Internet applications and provides useful features
59 that are not present in most other codecs.
61 This package contains the shared dsp library
, needed by other programs.
64 define Build
/Configure
65 $(call Build
/Configure
/Default
, \
68 --enable-fixed-point \
72 --with-ogg
=$(STAGING_DIR
)/usr \
77 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
78 DESTDIR
="$(PKG_INSTALL_DIR)" \
83 define Build
/InstallDev
84 $(INSTALL_DIR
) $(1)/usr
/include
85 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/speex
$(1)/usr
/include/
86 $(INSTALL_DIR
) $(1)/usr
/lib
87 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libspeex.
{a
,so
*} $(1)/usr
/lib
/
88 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libspeexdsp.
{a
,so
*} $(1)/usr
/lib
/
89 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
90 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/speex.
pc $(1)/usr
/lib
/pkgconfig
/
91 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/speexdsp.
pc $(1)/usr
/lib
/pkgconfig
/
94 define Package
/libspeex
/install
95 $(INSTALL_DIR
) $(1)/usr
/lib
96 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libspeex.so.
* $(1)/usr
/lib
/
99 define Package
/libspeexdsp
/install
100 $(INSTALL_DIR
) $(1)/usr
/lib
101 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libspeexdsp.so.
* $(1)/usr
/lib
/
104 $(eval
$(call BuildPackage
,libspeex
))
105 $(eval
$(call BuildPackage
,libspeexdsp
))