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
18 include $(INCLUDE_DIR)/package.mk
24 TITLE:=A cross platform audio library
25 URL:=http://www.xiph.org/ao/
28 define Package/libao/description
29 Libao is a cross-platform audio library that allows programs to
30 output audio using a simple API on a wide variety of platforms.
41 TARGET_CFLAGS += $(FPIC)
44 $(MAKE) -C $(PKG_BUILD_DIR) \
45 DESTDIR="$(PKG_INSTALL_DIR)" \
49 define Build/InstallDev
50 mkdir -p $(1)/usr/include
51 $(CP) $(PKG_INSTALL_DIR)/usr/include/ao $(1)/usr/include/
53 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libao.{a,so*} $(1)/usr/lib/
54 mkdir -p $(1)/usr/lib/pkgconfig
55 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/ao.pc $(1)/usr/lib/pkgconfig/
58 define Package/libao/install
59 $(INSTALL_DIR) $(1)/usr/lib
60 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libao.so.* $(1)/usr/lib/
63 $(eval $(call BuildPackage,libao))