wok-current annotate fltk-2.0.x/receipt @ rev 13796
mesa-dev: update deps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jan 05 14:44:51 2013 +0100 (2013-01-05) |
parents | 1bc9f8436e90 |
children | a00bf44ed23d |
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" |
pankso@2794 | 8 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pankso@2794 | 9 WEB_SITE="http://www.fltk.org/" |
pascal@12762 | 10 WGET_URL="subversion|http://svn.easysw.com/public/fltk/fltk/trunk" |
pascal@12762 | 11 BRANCH="${VERSION#r}" |
pankso@2794 | 12 |
pascal@13796 | 13 DEPENDS="expat fontconfig freetype jpeg xorg-libX11 xorg-libXau xorg-libXdmcp \ |
pascal@13796 | 14 xorg-libXext xorg-libXft xorg-libXrender zlib libpng xorg-libXi \ |
pascal@13796 | 15 xorg-libXinerama gcc-lib-base" |
pascal@13796 | 16 BUILD_DEPENDS="xorg-libXft-dev libglu-mesa libglu-mesa-dev mesa mesa-dev \ |
pascal@13796 | 17 subversion autoconf" |
pascal@13796 | 18 |
pankso@2794 | 19 # Rules to configure and make the package. |
pankso@2794 | 20 compile_rules() |
pankso@2794 | 21 { |
pankso@2794 | 22 cd $src |
slaxemulator@8638 | 23 patch -p0 src/filename_list.cxx <<EOF |
slaxemulator@8638 | 24 66c66 |
slaxemulator@8638 | 25 < int n = scandir(d, list, 0, (int(*)(const void*,const void*))sort); |
slaxemulator@8638 | 26 --- |
slaxemulator@8638 | 27 > int n = scandir(d, list, 0, (int(*)(const dirent64**,const dirent64**))sort); |
slaxemulator@8638 | 28 EOF |
pascal@12762 | 29 autoconf |
pascal@12797 | 30 export LD_LIBRARY_PATH="/lib:/usr/lib:$src/lib" |
pankso@2794 | 31 ./configure \ |
pankso@2794 | 32 --prefix=/usr \ |
pankso@2794 | 33 --mandir=/usr/share/man \ |
pankso@2794 | 34 --enable-shared \ |
pankso@2794 | 35 --enable-xft \ |
pankso@2794 | 36 $CONFIGURE_ARGS && |
pankso@2794 | 37 make && |
pankso@2794 | 38 cp -f fltk2-config /usr/bin && |
pascal@13796 | 39 make DESTDIR=$DESTDIR install |
pankso@2794 | 40 } |
pankso@2794 | 41 |
pankso@2794 | 42 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@2794 | 43 genpkg_rules() |
pankso@2794 | 44 { |
pankso@2794 | 45 mkdir -p $fs/usr/lib |
pascal@13796 | 46 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pankso@2794 | 47 # Remove gl support --> fltk-2.0.x-gl |
pankso@2794 | 48 rm $fs/usr/lib/libfltk2*gl* |
pankso@2794 | 49 } |