d5ed725df419b248d9cfeb721389b0797bd00ec4
[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 PKG_FIXUP:=libtool
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/libao
24 SECTION:=libs
25 DEPENDS:=+alsa-lib
26 CATEGORY:=Libraries
27 TITLE:=A cross platform audio library
28 URL:=http://www.xiph.org/ao/
29 endef
30
31 define Package/libao/description
32 Libao is a cross-platform audio library that allows programs to
33 output audio using a simple API on a wide variety of platforms.
34 endef
35
36 CONFIGURE_ARGS += \
37 --enable-shared \
38 --enable-static \
39 --disable-esd \
40 --disable-arts \
41 --disable-nas \
42 --disable-pulse
43
44 TARGET_CFLAGS += $(FPIC)
45
46 define Build/InstallDev
47 $(INSTALL_DIR) $(1)/usr/include
48 $(CP) $(PKG_INSTALL_DIR)/usr/include/ao $(1)/usr/include/
49 $(INSTALL_DIR) $(1)/usr/lib
50 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libao.{a,so*} $(1)/usr/lib/
51 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
52 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/ao.pc $(1)/usr/lib/pkgconfig/
53 endef
54
55 define Package/libao/install
56 $(INSTALL_DIR) $(1)/usr/lib
57 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libao.so.* $(1)/usr/lib/
58 endef
59
60 $(eval $(call BuildPackage,libao))