SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "fltk-2.0.x"

# SliTaz package receipt.

PACKAGE="fltk-2.0.x"
VERSION="r7725"
CATEGORY="system-tools"
SHORT_DESC="Fast Light Tool Kit (provide fluid)."
MAINTAINER="pankso@slitaz.org"
DEPENDS="expat fontconfig freetype jpeg xorg-libX11 xorg-libXau xorg-libXdmcp \
xorg-libXext xorg-libXft xorg-libXrender zlib libpng xorg-libXi \
xorg-libXinerama gcc-lib-base"
BUILD_DEPENDS="xorg-libXft-dev libglu-mesa mesa mesa-dev"
TARBALL="$PACKAGE-$VERSION.tar.bz2"
WEB_SITE="http://www.fltk.org/"
WGET_URL="http://ftp.easysw.com/pub/fltk/snapshots/$TARBALL"

# Rules to configure and make the package.
compile_rules()
{
    cd $src
      patch -p0 src/filename_list.cxx <<EOF
66c66
<   int n = scandir(d, list, 0, (int(*)(const void*,const void*))sort);
---
>   int n = scandir(d, list, 0, (int(*)(const dirent64**,const dirent64**))sort);
EOF

    ./configure \
        --prefix=/usr \
        --mandir=/usr/share/man \
        --enable-shared \
        --enable-xft \
        $CONFIGURE_ARGS &&
    make &&
    cp -f fltk2-config /usr/bin &&
    make DESTDIR=$PWD/_pkg install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/lib
    cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
    # Remove gl support --> fltk-2.0.x-gl
    rm $fs/usr/lib/libfltk2*gl*
}
3382 packages and 430813 files in stable database (Mon Mar 4 17:53:49 2019)