DESCRIPTION:= is obselete
[openwrt/svn-archive/archive.git] / libs / libao / 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:=libao
12 PKG_VERSION:=0.8.6
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://downloads.xiph.org/releases/ao/
17 PKG_MD5SUM:=12e136a4c0995068ff134997c84421ed
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
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/libao
26 SECTION:=libs
27 DEPENDS:=+alsa-lib
28 CATEGORY:=Libraries
29 TITLE:=A cross platform audio library
30 URL:=http://www.xiph.org/ao/
31 endef
32
33 define Package/libao/description
34 Libao is a cross-platform audio library that allows programs to
35 output audio using a simple API on a wide variety of platforms.
36 endef
37
38 define Build/Configure
39 $(call Build/Configure/Default, \
40 --enable-shared \
41 --enable-static \
42 --disable-esd \
43 --disable-arts \
44 --disable-nas \
45 --disable-polyp \
46 )
47 endef
48
49 define Build/Compile
50 $(MAKE) -C $(PKG_BUILD_DIR) \
51 DESTDIR="$(PKG_INSTALL_DIR)" \
52 all install
53 endef
54
55 define Build/InstallDev
56 mkdir -p $(1)/usr/include
57 $(CP) $(PKG_INSTALL_DIR)/usr/include/ao $(1)/usr/include/
58 mkdir -p $(1)/usr/lib
59 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libao.{a,so*} $(1)/usr/lib/
60 mkdir -p $(1)/usr/lib/pkgconfig
61 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/ao.pc $(1)/usr/lib/pkgconfig/
62 endef
63
64 define Build/UninstallDev
65 rm -rf \
66 $(STAGING_DIR)/usr/include/ao \
67 $(STAGING_DIR)/usr/lib/libao.{a,so*} \
68 $(STAGING_DIR)/usr/lib/pkgconfig/ao.pc
69 endef
70
71 define Package/libao/install
72 $(INSTALL_DIR) $(1)/usr/lib
73 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libao.so.* $(1)/usr/lib/
74 endef
75
76 $(eval $(call BuildPackage,libao))