wok view wxpython/receipt @ rev 13160

slitaz-boot-scripts: use chroot in post_install
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jul 25 18:28:25 2012 +0200 (2012-07-25)
parents 41b267435764
children 6b09507225ec
line source
1 # SliTaz package receipt.
3 PACKAGE="wxpython"
4 VERSION="2.8.12.1"
5 CATEGORY="x-window"
6 SHORT_DESC="GUI toolkit for the Python programming language."
7 MAINTAINER="pankso@slitaz.org"
8 DEPENDS="python wxWidgets"
9 BUILD_DEPENDS="python-dev wxWidgets-dev mesa-dev"
10 SOURCE="wxPython"
11 TARBALL="$SOURCE-src-$VERSION.tar.bz2"
12 WEB_SITE="http://www.wxpython.org/"
13 WGET_URL="$SF_MIRROR/wxpython/$TARBALL"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 mv wxPython/wx/tools/Editra/editra wxPython/wx/tools/Editra/Editra
20 ./configure \
21 --with-gtk=2 \
22 --with-opengl \
23 --enable-unicode \
24 --with-regex=sys \
25 --with-libpng=sys \
26 --with-libxpm=sys \
27 --with-libjpeg=sys \
28 --with-libtiff=sys \
29 --disable-precomp-headers \
30 --without-sdl \
31 $CONFIGURE_ARGS &&
32 make $MAKEFLAGS
33 cd $src/wxPython
34 patch -Np2 -i $stuff/wxpython-cairo.patch
35 python setup.py WXPORT=gtk2 UNICODE=1 build
36 python setup.py WXPORT=gtk2 UNICODE=1 install --root=$DESTDIR
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr/lib
43 cp -a $_pkg/usr/bin $fs/usr
44 cp -a $_pkg/usr/lib/python* $fs/usr/lib
45 }