2009-06-19 15:55:56 +00:00
|
|
|
#
|
2006-07-26 00:42:48 +00:00
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=libao
|
2009-06-19 15:55:56 +00:00
|
|
|
PKG_VERSION:=0.8.8
|
2006-07-26 00:42:48 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=http://downloads.xiph.org/releases/ao/
|
2009-06-19 15:55:56 +00:00
|
|
|
PKG_MD5SUM:=b92cba3cbcf1ee9bc221118a85d23dcd
|
2006-07-26 00:42:48 +00:00
|
|
|
|
2010-02-19 00:14:01 +00:00
|
|
|
PKG_FIXUP:=libtool
|
2010-02-18 13:10:21 +00:00
|
|
|
PKG_INSTALL:=1
|
|
|
|
|
2006-07-26 00:42:48 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/libao
|
|
|
|
SECTION:=libs
|
2006-10-18 21:39:57 +00:00
|
|
|
DEPENDS:=+alsa-lib
|
2006-07-26 00:42:48 +00:00
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE:=A cross platform audio library
|
|
|
|
URL:=http://www.xiph.org/ao/
|
|
|
|
endef
|
|
|
|
|
2007-10-14 04:32:56 +00:00
|
|
|
define Package/libao/description
|
2009-06-19 15:55:56 +00:00
|
|
|
Libao is a cross-platform audio library that allows programs to
|
2007-10-14 04:32:56 +00:00
|
|
|
output audio using a simple API on a wide variety of platforms.
|
|
|
|
endef
|
|
|
|
|
2008-08-06 22:43:15 +00:00
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--enable-shared \
|
|
|
|
--enable-static \
|
|
|
|
--disable-esd \
|
|
|
|
--disable-arts \
|
|
|
|
--disable-nas \
|
2009-06-19 15:55:56 +00:00
|
|
|
--disable-pulse
|
2008-08-06 22:43:15 +00:00
|
|
|
|
|
|
|
TARGET_CFLAGS += $(FPIC)
|
2006-07-26 00:42:48 +00:00
|
|
|
|
|
|
|
define Build/InstallDev
|
2009-12-18 11:06:19 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/include
|
2007-10-07 03:20:26 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/ao $(1)/usr/include/
|
2009-12-18 11:06:19 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2007-10-07 03:20:26 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libao.{a,so*} $(1)/usr/lib/
|
2009-12-18 11:06:19 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
2007-10-07 03:20:26 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/ao.pc $(1)/usr/lib/pkgconfig/
|
2006-07-26 00:42:48 +00:00
|
|
|
endef
|
|
|
|
|
2006-10-28 22:43:08 +00:00
|
|
|
define Package/libao/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2006-10-28 22:43:08 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libao.so.* $(1)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
2006-07-26 00:42:48 +00:00
|
|
|
$(eval $(call BuildPackage,libao))
|