# HG changeset patch # User Christophe Lincoln # Date 1393720205 -3600 # Node ID 5e98238539206239771e12eacb641513864b13c8 # Parent a6a5bf468a61342754aca2d7884c65428a3f5bce elinks: remove deps on X and add elinks-small diff -r a6a5bf468a61 -r 5e9823853920 elinks-small/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/elinks-small/receipt Sun Mar 02 01:30:05 2014 +0100 @@ -0,0 +1,41 @@ +# SliTaz package receipt. + +PACKAGE="elinks-small" +VERSION="0.11.7" +CATEGORY="network" +SHORT_DESC="Small Elinks www text browser version (no JS SSL GPM)" +MAINTAINER="pankso@slitaz.org" +LICENSE="GPL2" +SOURCE="elinks" +TARBALL="$SOURCE-$VERSION.tar.bz2" +WEB_SITE="http://elinks.or.cz" +WGET_URL="$WEB_SITE/download/$TARBALL" +HOST_ARCH="i486 arm" + +TAGS="browser web" +DEPENDS="bzip2 zlib libidn expat" +BUILD_DEPENDS="bzip2-dev zlib-dev libidn-dev expat-dev" + +# Rules to configure and make the package. +compile_rules() +{ + ./configure \ + --enable-small \ + --enable-fastmem \ + --disable-backtrace \ + --without-gnutls \ + --without-openssl \ + --without-spidermonkey \ + --without-gpm \ + --without-x \ + $CONFIGURE_ARGS && + make && make DESTDIR=$DESTDIR install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/bin + # No conflict with full elinks + cp -a $install/usr/bin/elinks $fs/usr/bin/elinks-small +} diff -r a6a5bf468a61 -r 5e9823853920 elinks/receipt --- a/elinks/receipt Sun Mar 02 00:40:54 2014 +0100 +++ b/elinks/receipt Sun Mar 02 01:30:05 2014 +0100 @@ -11,16 +11,21 @@ WGET_URL="$WEB_SITE/download/$TARBALL" TAGS="browser" -DEPENDS="openssl bzip2 spidermonkey xorg-libX11 zlib libidn expat \ -xorg-libXau xorg-libXdmcp" -BUILD_DEPENDS="openssl-dev bzip2-dev spidermonkey-dev libidn-dev expat-dev \ -xorg-libXau-dev xorg-libXdmcp-dev" +DEPENDS="openssl bzip2 spidermonkey zlib libidn expat gpm" +BUILD_DEPENDS="openssl-dev bzip2-dev spidermonkey-dev zlib-dev libidn-dev \ +expat-dev gpm-dev" # Rules to configure and make the package. compile_rules() { - cd $src - ./configure $CONFIGURE_ARGS && + # --enable-fastmem: disables internal `malloc()` debugging and + # use `alloca()` wherever possible. + # --disable-backtrace disables internal backtrace code. + ./configure \ + --enable-fastmem \ + --disable-backtrace \ + --without-x \ + $CONFIGURE_ARGS && make && make DESTDIR=$DESTDIR install } @@ -30,4 +35,3 @@ mkdir -p $fs/usr cp -a $install/usr/bin $fs/usr } -