wok-next view python-wxpython3/receipt @ rev 21031
Random updates
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Nov 03 15:42:26 2018 +0200 (2018-11-03) |
parents | 270c09f6a958 |
children | 0f7ebcdec85d |
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="devel@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 -B setup.py WXPORT=gtk2 UNICODE=1 build &&
38 python -B setup.py WXPORT=gtk2 UNICODE=1 install --root=$install
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 }