# SliTaz package receipt.

PACKAGE="chocolate-doom"
VERSION="1.4.0"
CATEGORY="games"
SHORT_DESC="Doom source port as close as possible to vanilla Doom."
MAINTAINER="pascal.bellard@slitaz.org"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="http://$PACKAGE.sourceforge.net/"
WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
DEPENDS="libsdl libsdl-mixer libsdl-net libsamplerate"
BUILD_DEPENDS="libsdl-mixer-dev  libsdl-net-dev libsdl-dev"

# 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 $MAKEFLAGS
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	mkdir -p $fs/usr/bin $fs/usr/share/games/doom
	cp $src/src/chocolate-doom $fs/usr/bin
}