# SliTaz package receipt.

PACKAGE="mpg123"
VERSION="1.13.4"
CATEGORY="multimedia"
SHORT_DESC="Command line audio player and streamer"
MAINTAINER="pankso@slitaz.org"
DEPENDS="alsa-lib libltdl esound openal portaudio libsdl"
BUILD_DEPENDS="alsa-lib-dev libtool"
TARBALL="$PACKAGE-$VERSION.tar.bz2"
WEB_SITE="http://www.mpg123.de/"
WGET_URL="http://www.mpg123.de/download/$TARBALL"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	./configure \
		--prefix=/usr \
		--mandir=/usr/share/man \
		--with-default-audio=alsa \
		$CONFIGURE_ARGS &&
	make &&
	make install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	# mpg123 needs the plugins libtool library file (.la) to work.
	mkdir -p $fs/usr/lib
	cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
	cp -a $_pkg/usr/lib/mpg123 $fs/usr/lib
	cp -a $_pkg/usr/include	$fs/usr
	cp -a $_pkg/usr/bin $fs/usr
}