# $Id: Portfile 91396 2012-03-31 17:12:38Z landonf@macports.org $

PortSystem 1.0
name		links
version		2.5
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
license		GPL-2+
homepage	http://links.twibright.com/
master_sites	http://links.twibright.com/download/
checksums           sha1    fe4bc37be8aebd9196c35ffef724435cea94349c \
                    rmd160  ec0c2fbf239289d757fd12526495bdcb3c08a588 

maintainers	landonf openmaintainer
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 {
	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}

