wok-next annotate fltk-2.0.x/receipt @ rev 21020
Cleaning is almost finished... I should proceed to upgrades.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Nov 02 14:15:08 2018 +0200 (2018-11-02) |
parents | c0521c689857 |
children | 5669e8b3be70 |
rev | line source |
---|---|
pascal@20161 | 1 # SliTaz package receipt v2. |
pankso@2794 | 2 |
pankso@2794 | 3 PACKAGE="fltk-2.0.x" |
slaxemulator@8638 | 4 VERSION="r7725" |
pankso@2794 | 5 CATEGORY="system-tools" |
al@21020 | 6 SHORT_DESC="Fast Light Tool Kit (provide fluid)" |
al@21020 | 7 MAINTAINER="devel@slitaz.org" |
pascal@15004 | 8 LICENSE="LGPL2" |
al@21020 | 9 WEB_SITE="http://www.fltk.org/index.php" |
al@21020 | 10 |
pankso@2794 | 11 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pascal@12762 | 12 WGET_URL="subversion|http://svn.easysw.com/public/fltk/fltk/trunk" |
pascal@12762 | 13 BRANCH="${VERSION#r}" |
pankso@2794 | 14 |
al@20502 | 15 BUILD_DEPENDS="xorg-libXft-dev glu glu-dev mesa mesa-dev \ |
psychomaniak@19907 | 16 subversion autoconf xorg-dev libpng12-dev" |
al@21020 | 17 SPLIT="$PACKAGE-dev $PACKAGE-fluid2 $PACKAGE-gl" |
pascal@13796 | 18 |
al@21020 | 19 compile_rules() { |
pascal@19904 | 20 sed -i 's/0xAA\([,}]\)/-86\1/g' src/UpBox.cxx |
pascal@15040 | 21 find -name Makefile | sed 's/Makefile/makedepend/' | xargs touch -d 197001010000 |
slaxemulator@8638 | 22 patch -p0 src/filename_list.cxx <<EOF |
slaxemulator@8638 | 23 66c66 |
slaxemulator@8638 | 24 < int n = scandir(d, list, 0, (int(*)(const void*,const void*))sort); |
slaxemulator@8638 | 25 --- |
slaxemulator@8638 | 26 > int n = scandir(d, list, 0, (int(*)(const dirent64**,const dirent64**))sort); |
slaxemulator@8638 | 27 EOF |
pascal@12762 | 28 autoconf |
pascal@12797 | 29 export LD_LIBRARY_PATH="/lib:/usr/lib:$src/lib" |
al@21020 | 30 |
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 && |
al@21020 | 39 make DESTDIR=$install install |
pankso@2794 | 40 } |
pankso@2794 | 41 |
al@21020 | 42 genpkg_rules() { |
pascal@20161 | 43 case $PACKAGE in |
al@21020 | 44 fltk-2.0.x) |
al@21020 | 45 DEPENDS="expat fontconfig freetype jpeg xorg-libX11 \ |
pascal@20161 | 46 xorg-libXau xorg-libXdmcp xorg-libXext xorg-libXft \ |
pascal@20161 | 47 xorg-libXrender zlib libpng12 xorg-libXi \ |
pascal@20161 | 48 xorg-libXinerama gcc-lib-base" |
al@21020 | 49 mkdir -p $fs/usr/lib |
al@21020 | 50 cp -a $install/usr/lib/*.so* $fs/usr/lib |
al@21020 | 51 # Remove gl support --> fltk-2.0.x-gl |
al@21020 | 52 rm $fs/usr/lib/libfltk2*gl* |
al@21020 | 53 ;; |
al@21020 | 54 *-dev) |
al@21020 | 55 DEPENDS="fltk-2.0.x" |
al@21020 | 56 mkdir -p $fs/usr/bin $fs/usr/lib |
al@21020 | 57 cp -a $install/usr/bin/fltk2-config $fs/usr/bin |
al@21020 | 58 cp -a $install/usr/lib/*.*a $fs/usr/lib |
al@21020 | 59 cp -a $install/usr/include $fs/usr |
al@21020 | 60 ;; |
al@21020 | 61 *-fluid2) |
al@21020 | 62 CAT="development|designer" |
al@21020 | 63 DEPENDS="fltk-2.0.x" |
al@21020 | 64 mkdir -p $fs/usr/bin |
al@21020 | 65 cp -a $install/usr/bin/fluid2 $fs/usr/bin |
al@21020 | 66 ;; |
al@21020 | 67 *-gl) |
al@21020 | 68 CAT="x-window|GL library" |
al@21020 | 69 DEPENDS="mesa glu expat fontconfig xorg-libXft \ |
pascal@20161 | 70 xorg-libXi xorg-libXinerama xorg-libXext gcc-lib-base" |
al@21020 | 71 mkdir -p $fs/usr/lib |
al@21020 | 72 cp -a $install/usr/lib/libfltk2*gl*.so* $fs/usr/lib |
al@21020 | 73 ;; |
pascal@20161 | 74 esac |
pankso@2794 | 75 } |