wok-next annotate wxpython/receipt @ rev 18883
htop: build workaround
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Feb 12 08:48:10 2016 +0100 (2016-02-12) |
parents | 7390f8de9846 |
children | 618caf1965c4 |
rev | line source |
---|---|
pankso@5672 | 1 # SliTaz package receipt. |
pankso@5672 | 2 |
pankso@5672 | 3 PACKAGE="wxpython" |
pascal@12399 | 4 VERSION="2.8.12.1" |
pankso@5672 | 5 CATEGORY="x-window" |
pankso@5672 | 6 SHORT_DESC="GUI toolkit for the Python programming language." |
pankso@5672 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15601 | 8 LICENSE="LGPL" |
slaxemulator@11139 | 9 SOURCE="wxPython" |
slaxemulator@11139 | 10 TARBALL="$SOURCE-src-$VERSION.tar.bz2" |
pankso@5672 | 11 WEB_SITE="http://www.wxpython.org/" |
slaxemulator@11139 | 12 WGET_URL="$SF_MIRROR/wxpython/$TARBALL" |
pankso@5672 | 13 |
al@18521 | 14 DEPENDS="python wxWidgets28" |
al@18521 | 15 BUILD_DEPENDS="python-dev wxWidgets28-dev mesa-dev" |
pascal@13796 | 16 |
pankso@5672 | 17 # Rules to configure and make the package. |
pankso@5672 | 18 compile_rules() |
pankso@5672 | 19 { |
al@18086 | 20 mv wxPython/wx/tools/Editra/editra wxPython/wx/tools/Editra/Editra |
al@18086 | 21 ./configure \ |
al@18086 | 22 --with-gtk=2 \ |
al@18086 | 23 --with-opengl \ |
al@18086 | 24 --enable-unicode \ |
al@18086 | 25 --with-regex=sys \ |
al@18086 | 26 --with-libpng=sys \ |
al@18086 | 27 --with-libxpm=sys \ |
al@18086 | 28 --with-libjpeg=sys \ |
al@18086 | 29 --with-libtiff=sys \ |
al@18086 | 30 --disable-precomp-headers \ |
al@18086 | 31 --without-sdl \ |
al@18086 | 32 $CONFIGURE_ARGS && |
al@18086 | 33 make $MAKEFLAGS |
al@18086 | 34 cd $src/wxPython |
al@18086 | 35 patch -Np2 -i $stuff/wxpython-cairo.patch |
al@18086 | 36 python setup.py WXPORT=gtk2 UNICODE=1 build |
al@18086 | 37 python setup.py WXPORT=gtk2 UNICODE=1 install --root=$DESTDIR |
pankso@5672 | 38 } |
pankso@5672 | 39 |
pankso@5672 | 40 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@5672 | 41 genpkg_rules() |
pankso@5672 | 42 { |
slaxemulator@12327 | 43 mkdir -p $fs/usr/lib |
pascal@13796 | 44 cp -a $install/usr/bin $fs/usr |
pascal@13796 | 45 cp -a $install/usr/lib/python* $fs/usr/lib |
pankso@5672 | 46 } |