# SliTaz package receipt.

PACKAGE="wxpython"
VERSION="2.8.12.1"
CATEGORY="x-window"
SHORT_DESC="GUI toolkit for the Python programming language."
MAINTAINER="pankso@slitaz.org"
DEPENDS="python gtk+"
BUILD_DEPENDS="python-dev gtk+-dev"
SOURCE="wxPython"
TARBALL="$SOURCE-src-$VERSION.tar.bz2"
WEB_SITE="http://www.wxpython.org/"
WGET_URL="$SF_MIRROR/wxpython/$TARBALL"

# Rules to configure and make the package.
compile_rules()
{
    cd $src
    ./configure \
    	--without-sdl \
    	$CONFIGURE_ARGS &&
    make $MAKEFLAGS &&
    make DESTDIR=$DESTDIR install
}

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