wok-current view wxWidgets28/receipt @ rev 25685

Add checkspace / fetchall feature for tazpkg
author Stanislas Leduc <shann@slitaz.org>
date Thu Mar 14 20:28:39 2024 +0000 (8 months ago)
parents a41dbb6ded61
children
line source
1 # SliTaz package receipt.
3 PACKAGE="wxWidgets28"
4 VERSION="2.8.12.1"
5 CATEGORY="x-window"
6 SHORT_DESC="Cross-platform GUI Library (oldstable version)"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="LGPL"
9 TARBALL="wxwidgets2.8_$VERSION.orig.tar.gz"
10 WEB_SITE="https://www.wxwidgets.org/"
11 WGET_URL="$SF_MIRROR/project/wxpython/wxPython/$VERSION/$TARBALL"
13 DEPENDS="glib glibc-base gcc-lib-base libgio pkg-config expat zlib atk \
14 gtk+ cairo fontconfig freetype jpeg libpng tiff pango pixman util-linux-uuid \
15 xorg-libSM xorg-libICE xorg-libX11 xorg-libXau xorg-libXcomposite \
16 xorg-libXcursor xorg-libXdamage xorg-libXdmcp xorg-libXext libglu-mesa \
17 xorg-libXfixes xorg-libXinerama xorg-libXrender xorg-libXxf86vm mesa"
18 BUILD_DEPENDS="gtk+-dev expat-dev zlib-dev \
19 xorg-dev xorg-xineramaproto libglu-mesa mesa-dev libpng-dev tiff-dev \
20 jpeg-dev xorg-libXpm-dev patch"
22 # What is the latest version available today?
23 current_version()
24 {
25 wget -O - https://sourceforge.net/projects/wxwindows/files/ 2>/dev/null | \
26 sed '/2.8/!d;/scope="row/!d;s|.*href="|"https://sourceforge.net|' | sort -Vr | sed q | xargs wget -O - 2>/dev/null | \
27 sed '/wxWidgets-2.8/!d;/tar..z/!d;s|.*wxWidgets-||;s|.tar.*||;s|-.*||;q'
28 }
30 # Rules to configure and make the package.
31 compile_rules()
32 {
33 sed -i 's|/opt/wx/current/bin/||' wxPython/wx/build/build_options.py
34 ./configure \
35 --enable-shared \
36 --enable-unicode \
37 --with-opengl \
38 --with-libpng=sys \
39 --with-libxpm=sys \
40 --with-libjpeg=sys \
41 --with-libtiff=sys \
42 --enable-graphics_ctx \
43 --enable-unicode \
44 $CONFIGURE_ARGS &&
45 make &&
46 make DESTDIR=$DESTDIR install &&
47 cd $src/contrib &&
48 {
49 make &&
50 make DESTDIR=$DESTDIR install
51 } 2>&1 | sed 's/h: No such/h: no such/'
52 }
54 # Rules to gen a SliTaz package suitable for Tazpkg.
55 genpkg_rules()
56 {
57 mkdir -p $fs/usr
58 # Copy libs and contrib libs.
59 cp -a $install/usr/lib/ $fs/usr/
60 # Remove devel files.
61 rm -rf $fs/usr/lib/wx/include
62 }