a448e25518a0dd1cf1facf3807f968cc01bb3ed3
[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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=libao
11 PKG_VERSION:=0.8.8
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://downloads.xiph.org/releases/ao/
16 PKG_MD5SUM:=b92cba3cbcf1ee9bc221118a85d23dcd
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/libao
21 SECTION:=libs
22 DEPENDS:=+alsa-lib
23 CATEGORY:=Libraries
24 TITLE:=A cross platform audio library
25 URL:=http://www.xiph.org/ao/
26 endef
27
28 define Package/libao/description
29 Libao is a cross-platform audio library that allows programs to
30 output audio using a simple API on a wide variety of platforms.
31 endef
32
33 CONFIGURE_ARGS += \
34 --enable-shared \
35 --enable-static \
36 --disable-esd \
37 --disable-arts \
38 --disable-nas \
39 --disable-pulse
40
41 TARGET_CFLAGS += $(FPIC)
42
43 define Build/Compile
44 $(MAKE) -C $(PKG_BUILD_DIR) \
45 DESTDIR="$(PKG_INSTALL_DIR)" \
46 all install
47 endef
48
49 define Build/InstallDev
50 $(INSTALL_DIR) $(1)/usr/include
51 $(CP) $(PKG_INSTALL_DIR)/usr/include/ao $(1)/usr/include/
52 $(INSTALL_DIR) $(1)/usr/lib
53 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libao.{a,so*} $(1)/usr/lib/
54 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
55 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/ao.pc $(1)/usr/lib/pkgconfig/
56 endef
57
58 define Package/libao/install
59 $(INSTALL_DIR) $(1)/usr/lib
60 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libao.so.* $(1)/usr/lib/
61 endef
62
63 $(eval $(call BuildPackage,libao))