remove UninstallDev
[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
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
21 PKG_BUILD_DEPENDS:=libnotimpl
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/libspeex
26 SECTION:=libs
27 CATEGORY:=Libraries
28 TITLE:=Open source speech compression codec library
29 URL:=http://www.speex.org/
30 endef
31
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.
40
41 This package contains the shared codec library, needed by other programs.
42 endef
43
44 TARGET_LDFLAGS:=$(TARGET_LDFLAGS) -lnotimpl
45
46 define Build/Configure
47 $(call Build/Configure/Default, \
48 --enable-shared \
49 --enable-static \
50 --enable-fixed-point \
51 --disable-oggtest \
52 )
53 endef
54
55 define Build/Compile
56 $(MAKE) -C $(PKG_BUILD_DIR) \
57 DESTDIR="$(PKG_INSTALL_DIR)" \
58 bin_PROGRAMS="" \
59 all install
60 endef
61
62 define Build/InstallDev
63 mkdir -p $(1)/usr/include
64 $(CP) $(PKG_INSTALL_DIR)/usr/include/speex $(1)/usr/include/
65 mkdir -p $(1)/usr/lib
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/
69 endef
70
71 define Package/libspeex/install
72 $(INSTALL_DIR) $(1)/usr/lib
73 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libspeex.so.* $(1)/usr/lib/
74 endef
75
76 $(eval $(call BuildPackage,libspeex))