wok annotate wxpython/receipt @ rev 25284
roundup: added BUILD_DEPENDS
author | Hans-G?nter Theisgen |
---|---|
date | Mon Jul 18 16:14:38 2022 +0100 (2022-07-18) |
parents | affba9aecc73 |
children | 73f36875e5a7 |
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 |
pascal@24313 | 17 # What is the latest version available today? |
pascal@24313 | 18 current_version() |
pascal@24313 | 19 { |
pascal@24313 | 20 wget -O - https://sourceforge.net/projects/$PACKAGE/files/$SOURCE 2>/dev/null | \ |
pascal@24313 | 21 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24313 | 22 sed '/wxPython-src/!d;s|.*wxPython-src-||;s|.tar.*||;q' |
pascal@24313 | 23 } |
pascal@24313 | 24 |
pankso@5672 | 25 # Rules to configure and make the package. |
pankso@5672 | 26 compile_rules() |
pankso@5672 | 27 { |
al@18086 | 28 mv wxPython/wx/tools/Editra/editra wxPython/wx/tools/Editra/Editra |
al@18086 | 29 ./configure \ |
al@18086 | 30 --with-gtk=2 \ |
al@18086 | 31 --with-opengl \ |
al@18086 | 32 --enable-unicode \ |
al@18086 | 33 --with-regex=sys \ |
al@18086 | 34 --with-libpng=sys \ |
al@18086 | 35 --with-libxpm=sys \ |
al@18086 | 36 --with-libjpeg=sys \ |
al@18086 | 37 --with-libtiff=sys \ |
al@18086 | 38 --disable-precomp-headers \ |
al@18086 | 39 --without-sdl \ |
al@18086 | 40 $CONFIGURE_ARGS && |
al@18086 | 41 make $MAKEFLAGS |
al@18086 | 42 cd $src/wxPython |
al@18086 | 43 patch -Np2 -i $stuff/wxpython-cairo.patch |
al@18086 | 44 python setup.py WXPORT=gtk2 UNICODE=1 build |
al@18086 | 45 python setup.py WXPORT=gtk2 UNICODE=1 install --root=$DESTDIR |
pankso@5672 | 46 } |
pankso@5672 | 47 |
pankso@5672 | 48 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@5672 | 49 genpkg_rules() |
pankso@5672 | 50 { |
slaxemulator@12327 | 51 mkdir -p $fs/usr/lib |
pascal@13796 | 52 cp -a $install/usr/bin $fs/usr |
pascal@13796 | 53 cp -a $install/usr/lib/python* $fs/usr/lib |
pankso@5672 | 54 } |