# 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" LICENSE="LGPL2" TARBALL="$PACKAGE-$VERSION.tar.bz2" WEB_SITE="https://www.fltk.org/" WGET_URL="subversion|http://svn.easysw.com/public/fltk/fltk/trunk" BRANCH="${VERSION#r}" 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 libglu-mesa-dev mesa mesa-dev \ subversion autoconf" # Rules to configure and make the package. compile_rules() { cd $src find -name Makefile | sed 's/Makefile/makedepend/' | xargs touch -d 197001010000 patch -p0 src/filename_list.cxx < int n = scandir(d, list, 0, (int(*)(const dirent64**,const dirent64**))sort); EOF autoconf export LD_LIBRARY_PATH="/lib:/usr/lib:$src/lib" ./configure \ --prefix=/usr \ --mandir=/usr/share/man \ --enable-shared \ --enable-xft \ $CONFIGURE_ARGS && make && cp -f fltk2-config /usr/bin && make DESTDIR=$DESTDIR install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/lib cp -a $install/usr/lib/*.so* $fs/usr/lib # Remove gl support --> fltk-2.0.x-gl rm $fs/usr/lib/libfltk2*gl* }