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