wok-next annotate elinks/receipt @ rev 21680
updated gf2x (1.2 -> 1.3.0)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Jun 29 14:15:30 2020 +0100 (2020-06-29) |
parents | 305b62ed355a |
children |
rev | line source |
---|---|
al@20656 | 1 # SliTaz package receipt v2. |
allan316@3279 | 2 |
allan316@3279 | 3 PACKAGE="elinks" |
psychomaniak@18278 | 4 VERSION="0.12pre6" |
allan316@3279 | 5 CATEGORY="network" |
allan316@3279 | 6 SHORT_DESC="Full featured www text browser" |
allan316@3279 | 7 MAINTAINER="allan316@gmail.com" |
pascal@15002 | 8 LICENSE="GPL2" |
al@21020 | 9 WEB_SITE="http://elinks.or.cz/" |
al@20656 | 10 |
allan316@3279 | 11 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
allan316@3279 | 12 WGET_URL="$WEB_SITE/download/$TARBALL" |
allan316@3279 | 13 |
al@20656 | 14 BUILD_DEPENDS="openssl10-dev bzip2-dev spidermonkey-dev zlib-dev libidn-dev \ |
al@21020 | 15 expat-dev gpm-dev gettext-dev" |
al@21024 | 16 SPLIT="$PACKAGE-small:small" |
pankso@9954 | 17 |
al@20656 | 18 compile_rules() { |
al@21024 | 19 case $SET in |
al@21024 | 20 '') |
al@21024 | 21 export CPPFLAGS="$CPPFLAGS -I/usr/include/openssl-1.0" |
al@21024 | 22 export LDFLAGS="$LDFLAGS -L/usr/lib/openssl-1.0" |
al@20656 | 23 |
al@21024 | 24 # --enable-fastmem: disables internal `malloc()` debugging and |
al@21024 | 25 # use `alloca()` wherever possible. |
al@21024 | 26 # --disable-backtrace disables internal backtrace code. |
al@21024 | 27 SET_ARGS="\ |
al@21024 | 28 --with-openssl \ |
al@21024 | 29 --enable-88-colors" |
al@21024 | 30 ;; |
al@21024 | 31 small) |
al@21024 | 32 SET_ARGS="\ |
al@21024 | 33 --enable-small \ |
al@21024 | 34 --without-gnutls \ |
al@21024 | 35 --without-openssl \ |
al@21024 | 36 --without-spidermonkey \ |
al@21024 | 37 --without-gpm" |
al@21024 | 38 ;; |
al@21024 | 39 esac |
al@21024 | 40 |
pankso@15986 | 41 ./configure \ |
pankso@15986 | 42 --enable-fastmem \ |
pankso@15986 | 43 --disable-backtrace \ |
pankso@15986 | 44 --without-x \ |
al@21024 | 45 $SET_ARGS \ |
al@20656 | 46 $CONFIGURE_ARGS && |
al@20656 | 47 make && |
al@21024 | 48 make DESTDIR=$install install # keep DESTDIR |
al@21024 | 49 |
al@21024 | 50 # No conflict with full elinks |
al@21024 | 51 case $SET in |
al@21024 | 52 small) mv $install/usr/bin/elinks $install/usr/bin/elinks-small;; |
al@21024 | 53 esac |
allan316@3279 | 54 } |
allan316@3279 | 55 |
al@20656 | 56 genpkg_rules() { |
al@21024 | 57 case $PACKAGE in |
al@21024 | 58 elinks) |
al@21024 | 59 copy @std |
al@21105 | 60 DEPENDS="libbzip2 expat libidn openssl10 spidermonkey zlib" |
al@21024 | 61 ;; |
al@21024 | 62 *-small) |
al@21024 | 63 copy @std |
al@21024 | 64 CAT="network|without JS, SSL, GPM" |
al@21105 | 65 DEPENDS="libbzip2 expat libidn zlib" |
al@21024 | 66 ;; |
al@21024 | 67 esac |
al@21024 | 68 TAGS="web-browser browser web" |
allan316@3279 | 69 } |