DESCRIPTION:= is obselete
[openwrt/svn-archive/archive.git] / libs / speex / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=speex
12 PKG_VERSION:=1.2beta1
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://downloads.us.xiph.org/releases/speex/
17 PKG_MD5SUM:=aac2e4ba42122b885c787ea280acb3d9
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22 PKG_BUILD_DEPENDS:=libnotimpl
23
24 include $(INCLUDE_DIR)/package.mk
25
26 define Package/libspeex
27 SECTION:=libs
28 CATEGORY:=Libraries
29 TITLE:=Open source speech compression codec library
30 URL:=http://www.speex.org/
31 endef
32
33 define Package/libspeex/description
34 Open source patent-free speech compression codec library.
35 Speex is an Open Source/Free Software patent-free audio compression
36 format designed for speech. The Speex Project aims to lower the
37 barrier of entry for voice applications by providing a free
38 alternative to expensive proprietary speech codecs. Moreover, Speex
39 is well-adapted to Internet applications and provides useful features
40 that are not present in most other codecs.
41
42 This package contains the shared codec library, needed by other programs.
43 endef
44
45 TARGET_LDFLAGS:=$(TARGET_LDFLAGS) -lnotimpl
46
47 define Build/Configure
48 $(call Build/Configure/Default, \
49 --enable-shared \
50 --enable-static \
51 --enable-fixed-point \
52 --disable-oggtest \
53 )
54 endef
55
56 define Build/Compile
57 $(MAKE) -C $(PKG_BUILD_DIR) \
58 DESTDIR="$(PKG_INSTALL_DIR)" \
59 bin_PROGRAMS="" \
60 all install
61 endef
62
63 define Build/InstallDev
64 mkdir -p $(1)/usr/include
65 $(CP) $(PKG_INSTALL_DIR)/usr/include/speex $(1)/usr/include/
66 mkdir -p $(1)/usr/lib
67 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libspeex.{a,so*} $(1)/usr/lib/
68 mkdir -p $(1)/usr/lib/pkgconfig
69 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/speex.pc $(1)/usr/lib/pkgconfig/
70 endef
71
72 define Build/UninstallDev
73 rm -rf \
74 $(STAGING_DIR)/usr/include/speex \
75 $(STAGING_DIR)/usr/lib/libspeex.{a,so*} \
76 $(STAGING_DIR)/usr/lib/pkgconfig/speex.pc
77 endef
78
79 define Package/libspeex/install
80 $(INSTALL_DIR) $(1)/usr/lib
81 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libspeex.so.* $(1)/usr/lib/
82 endef
83
84 $(eval $(call BuildPackage,libspeex))