packages: prune empty dirs, closes #3078
[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.2beta3
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:=bcada04dc663a725ee7fcfa6301520a3
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 --disable-float-api \
53 --disable-vbr \
54 )
55 endef
56
57 define Build/Compile
58 $(MAKE) -C $(PKG_BUILD_DIR) \
59 DESTDIR="$(PKG_INSTALL_DIR)" \
60 bin_PROGRAMS="" \
61 all install
62 endef
63
64 define Build/InstallDev
65 mkdir -p $(1)/usr/include
66 $(CP) $(PKG_INSTALL_DIR)/usr/include/speex $(1)/usr/include/
67 mkdir -p $(1)/usr/lib
68 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libspeex.{a,so*} $(1)/usr/lib/
69 mkdir -p $(1)/usr/lib/pkgconfig
70 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/speex.pc $(1)/usr/lib/pkgconfig/
71 endef
72
73 define Package/libspeex/install
74 $(INSTALL_DIR) $(1)/usr/lib
75 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libspeex.so.* $(1)/usr/lib/
76 endef
77
78 $(eval $(call BuildPackage,libspeex))