# SliTaz package receipt.

PACKAGE="portaudio"
VERSION="v19_20071207"
CATEGORY="system-tools"
SHORT_DESC="A portable cross-platform audio API"
MAINTAINER="erjo@slitaz.org"
DEPENDS="alsa-lib jack-audio-connection-kit"
BUILD_DEPENDS="alsa-lib-dev jack-audio-connection-kit-dev"
SOURCE="pa_stable"
TARBALL="${SOURCE}_${VERSION}.tar.gz"
WEB_SITE="http://www.portaudio.com/"
WGET_URL="http://www.portaudio.com/archives/$TARBALL"

# Rules to configure and make the package.
compile_rules()
{
	cd  $src
	./configure --prefix=/usr \
		--infodir=/usr/share/info \
		--mandir=/usr/share/man $CONFIGURE_ARGS &&
	make &&
	make DESTDIR=$PWD/_pkg install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	mkdir -p $fs/usr/lib
	cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
}