# SliTaz package receipt.

PACKAGE="icecast"
VERSION="2.3.2"
CATEGORY="multimedia"
SHORT_DESC="An opensource alternative to shoutcast that supports mp3, ogg (vorbis/theora) and aac streaming"
DEPENDS="libxslt libxml2 libogg libvorbis libtheora"
BUILD_DEPENDS="libxslt-dev libxml2-dev libogg-dev libvorbis-dev libtheora-dev libogg libvorbis libtheora"
MAINTAINER="devl547@gmail.com"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="http://www.icecast.org/"
WGET_URL="http://downloads.xiph.org/releases/$PACKAGE/$TARBALL"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	./configure \
		--prefix=/usr \
		--sysconfdir=/etc \
		--disable-yp \
		$CONFIGURE_ARGS &&
	make -j2 &&
	make DESTDIR=$PWD/_pkg install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	mkdir -p $fs/usr/share
	cp -a $_pkg/usr/bin $fs/usr/
	cp -a $_pkg/etc	$fs/
	cp -a $_pkg/usr/share/icecast $fs/usr/share
}