wok-current view wxWidgets/receipt @ rev 25731

Merge wok for both arch and few updates
author Stanislas Leduc <shann@slitaz.org>
date Thu Dec 05 08:28:03 2024 +0000 (2 months ago)
parents c848b3839e4a
children
line source
1 # SliTaz package receipt.
3 PACKAGE="wxWidgets"
4 VERSION="3.2.0"
5 CATEGORY="x-window"
6 SHORT_DESC="Cross-platform GUI Library."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="LGPL"
9 WEB_SITE="https://www.wxwidgets.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="https://github.com/$PACKAGE/$PACKAGE/releases/download/v$VERSION/$TARBALL"
14 SUGGESTED="wxWidgets-lang"
15 DEPENDS="atk cairo expat fontconfig freetype gcc-lib-base glib glibc-base gtk+
16 jpeg libgio libglu-mesa libpng mesa pango pixman pkg-config tiff
17 util-linux-uuid xorg-libICE xorg-libSM xorg-libX11 xorg-libXau
18 xorg-libXcomposite xorg-libXcursor xorg-libXdamage xorg-libXdmcp
19 xorg-libXext xorg-libXfixes xorg-libXinerama xorg-libXrender
20 xorg-libXxf86vm zlib"
21 BUILD_DEPENDS="expat-dev gtk+-dev glib-dev jpeg-dev libglu-mesa-dev libpng-dev
22 mesa-dev tiff-dev xorg-dev xorg-libXpm-dev xorg-xineramaproto zlib-dev"
24 HOST_ARCH="i486 x86_64"
26 current_version()
27 {
28 wget -O - ${WGET_URL%/down*} 2>/dev/null | \
29 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
30 }
32 # Rules to configure and make the package.
33 compile_rules()
34 {
35 # sed -i 's|/opt/wx/current/bin/||' wxPython/wx/build/build_options.py
37 ./configure \
38 --enable-shared \
39 --enable-unicode \
40 --disable-gtktest \
41 --with-gtk=2 \
42 --with-opengl \
43 --with-libpng=sys \
44 --with-libxpm=sys \
45 --with-libjpeg=sys \
46 --with-libtiff=sys \
47 --enable-graphics_ctx \
48 --enable-unicode \
49 $CONFIGURE_ARGS &&
50 make &&
51 make DESTDIR=$DESTDIR install
52 # cd $src/contrib &&
53 # {
54 # make &&
55 # make DESTDIR=$DESTDIR install
56 # } 2>&1 | sed 's/h: No such/h: no such/'
57 }
59 # Rules to gen a SliTaz package suitable for Tazpkg.
60 genpkg_rules()
61 {
62 mkdir -p $fs/usr
64 # Copy libraries.
65 cp -a $install/usr/lib $fs/usr
67 # Remove development files.
68 rm -rf $fs/usr/lib/wx/include
69 }