wok-next view wxpython/receipt @ rev 20730
glib: up (2.56.1) with static libs and Python2
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue May 29 15:17:41 2018 +0300 (2018-05-29) |
parents | c0521c689857 |
children | d5aab818505e |
line source
1 # SliTaz package receipt v2.
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 WEB_SITE="http://www.wxpython.org/"
11 TARBALL="wxPython-src-$VERSION.tar.bz2"
12 WGET_URL="$SF_MIRROR/wxpython/$TARBALL"
14 BUILD_DEPENDS="python-dev wxWidgets28-dev mesa-dev glu-dev"
15 SPLIT="wxpython-dev"
17 compile_rules() {
18 export CXXFLAGS="-Wno-narrowing"
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 python setup.py WXPORT=gtk2 UNICODE=1 build
35 python setup.py WXPORT=gtk2 UNICODE=1 install --root=$DESTDIR
36 }
38 genpkg_rules() {
39 case $PACKAGE in
40 wxpython)
41 mkdir -p $fs/usr/lib
42 cp -a $install/usr/bin $fs/usr
43 cp -a $install/usr/lib/python* $fs/usr/lib
44 DEPENDS="python wxWidgets28"
45 ;;
46 *-dev)
47 mkdir -p $fs/usr
48 cp -a $install/usr/include $fs/usr
49 ;;
50 esac
51 }