SUMMARY="Lynx web browser"
DESCRIPTION="
An excellent console-based web browser with ssl support.
"
HOMEPAGE="http://lynx.isc.org/" 
SOURCE_URI="http://lynx.isc.org/current/lynx2.8.9dev.1.tar.bz2"
CHECKSUM_SHA256="e9278002e34175240e986db92a60f6214f35999f51287056149cdc08578c2bff"
REVISION="1"
#XXX:Also check COPYHEADER?
LICENSE="GNU GPL v2"
COPYRIGHT="1997-2013,2014 Thomas E. Dickey"


ARCHITECTURES="x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"

PROVIDES="
	lynx$secondaryArchSuffix = $portVersion
	cmd:lynx$secondaryArchSuffix = $portVersion
	"
REQUIRES="
	haiku$secondaryArchSuffix
	lib:libz$secondaryArchSuffix
	lib:libiconv$secondaryArchSuffix
	lib:libncurses$secondaryArchSuffix
	lib:libssl$secondaryArchSuffix
	"

BUILD_REQUIRES="
	devel:libz$secondaryArchSuffix >= 1.2.8
	devel:libiconv$secondaryArchSuffix
	devel:libncurses$secondaryArchSuffix
	devel:libssl$secondaryArchSuffix
	"

BUILD_PREREQUIRES="
	haiku${secondaryArchSuffix}_devel
	#cmd:autoconf
	cmd:ar
	cmd:bison
	cmd:bzip2
	cmd:ctags
	cmd:gzip
	cmd:make
	cmd:tar
	cmd:ranlib
	cmd:gcc$secondaryArchSuffix
	cmd:ld$secondaryArchSuffix
	"

SOURCE_DIR="lynx2-8-9"

PATCHES="lynx-2.8.9dev.1.patchset"

GLOBAL_WRITABLE_FILES="
	settings/lynx.lss keep-old
	settings/lynx.cfg keep-old
	"

BUILD()
{
#	autoconf
	runConfigure --omit-dirs "docDir" ./configure --with-ssl
	make
}

INSTALL()
{
	make install install-help install-doc
}

