# SliTaz package receipt. PACKAGE="wxWidgets28" VERSION="2.8.12.1" CATEGORY="x-window" SHORT_DESC="Cross-platform GUI Library (oldstable version)" MAINTAINER="pankso@slitaz.org" LICENSE="LGPL" TARBALL="wxwidgets2.8_$VERSION.orig.tar.gz" WEB_SITE="https://www.wxwidgets.org/" WGET_URL="$SF_MIRROR/project/wxpython/wxPython/$VERSION/$TARBALL" DEPENDS="glib glibc-base gcc-lib-base libgio pkg-config expat zlib atk \ gtk+ cairo fontconfig freetype jpeg libpng tiff pango pixman util-linux-uuid \ xorg-libSM xorg-libICE xorg-libX11 xorg-libXau xorg-libXcomposite \ xorg-libXcursor xorg-libXdamage xorg-libXdmcp xorg-libXext libglu-mesa \ xorg-libXfixes xorg-libXinerama xorg-libXrender xorg-libXxf86vm mesa" BUILD_DEPENDS="gtk+-dev expat-dev zlib-dev \ xorg-dev xorg-xineramaproto libglu-mesa mesa-dev libpng-dev tiff-dev \ jpeg-dev xorg-libXpm-dev patch" # What is the latest version available today? current_version() { wget -O - https://sourceforge.net/projects/wxwindows/files/ 2>/dev/null | \ sed '/2.8/!d;/scope="row/!d;s|.*href="|"https://sourceforge.net|' | sort -Vr | sed q | xargs wget -O - 2>/dev/null | \ sed '/wxWidgets-2.8/!d;/tar..z/!d;s|.*wxWidgets-||;s|.tar.*||;s|-.*||;q' } # Rules to configure and make the package. compile_rules() { sed -i 's|/opt/wx/current/bin/||' wxPython/wx/build/build_options.py ./configure \ --enable-shared \ --enable-unicode \ --with-opengl \ --with-libpng=sys \ --with-libxpm=sys \ --with-libjpeg=sys \ --with-libtiff=sys \ --enable-graphics_ctx \ --enable-unicode \ $CONFIGURE_ARGS && make && make DESTDIR=$DESTDIR install && cd $src/contrib && { make && make DESTDIR=$DESTDIR install } 2>&1 | sed 's/h: No such/h: no such/' } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr # Copy libs and contrib libs. cp -a $install/usr/lib/ $fs/usr/ # Remove devel files. rm -rf $fs/usr/lib/wx/include }