# SliTaz package receipt.

PACKAGE="icewm"
VERSION="1.3.7pre2"
CATEGORY="x-window"
SHORT_DESC="Ice Window Manager with Themes"
MAINTAINER="devl547@gmail.com"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="http://www.icewm.org/"
WGET_URL="$SF_MIRROR/icewm/icewm-1.3/1.3.7pre2/$TARBALL"
BUILD_DEPENDS="xorg-libX11-dev xorg-libXrandr-dev xorg-libXext-dev \
xorg-libXpm-dev xorg-libXrender-dev xorg-libXft xorg-libXft-dev xorg-libSM-dev \
xorg-libICE-dev xorg-libXrandr-dev imlib-dev freetype-dev giflib-dev \
xorg-libXinerama xorg-libXinerama-dev \
xorg-xproto xorg-xextproto xorg-randrproto fontconfig-dev gettext \
gdk-pixbuf-dev pkg-config"
DEPENDS="xorg-libX11 xorg-libXrandr xorg-libXext xorg-libXpm \
xorg-libXrender xorg-libXft xorg-libSM xorg-libICE imlib freetype \
gdk-pixbuf giflib gettext"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	./configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib/icewm \
	 --localstatedir=/var --mandir=/usr/share/man  --disable-i18n \
	 $CONFIGURE_ARGS &&
	make &&
	make DESTDIR=$PWD/_pkg install
}

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