wok-next annotate links/receipt @ rev 20738

Up scons (3.0.1); add scons2 (2.5.1)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue May 29 21:13:51 2018 +0300 (2018-05-29)
parents 757d032c55c7
children f48456621a9d
rev   line source
al@20534 1 # SliTaz package receipt v2.
pankso@26 2
pankso@26 3 PACKAGE="links"
psychomaniak@19553 4 VERSION="2.14"
pankso@203 5 CATEGORY="network"
al@20621 6 SHORT_DESC="Light and fast web browser"
pankso@26 7 MAINTAINER="pankso@slitaz.org"
pascal@15002 8 LICENSE="GPL2"
al@20534 9 WEB_SITE="http://links.twibright.com/"
al@20621 10 LFS="http://www.linuxfromscratch.org/blfs/view/stable/basicnet/links.html"
al@20534 11
al@20621 12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pascal@15002 13 WGET_URL="http://links.twibright.com/download/$TARBALL"
pascal@15002 14
al@20621 15 BUILD_DEPENDS="gpm-dev openssl-dev zlib-dev bzip2-dev xz-dev xorg-libX11-dev \
al@20621 16 xorg-libXt-dev libpng16-dev libjpeg-turbo-dev tiff-dev directfb-dev"
al@20621 17 SPLIT="links-dfb:dfb links-cli:cli"
pankso@16097 18
pankso@16097 19 case "$ARCH" in
pankso@16097 20 arm*)
al@20534 21 VERSION="2.7"
al@20534 22 TARBALL="$PACKAGE-$VERSION.tar.gz"
al@20534 23 WGET_URL="http://links.twibright.com/download/$TARBALL";;
al@20534 24 esac
al@20534 25 case "$SLITAZ_ARCH" in
al@20534 26 arm*) VERSION="2.7";;
pankso@16097 27 esac
pankso@16097 28
al@20534 29 compile_rules() {
al@20621 30 case $SET in
al@20621 31 '') SET_ARGS='--enable-graphics --without-directfb --with-x';;
al@20621 32 dfb) SET_ARGS='--enable-graphics --with-directfb --without-x';;
al@20621 33 cli) SET_ARGS='--disable-graphics';;
al@20621 34 esac
al@20621 35
pankso@553 36 ./configure \
al@20621 37 $SET_ARGS \
pascal@2475 38 $CONFIGURE_ARGS &&
pascal@2475 39 make &&
al@20534 40 make DESTDIR=$DESTDIR install || return 1
al@20534 41
al@20534 42 install -Dm644 $src/graphics/links.xpm $install/usr/share/pixmaps/links.xpm
al@20534 43 install -Dm644 $stuff/links.html $install/usr/share/webhome/links.html
pankso@26 44 }
pankso@26 45
al@20534 46 genpkg_rules() {
al@20621 47 case $PACKAGE in
al@20621 48 links)
al@20621 49 copy @std
al@20621 50 DEPENDS="bzlib libgomp libjpeg-turbo liblzma libpng16 openssl tiff \
al@20621 51 xorg-libX11 zlib"
al@20621 52 SUGGESTED="gpm"
al@20621 53 ;;
al@20621 54 links-dfb)
al@20621 55 copy @std
al@20621 56 DEPENDS="bzlib directfb libgomp libjpeg-turbo liblzma libpng16 \
al@20621 57 openssl tiff zlib"
al@20621 58 PROVIDE="links"
al@20621 59 ;;
al@20621 60 links-cli)
al@20621 61 copy @std
al@20621 62 DEPENDS="bzlib liblzma openssl zlib"
al@20621 63 PROVIDE="links"
al@20621 64 ;;
al@20621 65 esac
al@20534 66 TAGS="web-browser"
pankso@26 67 }