banip: release 0.9.6-1
[feed/packages.git] / libs / speexdsp / Makefile
1 #
2 # Copyright (C) 2006-2017 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:=speexdsp
11 PKG_VERSION:=1.2.0
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=https://downloads.us.xiph.org/releases/speex/
16 PKG_HASH:=682042fc6f9bee6294ec453f470dadc26c6ff29b9c9e9ad2ffc1f4312fd64771
17
18 PKG_FIXUP:=autoreconf
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/libspeexdsp
24 SECTION:=libs
25 CATEGORY:=Libraries
26 TITLE:=Open source speech compression codec library output to DSP
27 URL:=http://www.speex.org/
28 MAINTAINER:=Peter Wagner <tripolar@gmx.at>
29 endef
30
31 define Package/libspeexdsp/description
32 Open source patent-free speech compression codec library.
33 Speex is an Open Source/Free Software patent-free audio compression
34 format designed for speech. The Speex Project aims to lower the
35 barrier of entry for voice applications by providing a free
36 alternative to expensive proprietary speech codecs. Moreover, Speex
37 is well-adapted to Internet applications and provides useful features
38 that are not present in most other codecs.
39
40 This package contains the shared dsp library, needed by other programs.
41 endef
42
43 define Build/InstallDev
44 $(INSTALL_DIR) $(1)/usr/include
45 $(CP) $(PKG_INSTALL_DIR)/usr/include/speex $(1)/usr/include/
46 $(INSTALL_DIR) $(1)/usr/lib
47 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libspeexdsp.{a,so*} $(1)/usr/lib/
48 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
49 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/speexdsp.pc $(1)/usr/lib/pkgconfig/
50 endef
51
52 define Package/libspeexdsp/install
53 $(INSTALL_DIR) $(1)/usr/lib
54 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libspeexdsp.so.* $(1)/usr/lib/
55 endef
56
57 TARGET_CFLAGS += $(FPIC)
58
59 CONFIGURE_ARGS += \
60 --enable-shared \
61 --enable-static \
62 --disable-examples \
63 $(if $(CONFIG_SOFT_FLOAT),--enable-fixed-point --disable-float-api)
64
65 $(eval $(call BuildPackage,libspeexdsp))