# SliTaz package receipt.

PACKED_SIZE="32.0K"
UNPACKED_SIZE="92.0K"
PACKAGE="libao"
VERSION="1.1.0"
CATEGORY="multimedia"
SHORT_DESC="Cross-platform audio output library and plugins"
MAINTAINER="rj.rohit@gmail.com"
LICENSE="GPL2"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="http://downloads.xiph.org/releases/ao/" 
WGET_URL="$WEB_SITE/$TARBALL"
HOST_ARCH="i486 arm"

DEPENDS="glibc-base alsa-lib"
BUILD_DEPENDS="alsa-lib-dev"

# Rules to configure and make the package.
compile_rules()
{
	./configure \
		--enable-alsa09 \
		--disable-arts \
		$CONFIGURE_ARGS &&
	make && make install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	mkdir -p $fs/usr/lib/ao/plugins-4 $fs/etc
	cp -a $install/usr/lib/ao/plugins-4/*.so $fs/usr/lib/ao/plugins-4
	cp -a $install/usr/lib/*.so* $fs/usr/lib
	# Add conf file
	cp -a $stuff/libao.conf $fs/etc
}
