9156a2cd9835d2cbbdf06e24e15299acac82be80
[packages.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:=1.1.0
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:=2b2508c29bc97e4dc218fa162cf883c8
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         $(INSTALL_DIR) $(1)/usr/lib/ao/plugins-4
59         $(CP) $(PKG_INSTALL_DIR)/usr/lib/ao/plugins-4/lib*.so $(1)/usr/lib/ao/plugins-4/
60 endef
61
62 $(eval $(call BuildPackage,libao))