wok-next annotate fltk/receipt @ rev 21157
Update some WEB_SITE
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Feb 04 11:54:13 2019 +0100 (2019-02-04) |
parents | 5669e8b3be70 |
children | fcaec0365357 |
rev | line source |
---|---|
pascal@20053 | 1 # SliTaz package receipt v2. |
pankso@627 | 2 |
pankso@627 | 3 PACKAGE="fltk" |
al@20455 | 4 VERSION="1.3.4" |
pankso@627 | 5 CATEGORY="system-tools" |
al@20455 | 6 SHORT_DESC="Fast Light Tool Kit" |
al@21020 | 7 MAINTAINER="devel@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 |
al@21078 | 15 BUILD_DEPENDS="alsa-lib-dev libjpeg-turbo-dev zlib-dev libpng-dev \ |
al@21078 | 16 libx11-dev libice-dev libsm-dev mesa-dev libxinerama-dev \ |
al@21078 | 17 freetype-dev libxft-dev libxcursor-dev xprop" |
al@21020 | 18 SPLIT="$PACKAGE-blocks $PACKAGE-checkers $PACKAGE-sudoku $PACKAGE-colbrowser \ |
al@21020 | 19 $PACKAGE-editor $PACKAGE-doc $PACKAGE $PACKAGE-dev" |
al@20455 | 20 COOKOPTS="!menus" |
pankso@16357 | 21 |
al@20455 | 22 compile_rules() { |
al@20455 | 23 sed -i -e '/cat./d' documentation/Makefile |
al@20455 | 24 |
al@20455 | 25 ./configure \ |
pankso@627 | 26 --enable-shared \ |
pankso@627 | 27 --enable-xft \ |
slaxemulator@6557 | 28 --enable-threads \ |
pascal@1492 | 29 $CONFIGURE_ARGS && |
al@20455 | 30 sed -i 's| -shared | -Wl,-Os,--as-needed\0|g' makeinclude && |
al@20455 | 31 sed -i s'#"rgb.txt"#"/usr/share/fltk/rgb.txt"#' test/colbrowser.cxx && |
al@20455 | 32 make $MAKEFLAGS && |
al@21020 | 33 make DESTDIR=$install install || return 1 |
al@20455 | 34 |
al@20455 | 35 sed -i '/mimelnk/d' fluid/Makefile |
al@20455 | 36 make -C fluid install-linux || return 1 |
al@20455 | 37 |
al@20455 | 38 make -C test install-linux || return 1 |
al@20455 | 39 |
al@20455 | 40 for game in blocks checkers sudoku; do |
al@20455 | 41 for file in \ |
al@20455 | 42 /usr/bin/$game \ |
al@20455 | 43 /usr/share/icons/hicolor/128x128/apps/$game.png \ |
al@20455 | 44 /usr/share/icons/hicolor/32x32/apps/$game.png \ |
al@20455 | 45 /usr/share/applications/$game.desktop; do |
al@20455 | 46 mv $install$file $install${file/$game/fltk-$game} |
al@20455 | 47 done |
al@20455 | 48 sed -i 's|Exec=|Exec=fltk-|; s|Icon=|Icon=fltk-|; /TryExec/d' \ |
al@20455 | 49 $install/usr/share/applications/fltk-$game.desktop |
al@20455 | 50 done |
al@20455 | 51 |
al@20455 | 52 install -m755 $src/test/colbrowser $install/usr/bin/fltk-colbrowser |
al@20455 | 53 install -m755 $src/test/editor $install/usr/bin/fltk-editor |
al@20455 | 54 install -Dm644 $src/test/rgb.txt $install/usr/share/fltk/rgb.txt |
pankso@627 | 55 } |
pankso@627 | 56 |
al@20455 | 57 genpkg_rules() { |
pascal@20053 | 58 case $PACKAGE in |
al@20455 | 59 fltk-blocks) |
al@20455 | 60 copy $PACKAGE* |
al@20455 | 61 CAT="games|FLTK Blocks game" |
al@21078 | 62 DEPENDS="alsa-lib fontconfig libx11 libxcursor \ |
al@21078 | 63 libxext libxfixes libxft libxinerama \ |
al@21078 | 64 libxrender" |
al@20455 | 65 ;; |
al@20455 | 66 fltk-checkers) |
al@20455 | 67 copy $PACKAGE* |
al@20455 | 68 CAT="games|FLTK Checkers game" |
al@21078 | 69 DEPENDS="fontconfig libx11 libxcursor libxext \ |
al@21078 | 70 libxfixes libxft libxinerama libxrender" |
al@20455 | 71 ;; |
al@20455 | 72 fltk-sudoku) |
al@20455 | 73 copy $PACKAGE* |
al@20455 | 74 CAT="games|FLTK Sudoku game" |
al@21078 | 75 DEPENDS="alsa-lib fontconfig libjpeg-turbo libpng libx11 \ |
al@21078 | 76 libxcursor libxext libxfixes libxft \ |
al@21078 | 77 libxinerama libxrender" |
al@20455 | 78 ;; |
al@20455 | 79 fltk-colbrowser) |
al@20455 | 80 copy $PACKAGE* rgb.txt |
al@20455 | 81 CAT="graphics|FLTK Color browser" |
al@21078 | 82 DEPENDS="fontconfig libx11 libxcursor libxext \ |
al@21078 | 83 libxfixes libxft libxinerama libxrender" |
al@20455 | 84 ;; |
al@20455 | 85 fltk-editor) |
al@20455 | 86 copy $PACKAGE* |
al@20455 | 87 CAT="development|FLTK text editor" |
al@21078 | 88 DEPENDS="fontconfig libx11 libxcursor libxext \ |
al@21078 | 89 libxfixes libxft libxinerama libxrender" |
al@20455 | 90 ;; |
al@20455 | 91 fltk-doc) |
al@20455 | 92 copy doc/ |
al@20455 | 93 CAT="development|FLTK documentation and examples" |
al@20455 | 94 ;; |
al@20455 | 95 fltk) |
al@20455 | 96 copy @std @rm |
al@21078 | 97 DEPENDS="fontconfig libjpeg-turbo libpng mesa \ |
al@21078 | 98 libx11 libxcursor libxext libxfixes \ |
al@21078 | 99 libxft libxinerama libxrender" |
al@20455 | 100 ;; |
al@20455 | 101 fltk-dev) |
al@20455 | 102 copy @dev @rm # remove examples in doc |
al@20455 | 103 DEPENDS="fltk" |
al@20455 | 104 ;; |
pascal@20053 | 105 esac |
pankso@627 | 106 } |