wok-next annotate fltk/receipt @ rev 20454
Choose between libpng16 and libpng12
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Feb 28 17:32:31 2018 +0200 (2018-02-28) |
parents | a0975a7b2af2 |
children | 6d173c4b9591 |
rev | line source |
---|---|
pascal@20053 | 1 # SliTaz package receipt v2. |
pankso@627 | 2 |
pankso@627 | 3 PACKAGE="fltk" |
pascal@19441 | 4 VERSION="1.3.3" |
pankso@627 | 5 CATEGORY="system-tools" |
pankso@627 | 6 SHORT_DESC="Fast Light Tool Kit (provide fluid)." |
pankso@627 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15004 | 8 LICENSE="LGPL2" |
devl547@11260 | 9 TARBALL="$PACKAGE-$VERSION-source.tar.gz" |
pankso@627 | 10 WEB_SITE="http://www.fltk.org/" |
pankso@16084 | 11 WGET_URL="http://fltk.org/pub/fltk/$VERSION/$TARBALL" |
pankso@16357 | 12 HOST_ARCH="i486 arm" |
pankso@627 | 13 |
al@20454 | 14 BUILD_DEPENDS="jpeg-dev libpng16-dev libglu-mesa libglu-mesa-dev mesa mesa-dev \ |
pascal@20165 | 15 xorg-libXinerama-dev xorg-libXft-dev \ |
pascal@20165 | 16 xorg-libXft fontconfig xorg-libX11-dev xorg-libXinerama \ |
pascal@20165 | 17 xorg-libXfixes" |
pascal@20165 | 18 SPLIT="fltk-dev fltk-doc fltk-blocks fltk-checkers fltk-colbrowser fltk-editor \ |
pascal@20165 | 19 fltk-sudoku" |
pankso@16357 | 20 |
pankso@16085 | 21 # Handle cross compilation. |
pankso@16084 | 22 case "$ARCH" in |
pascal@16364 | 23 #i?86) |
pascal@16364 | 24 # ARCH_ARGS="--with-archflags=i386" ;; |
pankso@16357 | 25 arm) |
al@20454 | 26 BUILD_DEPENDS="jpeg-dev libpng16-dev xorg-libXft-dev" |
pankso@16358 | 27 ARCH_ARGS="--x-includes=/cross/$ARCH/sysroot/usr/include \ |
pankso@16358 | 28 --x-libraries=/cross/$ARCH/sysroot/usr/lib" ;; |
pankso@16084 | 29 esac |
pankso@16084 | 30 |
pankso@627 | 31 # Rules to configure and make the package. |
pankso@627 | 32 compile_rules() |
pankso@627 | 33 { |
pascal@19447 | 34 patch -p0 < $stuff/Fl_XFont_On_Demand.patch |
pankso@16357 | 35 ./configure ${ARCH_ARGS} \ |
pankso@627 | 36 --enable-shared \ |
pankso@627 | 37 --enable-xft \ |
slaxemulator@6557 | 38 --enable-threads \ |
pascal@1492 | 39 $CONFIGURE_ARGS && |
pankso@16357 | 40 make lib $MAKEFLAGS && |
pascal@20165 | 41 make DESTDIR=$DESTDIR install && |
pascal@20165 | 42 cd test |
pascal@20165 | 43 [ -x ./blocks ] || make blocks |
pascal@20165 | 44 [ -x ./checkers ] || make checkers |
pascal@20165 | 45 rm -f colbrowser |
pascal@20165 | 46 sed -i s'#"rgb.txt"#"/usr/share/fltk/rgb.txt"#' colbrowser.cxx && |
pascal@20165 | 47 make colbrowser |
pascal@20165 | 48 [ -x ./editor ] || make editor |
pascal@20165 | 49 [ -x ./sudoku ] || make sudoku |
pankso@627 | 50 } |
pankso@627 | 51 |
pankso@627 | 52 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@627 | 53 genpkg_rules() |
pankso@627 | 54 { |
pascal@20053 | 55 case $PACKAGE in |
pascal@20053 | 56 fltk) |
pascal@20053 | 57 # Handle SliTaz arch |
pascal@20053 | 58 case "$SLITAZ_ARCH" in |
al@20454 | 59 arm*) DEPENDS="expat fontconfig freetype jpeg libpng16 \ |
pascal@20053 | 60 xorg-libXft" ;; |
al@20454 | 61 *) DEPENDS="expat fontconfig freetype libpng16 jpeg xorg-libX11 \ |
pascal@20053 | 62 xorg-libXau xorg-libXdmcp xorg-libXext xorg-libXft \ |
pascal@20053 | 63 xorg-libXrender zlib gcc-lib-base mesa libglu-mesa" |
pascal@20053 | 64 esac |
pascal@20053 | 65 mkdir -p $fs/usr/bin $fs/usr/lib $fs/usr/share/pixmaps |
pascal@20053 | 66 cp -a $install/usr/bin/fluid $fs/usr/bin |
pascal@20053 | 67 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pascal@20053 | 68 cp $src/fluid/icons/fluid-32.png $fs/usr/share/pixmaps/fluid.png |
pascal@20053 | 69 ;; |
pascal@20053 | 70 fltk-dev) |
pascal@20053 | 71 CAT="development|Fast Light Tool Kit devel files." |
pascal@20172 | 72 DEPENDS="fltk xorg-libX11-dev xorg-libXinerama" |
pascal@20053 | 73 mkdir -p $fs/usr/bin $fs/usr/lib |
pascal@20053 | 74 cp -a $install/usr/bin/fltk-config $fs/usr/bin |
pascal@20053 | 75 cp -a $install/usr/lib/*.*a $fs/usr/lib |
pascal@20053 | 76 cp -a $install/usr/include $fs/usr |
pascal@20053 | 77 ;; |
pascal@20053 | 78 fltk-doc) |
pascal@20053 | 79 CAT="development|Fast Light Tool Kit documentation and examples." |
pascal@20053 | 80 mkdir -p $fs/usr/share |
pascal@20053 | 81 cp -a $install/usr/share/doc $fs/usr/share |
pascal@20053 | 82 ;; |
pascal@20165 | 83 fltk-blocks) |
pascal@20165 | 84 CAT="games|FLTK Blocks game." |
pascal@20165 | 85 DEPENDS="fltk" |
pascal@20167 | 86 mkdir -p $fs/usr/games $fs/usr/share/pixmaps \ |
pascal@20167 | 87 $fs/usr/share/applications |
pascal@20165 | 88 cp -a ${src}/test/blocks $fs/usr/games/$PACKAGE |
pascal@20167 | 89 cp ${src}/test/desktop/blocks-32.png \ |
pascal@20165 | 90 $fs/usr/share/pixmaps/$PACKAGE.png |
pascal@20167 | 91 cp $stuff/$PACKAGE.desktop $fs/usr/share/applications |
pascal@20165 | 92 ;; |
pascal@20165 | 93 fltk-checkers) |
pascal@20165 | 94 CAT="games|FLTK Checkers game." |
pascal@20165 | 95 DEPENDS="fltk" |
pascal@20167 | 96 mkdir -p $fs/usr/games $fs/usr/share/pixmaps \ |
pascal@20167 | 97 $fs/usr/share/applications |
pascal@20165 | 98 cp -a ${src}/test/checkers $fs/usr/games/$PACKAGE |
pascal@20167 | 99 cp ${src}/test/desktop/checkers-32.png \ |
pascal@20165 | 100 $fs/usr/share/pixmaps/$PACKAGE.png |
pascal@20167 | 101 cp $stuff/$PACKAGE.desktop $fs/usr/share/applications |
pascal@20165 | 102 ;; |
pascal@20165 | 103 fltk-colbrowser) |
pascal@20165 | 104 CAT="graphics|FLT Color browser." |
pascal@20165 | 105 DEPENDS="fltk xorg-libXinerama" |
pascal@20167 | 106 mkdir -p $fs/usr/bin $fs/usr/share/fltk \ |
pascal@20167 | 107 $fs/usr/share/applications |
pascal@20165 | 108 cp -a ${src}/test/colbrowser ${fs}/usr/bin/$PACKAGE |
pascal@20165 | 109 cp ${src}/test/rgb.txt ${fs}/usr/share/fltk |
pascal@20167 | 110 cp $stuff/$PACKAGE.desktop $fs/usr/share/applications |
pascal@20165 | 111 ;; |
pascal@20165 | 112 fltk-editor) |
pascal@20165 | 113 CAT="development|Fast Light Tool Kit text editor." |
pascal@20165 | 114 DEPENDS="fltk" |
pascal@20167 | 115 mkdir -p $fs/usr/bin $fs/usr/share/applications |
pascal@20165 | 116 cp -a ${src}/test/editor $fs/usr/bin/$PACKAGE |
pascal@20167 | 117 cp $stuff/$PACKAGE.desktop $fs/usr/share/applications |
pascal@20165 | 118 ;; |
pascal@20165 | 119 fltk-sudoku) |
pascal@20165 | 120 CAT="games|FLTK Sudoku game." |
pascal@20165 | 121 DEPENDS="fltk" |
pascal@20167 | 122 mkdir -p $fs/usr/games $fs/usr/share/pixmaps \ |
pascal@20167 | 123 $fs/usr/share/applications |
pascal@20165 | 124 cp -a ${src}/test/sudoku $fs/usr/games/$PACKAGE |
pascal@20167 | 125 cp ${src}/test/desktop/sudoku-32.png \ |
pascal@20165 | 126 $fs/usr/share/pixmaps/$PACKAGE.png |
pascal@20167 | 127 cp $stuff/$PACKAGE.desktop $fs/usr/share/applications |
pascal@20165 | 128 ;; |
pascal@20053 | 129 esac |
pankso@627 | 130 } |