wok-next view python-wxpython3/receipt @ rev 21010

Small updates
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Oct 12 16:40:30 2018 +0300 (2018-10-12)
parents
children d5aab818505e
line source
1 # SliTaz package receipt v2.
3 PACKAGE="python-wxpython3"
4 VERSION="3.0.2.0"
5 CATEGORY="x-window"
6 SHORT_DESC="GUI toolkit for the Python programming language"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="LGPL"
9 WEB_SITE="https://www.wxpython.org/"
11 TARBALL="wxPython-src-$VERSION.tar.bz2"
12 WGET_URL="$SF_MIRROR/wxpython/$TARBALL"
14 BUILD_DEPENDS="python-dev wxWidgets-dev mesa-dev glu-dev libjpeg-turbo-dev \
15 tiff-dev"
16 SPLIT="$PACKAGE-dev"
18 compile_rules() {
19 export CXXFLAGS="-Wno-narrowing"
20 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 || return 1
36 cd $src/wxPython
37 python setup.py WXPORT=gtk2 UNICODE=1 build &&
38 python setup.py WXPORT=gtk2 UNICODE=1 install --root=$DESTDIR
39 }
41 genpkg_rules() {
42 case $PACKAGE in
43 python-wxpython3)
44 copy @std
45 DEPENDS="python wxWidgets" # false positive: perl
46 ;;
47 *-dev)
48 copy @dev
49 ;;
50 esac
51 }