2 # Copyright (C) 2006 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_MD5SUM
:=b92cba3cbcf1ee9bc221118a85d23dcd
20 include $(INCLUDE_DIR
)/package.mk
26 TITLE
:=A cross platform audio library
27 URL
:=http
://www.xiph.org
/ao
/
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.
43 TARGET_CFLAGS
+= $(FPIC
)
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
/
54 define Package
/libao
/install
55 $(INSTALL_DIR
) $(1)/usr
/lib
56 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libao.so.
* $(1)/usr
/lib
/
59 $(eval
$(call BuildPackage
,libao
))