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