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