ucmb: Fix compile on 2.6.36
[openwrt/svn-archive/archive.git] / libs / speex / Makefile
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.2beta3.2
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://downloads.us.xiph.org/releases/speex/
16 PKG_MD5SUM:=b47396952c5fdd54b6468316c3bd339f
17
18 PKG_FIXUP:=libtool
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 endef
28
29 define Package/libspeexdsp
30 SECTION:=libs
31 CATEGORY:=Libraries
32 TITLE:=Open source speech compression codec library output to DSP
33 URL:=http://www.speex.org/
34 endef
35
36 define Package/libspeex/description
37 Open source patent-free speech compression codec library.
38 Speex is an Open Source/Free Software patent-free audio compression
39 format designed for speech. The Speex Project aims to lower the
40 barrier of entry for voice applications by providing a free
41 alternative to expensive proprietary speech codecs. Moreover, Speex
42 is well-adapted to Internet applications and provides useful features
43 that are not present in most other codecs.
44
45 This package contains the shared codec library, needed by other programs.
46 endef
47
48 TARGET_CFLAGS += $(FPIC)
49
50 define Package/libspeexdsp/description
51 Open source patent-free speech compression codec library.
52 Speex is an Open Source/Free Software patent-free audio compression
53 format designed for speech. The Speex Project aims to lower the
54 barrier of entry for voice applications by providing a free
55 alternative to expensive proprietary speech codecs. Moreover, Speex
56 is well-adapted to Internet applications and provides useful features
57 that are not present in most other codecs.
58
59 This package contains the shared dsp library, needed by other programs.
60 endef
61
62 define Build/Configure
63 $(call Build/Configure/Default, \
64 --enable-shared \
65 --enable-static \
66 --enable-fixed-point \
67 --disable-oggtest \
68 --disable-float-api \
69 --disable-vbr \
70 --with-ogg=$(STAGING_DIR)/usr \
71 )
72 endef
73
74 define Build/Compile
75 $(MAKE) -C $(PKG_BUILD_DIR) \
76 DESTDIR="$(PKG_INSTALL_DIR)" \
77 bin_PROGRAMS="" \
78 all install
79 endef
80
81 define Build/InstallDev
82 $(INSTALL_DIR) $(1)/usr/include
83 $(CP) $(PKG_INSTALL_DIR)/usr/include/speex $(1)/usr/include/
84 $(INSTALL_DIR) $(1)/usr/lib
85 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libspeex.{a,so*} $(1)/usr/lib/
86 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libspeexdsp.{a,so*} $(1)/usr/lib/
87 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
88 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/speex.pc $(1)/usr/lib/pkgconfig/
89 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/speexdsp.pc $(1)/usr/lib/pkgconfig/
90 endef
91
92 define Package/libspeex/install
93 $(INSTALL_DIR) $(1)/usr/lib
94 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libspeex.so.* $(1)/usr/lib/
95 endef
96
97 define Package/libspeexdsp/install
98 $(INSTALL_DIR) $(1)/usr/lib
99 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libspeexdsp.so.* $(1)/usr/lib/
100 endef
101
102 $(eval $(call BuildPackage,libspeex))
103 $(eval $(call BuildPackage,libspeexdsp))
104