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