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
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=http
://downloads.us.xiph.org
/releases
/speex
/
17 PKG_MD5SUM
:=bcada04dc663a725ee7fcfa6301520a3
19 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
20 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
21 PKG_BUILD_DEPENDS
:=libnotimpl
23 include $(INCLUDE_DIR
)/package.mk
25 define Package
/libspeex
28 TITLE
:=Open source speech compression codec library
29 URL
:=http
://www.speex.org
/
32 define Package
/libspeex
/description
33 Open source patent-free speech compression codec library.
34 Speex is an Open Source
/Free Software patent-free audio compression
35 format designed for speech. The Speex Project aims to lower the
36 barrier of entry for voice applications by providing a free
37 alternative to expensive proprietary speech codecs. Moreover
, Speex
38 is well-adapted to Internet applications and provides useful features
39 that are not present in most other codecs.
41 This package contains the shared codec library
, needed by other programs.
44 TARGET_LDFLAGS
:=$(TARGET_LDFLAGS
) -lnotimpl
46 define Build
/Configure
47 $(call Build
/Configure
/Default
, \
50 --enable-fixed-point \
58 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
59 DESTDIR
="$(PKG_INSTALL_DIR)" \
64 define Build
/InstallDev
65 mkdir
-p
$(1)/usr
/include
66 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/speex
$(1)/usr
/include/
68 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libspeex.
{a
,so
*} $(1)/usr
/lib
/
69 mkdir
-p
$(1)/usr
/lib
/pkgconfig
70 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/speex.
pc $(1)/usr
/lib
/pkgconfig
/
73 define Package
/libspeex
/install
74 $(INSTALL_DIR
) $(1)/usr
/lib
75 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libspeex.so.
* $(1)/usr
/lib
/
78 $(eval
$(call BuildPackage
,libspeex
))