wok-next view wxpython/receipt @ rev 20153

syslinux: receipt v2
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Nov 01 15:14:00 2017 +0100 (2017-11-01)
parents 618caf1965c4
children 4396aed7eb01
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 LICENSE="LGPL"
9 SOURCE="wxPython"
10 TARBALL="$SOURCE-src-$VERSION.tar.bz2"
11 WEB_SITE="http://www.wxpython.org/"
12 WGET_URL="$SF_MIRROR/wxpython/$TARBALL"
14 DEPENDS="python wxWidgets28"
15 BUILD_DEPENDS="python-dev wxWidgets28-dev mesa-dev libglu-mesa-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 export CXXFLAGS="-Wno-narrowing"
21 mv wxPython/wx/tools/Editra/editra wxPython/wx/tools/Editra/Editra
22 ./configure \
23 --with-gtk=2 \
24 --with-opengl \
25 --enable-unicode \
26 --with-regex=sys \
27 --with-libpng=sys \
28 --with-libxpm=sys \
29 --with-libjpeg=sys \
30 --with-libtiff=sys \
31 --disable-precomp-headers \
32 --without-sdl \
33 $CONFIGURE_ARGS &&
34 make $MAKEFLAGS
35 cd $src/wxPython
36 patch -Np2 -i $stuff/wxpython-cairo.patch
37 python setup.py WXPORT=gtk2 UNICODE=1 build
38 python setup.py WXPORT=gtk2 UNICODE=1 install --root=$DESTDIR
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p $fs/usr/lib
45 cp -a $install/usr/bin $fs/usr
46 cp -a $install/usr/lib/python* $fs/usr/lib
47 }