df55e3864c218cff8b0effe01ccce068e914719a
[feed/packages.git] / libs / libao / Makefile
1 #
2 # Copyright (C) 2006-2014 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.2.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_HASH:=03ad231ad1f9d64b52474392d63c31197b0bc7bd416e58b1c10a329a5ed89caf
17
18 PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
19
20 PKG_LICENSE:=GPL-2.0
21 PKG_LICENSE_FILES:=COPYING
22 PKG_CPE_ID:=cpe:/a:xiph:libao
23
24 PKG_FIXUP:=autoreconf
25 PKG_INSTALL:=1
26
27 include $(INCLUDE_DIR)/package.mk
28
29 define Package/libao
30 SECTION:=libs
31 DEPENDS:=+alsa-lib
32 CATEGORY:=Libraries
33 TITLE:=A cross platform audio library
34 URL:=http://www.xiph.org/ao/
35 endef
36
37 define Package/libao/description
38 Libao is a cross-platform audio library that allows programs to
39 output audio using a simple API on a wide variety of platforms.
40 endef
41
42 CONFIGURE_ARGS += \
43 --enable-shared \
44 --enable-static \
45 --disable-esd \
46 --disable-arts \
47 --disable-nas \
48 --disable-pulse
49
50 TARGET_CFLAGS += $(FPIC)
51
52 define Build/InstallDev
53 $(INSTALL_DIR) $(1)/usr/include
54 $(CP) $(PKG_INSTALL_DIR)/usr/include/ao $(1)/usr/include/
55 $(INSTALL_DIR) $(1)/usr/lib
56 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libao.{a,so*} $(1)/usr/lib/
57 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
58 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/ao.pc $(1)/usr/lib/pkgconfig/
59 endef
60
61 define Package/libao/install
62 $(INSTALL_DIR) $(1)/usr/lib
63 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libao.so.* $(1)/usr/lib/
64 $(INSTALL_DIR) $(1)/usr/lib/ao/plugins-4
65 $(CP) $(PKG_INSTALL_DIR)/usr/lib/ao/plugins-4/lib*.so $(1)/usr/lib/ao/plugins-4/
66 endef
67
68 $(eval $(call BuildPackage,libao))