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
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 \
56 $(MAKE) -C $(PKG_BUILD_DIR) \
57 DESTDIR="$(PKG_INSTALL_DIR)" \
62 define Build/InstallDev
63 mkdir -p $(1)/usr/include
64 $(CP) $(PKG_INSTALL_DIR)/usr/include/speex $(1)/usr/include/
66 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libspeex.{a,so*} $(1)/usr/lib/
67 mkdir -p $(1)/usr/lib/pkgconfig
68 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/speex.pc $(1)/usr/lib/pkgconfig/
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))