wok-next annotate fltk-2.0.x/receipt @ rev 19907

compiz-core,fox,fox14,fltk-2.0.x,wxWidgets*:update bdeps
author Xander Ziiryanoff <psychomaniak@xakep.ru>
date Thu Oct 12 22:32:02 2017 +0200 (2017-10-12)
parents 829dd068a247
children a4aa43fbd3eb
rev   line source
pankso@2794 1 # SliTaz package receipt.
pankso@2794 2
pankso@2794 3 PACKAGE="fltk-2.0.x"
slaxemulator@8638 4 VERSION="r7725"
pankso@2794 5 CATEGORY="system-tools"
pankso@2794 6 SHORT_DESC="Fast Light Tool Kit (provide fluid)."
pankso@2794 7 MAINTAINER="pankso@slitaz.org"
pascal@15004 8 LICENSE="LGPL2"
pankso@2794 9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pankso@2794 10 WEB_SITE="http://www.fltk.org/"
pascal@12762 11 WGET_URL="subversion|http://svn.easysw.com/public/fltk/fltk/trunk"
pascal@12762 12 BRANCH="${VERSION#r}"
pankso@2794 13
pascal@13796 14 DEPENDS="expat fontconfig freetype jpeg xorg-libX11 xorg-libXau xorg-libXdmcp \
psychomaniak@19907 15 xorg-libXext xorg-libXft xorg-libXrender zlib libpng12 xorg-libXi \
pascal@13796 16 xorg-libXinerama gcc-lib-base"
pascal@13796 17 BUILD_DEPENDS="xorg-libXft-dev libglu-mesa libglu-mesa-dev mesa mesa-dev \
psychomaniak@19907 18 subversion autoconf xorg-dev libpng12-dev"
pascal@13796 19
pankso@2794 20 # Rules to configure and make the package.
pankso@2794 21 compile_rules()
pankso@2794 22 {
pascal@19904 23 sed -i 's/0xAA\([,}]\)/-86\1/g' src/UpBox.cxx
pascal@15040 24 find -name Makefile | sed 's/Makefile/makedepend/' | xargs touch -d 197001010000
slaxemulator@8638 25 patch -p0 src/filename_list.cxx <<EOF
slaxemulator@8638 26 66c66
slaxemulator@8638 27 < int n = scandir(d, list, 0, (int(*)(const void*,const void*))sort);
slaxemulator@8638 28 ---
slaxemulator@8638 29 > int n = scandir(d, list, 0, (int(*)(const dirent64**,const dirent64**))sort);
slaxemulator@8638 30 EOF
pascal@12762 31 autoconf
pascal@12797 32 export LD_LIBRARY_PATH="/lib:/usr/lib:$src/lib"
pankso@2794 33 ./configure \
pankso@2794 34 --prefix=/usr \
pankso@2794 35 --mandir=/usr/share/man \
pankso@2794 36 --enable-shared \
pankso@2794 37 --enable-xft \
pankso@2794 38 $CONFIGURE_ARGS &&
pankso@2794 39 make &&
pankso@2794 40 cp -f fltk2-config /usr/bin &&
pascal@13796 41 make DESTDIR=$DESTDIR install
pankso@2794 42 }
pankso@2794 43
pankso@2794 44 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@2794 45 genpkg_rules()
pankso@2794 46 {
pankso@2794 47 mkdir -p $fs/usr/lib
pascal@13796 48 cp -a $install/usr/lib/*.so* $fs/usr/lib
pankso@2794 49 # Remove gl support --> fltk-2.0.x-gl
pankso@2794 50 rm $fs/usr/lib/libfltk2*gl*
pankso@2794 51 }