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.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=http
://downloads.xiph.org
/releases
/ao
/
17 PKG_MD5SUM
:=12e136a4c0995068ff134997c84421ed
19 include $(INCLUDE_DIR
)/package.mk
25 TITLE
:=A cross platform audio library
26 URL
:=http
://www.xiph.org
/ao
/
29 define Package
/libao
/description
30 Libao is a cross-platform audio library that allows programs to
31 output audio using a simple API on a wide variety of platforms.
34 define Build
/Configure
35 $(call Build
/Configure
/Default
, \
46 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
47 DESTDIR
="$(PKG_INSTALL_DIR)" \
51 define Build
/InstallDev
52 mkdir
-p
$(1)/usr
/include
53 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/ao
$(1)/usr
/include/
55 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libao.
{a
,so
*} $(1)/usr
/lib
/
56 mkdir
-p
$(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
/
65 $(eval
$(call BuildPackage
,libao
))