wok-next annotate fltk/receipt @ rev 21718

Up dropbear (2020.80)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jul 29 08:19:44 2020 +0000 (2020-07-29)
parents 262dccc5e3ed
children
rev   line source
pascal@20053 1 # SliTaz package receipt v2.
pankso@627 2
pankso@627 3 PACKAGE="fltk"
Hans-G?nter@21659 4 VERSION="1.3.5"
pankso@627 5 CATEGORY="system-tools"
al@20455 6 SHORT_DESC="Fast Light Tool Kit"
Hans-G?nter@21659 7 MAINTAINER="maintainer@slitaz.org"
pascal@15004 8 LICENSE="LGPL2"
al@21123 9 WEB_SITE="https://www.fltk.org/index.php"
al@21017 10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/x/fltk.html"
al@20455 11
devl547@11260 12 TARBALL="$PACKAGE-$VERSION-source.tar.gz"
al@21123 13 WGET_URL="https://fltk.org/pub/fltk/$VERSION/$TARBALL"
pankso@627 14
Hans-G?nter@21659 15 BUILD_DEPENDS="alsa-lib-dev freetype-dev libice-dev libjpeg-turbo-dev
Hans-G?nter@21659 16 libpng-dev libsm-dev libx11-dev libxcursor-dev libxft-dev
Hans-G?nter@21659 17 libxinerama-dev mesa-dev xprop zlib-dev"
Hans-G?nter@21659 18 SPLIT="$PACKAGE-blocks $PACKAGE-checkers $PACKAGE-sudoku
Hans-G?nter@21659 19 $PACKAGE-colbrowser $PACKAGE-editor $PACKAGE-doc
Hans-G?nter@21659 20 $PACKAGE $PACKAGE-dev"
Hans-G?nter@21659 21
al@20455 22 COOKOPTS="!menus"
pankso@16357 23
Hans-G?nter@21659 24 compile_rules()
Hans-G?nter@21659 25 {
Hans-G?nter@21659 26 sed -i -e '/cat./d' \
Hans-G?nter@21659 27 documentation/Makefile
al@20455 28
Hans-G?nter@21659 29 ./configure \
Hans-G?nter@21659 30 --enable-shared \
Hans-G?nter@21659 31 --enable-xft \
Hans-G?nter@21659 32 --enable-threads \
pascal@1492 33 $CONFIGURE_ARGS &&
Hans-G?nter@21659 34 sed -i 's| -shared | -Wl,-Os,--as-needed\0|g' \
Hans-G?nter@21659 35 makeinclude &&
Hans-G?nter@21659 36 sed -i s'#"rgb.txt"#"/usr/share/fltk/rgb.txt"#' \
Hans-G?nter@21659 37 test/colbrowser.cxx &&
Hans-G?nter@21659 38
al@20455 39 make $MAKEFLAGS &&
al@21020 40 make DESTDIR=$install install || return 1
al@20455 41
al@20455 42 sed -i '/mimelnk/d' fluid/Makefile
al@20455 43 make -C fluid install-linux || return 1
al@20455 44
al@20455 45 make -C test install-linux || return 1
al@20455 46
Hans-G?nter@21659 47 for game in blocks checkers sudoku
Hans-G?nter@21659 48 do
al@20455 49 for file in \
Hans-G?nter@21659 50 /usr/bin/$game \
Hans-G?nter@21659 51 /usr/share/icons/hicolor/128x128/apps/$game.png \
Hans-G?nter@21659 52 /usr/share/icons/hicolor/32x32/apps/$game.png \
Hans-G?nter@21659 53 /usr/share/applications/$game.desktop
Hans-G?nter@21659 54 do
al@20455 55 mv $install$file $install${file/$game/fltk-$game}
Hans-G?nter@21659 56 done
al@20455 57 sed -i 's|Exec=|Exec=fltk-|; s|Icon=|Icon=fltk-|; /TryExec/d' \
al@20455 58 $install/usr/share/applications/fltk-$game.desktop
Hans-G?nter@21659 59 done
al@20455 60
Hans-G?nter@21659 61 install -m755 $src/test/colbrowser $install/usr/bin/fltk-colbrowser
Hans-G?nter@21659 62 install -m755 $src/test/editor $install/usr/bin/fltk-editor
Hans-G?nter@21659 63 install -Dm644 $src/test/rgb.txt $install/usr/share/fltk/rgb.txt
pankso@627 64 }
pankso@627 65
Hans-G?nter@21659 66 genpkg_rules()
Hans-G?nter@21659 67 {
pascal@20053 68 case $PACKAGE in
al@20455 69 fltk-blocks)
al@20455 70 copy $PACKAGE*
al@20455 71 CAT="games|FLTK Blocks game"
al@21078 72 DEPENDS="alsa-lib fontconfig libx11 libxcursor \
Hans-G?nter@21659 73 libxext libxfixes libxft libxinerama \
Hans-G?nter@21659 74 libxrender"
al@20455 75 ;;
al@20455 76 fltk-checkers)
al@20455 77 copy $PACKAGE*
al@20455 78 CAT="games|FLTK Checkers game"
al@21078 79 DEPENDS="fontconfig libx11 libxcursor libxext \
Hans-G?nter@21659 80 libxfixes libxft libxinerama libxrender"
al@20455 81 ;;
al@20455 82 fltk-sudoku)
al@20455 83 copy $PACKAGE*
al@20455 84 CAT="games|FLTK Sudoku game"
Hans-G?nter@21659 85 DEPENDS="alsa-lib fontconfig libjpeg-turbo libpng
Hans-G?nter@21659 86 libx11 libxcursor libxext libxfixes
Hans-G?nter@21659 87 libxft libxinerama libxrender"
al@20455 88 ;;
al@20455 89 fltk-colbrowser)
al@20455 90 copy $PACKAGE* rgb.txt
al@20455 91 CAT="graphics|FLTK Color browser"
al@21078 92 DEPENDS="fontconfig libx11 libxcursor libxext \
Hans-G?nter@21659 93 libxfixes libxft libxinerama libxrender"
al@20455 94 ;;
al@20455 95 fltk-editor)
al@20455 96 copy $PACKAGE*
al@20455 97 CAT="development|FLTK text editor"
al@21078 98 DEPENDS="fontconfig libx11 libxcursor libxext \
Hans-G?nter@21659 99 libxfixes libxft libxinerama libxrender"
al@20455 100 ;;
al@20455 101 fltk-doc)
al@20455 102 copy doc/
al@20455 103 CAT="development|FLTK documentation and examples"
al@20455 104 ;;
al@20455 105 fltk)
al@20455 106 copy @std @rm
al@21078 107 DEPENDS="fontconfig libjpeg-turbo libpng mesa \
Hans-G?nter@21659 108 libx11 libxcursor libxext libxfixes \
Hans-G?nter@21659 109 libxft libxinerama libxrender"
al@20455 110 ;;
al@20455 111 fltk-dev)
al@20455 112 copy @dev @rm # remove examples in doc
al@20455 113 DEPENDS="fltk"
al@20455 114 ;;
pascal@20053 115 esac
pankso@627 116 }