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
:=1bd6cdf3a0ebabf818cd72a3401e2610
20 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
21 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
23 include $(INCLUDE_DIR
)/package.mk
25 define Package
/libspeex
28 TITLE
:=Open source speech compression codec library
30 Open source patent-free speech compression codec library.
\\\
31 Speex is an Open Source
/Free Software patent-free audio compression
\\\
32 format designed for speech. The Speex Project aims to lower the
\\\
33 barrier of entry for voice applications by providing a free
\\\
34 alternative to expensive proprietary speech codecs. Moreover
, Speex
\\\
35 is well-adapted to Internet applications and provides useful features
\\\
36 that are not present in most other codecs.
\\\
38 This package contains the shared codec library
, needed by other programs.
39 URL
:=http
://www.speex.org
/
42 TARGET_LDFLAGS
:=$(TARGET_LDFLAGS
) -lnotimpl
44 define Build
/Configure
45 $(call Build
/Configure
/Default
, \
48 --enable-fixed-point \
54 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
55 DESTDIR
="$(PKG_INSTALL_DIR)" \
60 define Build
/InstallDev
61 mkdir
-p
$(STAGING_DIR
)/usr
/include
62 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/speex
$(STAGING_DIR
)/usr
/include/
63 mkdir
-p
$(STAGING_DIR
)/usr
/lib
64 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libspeex.
{a
,so
*} $(STAGING_DIR
)/usr
/lib
/
65 mkdir
-p
$(STAGING_DIR
)/usr
/lib
/pkgconfig
66 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/speex.
pc $(STAGING_DIR
)/usr
/lib
/pkgconfig
/
67 $(SED
) 's,-I$$$${includedir},,g' $(STAGING_DIR
)/usr
/lib
/pkgconfig
/speex.
pc
68 $(SED
) 's,-L$$$${libdir},,g' $(STAGING_DIR
)/usr
/lib
/pkgconfig
/speex.
pc
71 define Build
/UninstallDev
73 $(STAGING_DIR
)/usr
/include/speex \
74 $(STAGING_DIR
)/usr
/lib
/libspeex.
{a
,so
*} \
75 $(STAGING_DIR
)/usr
/lib
/pkgconfig
/speex.
pc
78 define Package
/libspeex
/install
79 $(INSTALL_DIR
) $(1)/usr
/lib
80 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libspeex.so.
* $(1)/usr
/lib
/
83 $(eval
$(call BuildPackage
,libspeex
))