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
21 include $(INCLUDE_DIR
)/package.mk
27 TITLE
:=A cross platform audio library
28 URL
:=http
://www.xiph.org
/ao
/
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.
44 TARGET_CFLAGS
+= $(FPIC
)
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
/
55 define Package
/libao
/install
56 $(INSTALL_DIR
) $(1)/usr
/lib
57 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libao.so.
* $(1)/usr
/lib
/
60 $(eval
$(call BuildPackage
,libao
))