SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "wxWidgets"

# SliTaz package receipt.

PACKAGE="wxWidgets"
VERSION="3.2.0"
CATEGORY="x-window"
SHORT_DESC="Cross-platform GUI Library."
MAINTAINER="pankso@slitaz.org"
LICENSE="LGPL"
WEB_SITE="https://www.wxwidgets.org/"

TARBALL="$PACKAGE-$VERSION.tar.bz2"
WGET_URL="https://github.com/$PACKAGE/$PACKAGE/releases/download/v$VERSION/$TARBALL"

SUGGESTED="wxWidgets-lang"
DEPENDS="atk cairo expat fontconfig freetype gcc-lib-base glib glibc-base gtk+
    jpeg libgio libglu-mesa libpng mesa pango pixman pkg-config tiff
    util-linux-uuid xorg-libICE xorg-libSM xorg-libX11 xorg-libXau
    xorg-libXcomposite xorg-libXcursor xorg-libXdamage xorg-libXdmcp
    xorg-libXext xorg-libXfixes xorg-libXinerama xorg-libXrender
    xorg-libXxf86vm zlib"
BUILD_DEPENDS="expat-dev gtk+-dev glib-dev jpeg-dev libglu-mesa-dev libpng-dev
    mesa-dev tiff-dev xorg-dev xorg-libXpm-dev xorg-xineramaproto zlib-dev"

HOST_ARCH="i486 x86_64"

current_version()
{
    wget -O - ${WGET_URL%/down*} 2>/dev/null | \
    sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;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    \
        --disable-gtktest    \
        --with-gtk=2        \
        --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 libraries.
    cp -a $install/usr/lib    $fs/usr

    # Remove development files.
    rm -rf            $fs/usr/lib/wx/include
}
6063 packages and 233209 files in current database (Sat Dec 21 00:00:03 2024)