2 # Copyright (C) 2006-2014 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=http
://downloads.xiph.org
/releases
/ao
/
16 PKG_HASH
:=03ad231ad1f9d64b52474392d63c31197b0bc7bd416e58b1c10a329a5ed89caf
18 PKG_MAINTAINER
:=Ted Hess
<thess@kitschensync.net
>
21 PKG_LICENSE_FILES
:=COPYING
26 include $(INCLUDE_DIR
)/package.mk
32 TITLE
:=A cross platform audio library
33 URL
:=http
://www.xiph.org
/ao
/
36 define Package
/libao
/description
37 Libao is a cross-platform audio library that allows programs to
38 output audio using a simple API on a wide variety of platforms.
49 TARGET_CFLAGS
+= $(FPIC
)
51 define Build
/InstallDev
52 $(INSTALL_DIR
) $(1)/usr
/include
53 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/ao
$(1)/usr
/include/
54 $(INSTALL_DIR
) $(1)/usr
/lib
55 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libao.
{a
,so
*} $(1)/usr
/lib
/
56 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
57 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/ao.
pc $(1)/usr
/lib
/pkgconfig
/
60 define Package
/libao
/install
61 $(INSTALL_DIR
) $(1)/usr
/lib
62 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libao.so.
* $(1)/usr
/lib
/
63 $(INSTALL_DIR
) $(1)/usr
/lib
/ao
/plugins-4
64 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/ao
/plugins-4
/lib
*.so
$(1)/usr
/lib
/ao
/plugins-4
/
67 $(eval
$(call BuildPackage
,libao
))