# SliTaz package receipt.

PACKAGE="mhwaveedit"
VERSION="1.4.20"
CATEGORY="multimedia"
SHORT_DESC="Lightweight sound files editor, recorder and player."
MAINTAINER="pankso@slitaz.org"
DEPENDS="alsa-lib libxml2 expat gtk+ xorg-libX11 xorg-libXau \
xorg-libXcomposite xorg-libXcursor xorg-libXdmcp xorg-libXext \
xorg-libXfixes xorg-libXinerama xorg-libXrandr xorg-libXrender \
xorg-libXdamage"
BUILD_DEPENDS="alsa-lib-dev libxml2-dev gtk+-dev"
TARBALL="$PACKAGE-$VERSION.tar.bz2"
WEB_SITE="https://gna.org/projects/mhwaveedit/"
WGET_URL="http://download.gna.org/mhwaveedit/$TARBALL"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	chmod +x install-sh
	./configure \
		--prefix=/usr \
		--without-sdl \
		--without-libsamplerate \
		--without-portaudio \
		--without-libsndfile \
		--without-esound \
		$CONFIGURE_ARGS &&
	make &&
	make DESTDIR=$DESTDIR install
}

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