# $Id: Portfile 61380 2009-12-10 00:15:59Z blb@macports.org $

PortSystem 1.0
name		links
version		2.2
revision        2
description	Lynx-like WWW browser that supports tables, menus, etc

long_description \
		Lynx-like WWW browser with text and graphics modes with many \
		features like displaying tables, menus, etc.

platforms	darwin freebsd sunos
categories	www
homepage	http://links.twibright.com/
master_sites	http://links.twibright.com/download/ \
				ftp://atrey.karlin.mff.cuni.cz/pub/local/clock/links/
checksums	md5     bf5b20529a2a811701c5af52b28ebdd4 \
		sha1    7588c151e98057f83a2e0b81b3f467e7eee9f824 \
		rmd160  fe051b2655a67e004fdf682045349664611a3101

maintainers	landonf blb
use_bzip2	yes

depends_lib	port:openssl port:bzip2 port:zlib

configure.args	--enable-javascript --without-svgalib \
		--mandir=${prefix}/share/man --with-ssl

post-patch {
	reinplace s|/etc/|${prefix}/etc/| ${workpath}/${worksrcdir}/default.c
}

variant x11 description {Include X11 interface} {
	depends_lib-append	port:libpng port:jpeg \
				port:xorg-libX11
	configure.args-append	--enable-graphics --with-x
}

livecheck.type	regex
livecheck.url	[lindex ${master_sites} 0]
livecheck.regex	{links-([0-9.]+)\.tar\.bz2}

