Makefile (3186B)
1 # 2 # Copyright (C) 2006-2010 OpenWrt.org 3 # 4 # This is free software, licensed under the GNU General Public License v2. 5 # See /LICENSE for more information. 6 # 7 8 include $(TOPDIR)/rules.mk 9 10 PKG_NAME:=speex 11 PKG_VERSION:=1.2rc1 12 PKG_RELEASE:=1 13 14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 15 PKG_SOURCE_URL:=http://downloads.us.xiph.org/releases/speex/ 16 PKG_MD5SUM:=c4438b22c08e5811ff10e2b06ee9b9ae 17 18 PKG_FIXUP:=autoreconf 19 20 include $(INCLUDE_DIR)/package.mk 21 22 define Package/libspeex 23 SECTION:=libs 24 CATEGORY:=Libraries 25 TITLE:=Open source speech compression codec library 26 URL:=http://www.speex.org/ 27 MAINTAINER:=Peter Wagner <tripolar@gmx.at> 28 endef 29 30 define Package/libspeexdsp 31 SECTION:=libs 32 CATEGORY:=Libraries 33 TITLE:=Open source speech compression codec library output to DSP 34 URL:=http://www.speex.org/ 35 MAINTAINER:=Peter Wagner <tripolar@gmx.at> 36 endef 37 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. 46 47 This package contains the shared codec library, needed by other programs. 48 endef 49 50 TARGET_CFLAGS += $(FPIC) 51 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. 60 61 This package contains the shared dsp library, needed by other programs. 62 endef 63 64 define Build/Configure 65 $(call Build/Configure/Default, \ 66 --enable-shared \ 67 --enable-static \ 68 --enable-fixed-point \ 69 --disable-oggtest \ 70 --disable-float-api \ 71 --disable-vbr \ 72 --with-ogg=$(STAGING_DIR)/usr \ 73 ) 74 endef 75 76 define Build/Compile 77 $(MAKE) -C $(PKG_BUILD_DIR) \ 78 DESTDIR="$(PKG_INSTALL_DIR)" \ 79 bin_PROGRAMS="" \ 80 all install 81 endef 82 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/ 92 endef 93 94 define Package/libspeex/install 95 $(INSTALL_DIR) $(1)/usr/lib 96 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libspeex.so.* $(1)/usr/lib/ 97 endef 98 99 define Package/libspeexdsp/install 100 $(INSTALL_DIR) $(1)/usr/lib 101 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libspeexdsp.so.* $(1)/usr/lib/ 102 endef 103 104 $(eval $(call BuildPackage,libspeex)) 105 $(eval $(call BuildPackage,libspeexdsp))