SUMMARY="links web browser"
DESCRIPTION="
links web browser.
"
HOMEPAGE="http://links.twibright.com/" 
SRC_URI="http://links.twibright.com/download/links-2.3pre2.tar.gz"
CHECKSUM_SHA256="a9c6b8d9e783dc0caaa32f5acf1e3163a5d41b2ba395c93af8587b325b51bac0"
REVISION="1"
LICENSE="GNU GPL v2"
COPYRIGHT="1999 - 2011 Mikulas Patocka
	2000 - 2011 Petr Kulhavy, Karel Kulhavy, Martin Pergel"

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

PROVIDES="
	links$secondaryArchSuffix = $portVersion
	cmd:links$secondaryArchSuffix = $portVersion
	"
REQUIRES="
	haiku$secondaryArchSuffix >= $haikuVersion
	lib:libpng$secondaryArchSuffix
	lib:libjpeg$secondaryArchSuffix
#	lib:libtiff$secondaryArchSuffix
	lib:libz$secondaryArchSuffix
	openssl >= 1.0.0
	"

BUILD_REQUIRES="
#	devel:libGL$secondaryArchSuffix
	devel:libglu$secondaryArchSuffix
	devel:libpng$secondaryArchSuffix
	devel:libjpeg$secondaryArchSuffix
#	devel:libtiff$secondaryArchSuffix
	devel:libz$secondaryArchSuffix >= 1.2.8
	openssl_devel >= 1.0.0
	"

BUILD_PREREQUIRES="
	haiku${secondaryArchSuffix}_devel >= $haikuVersion
	cmd:autoconf
	cmd:libtool
	cmd:aclocal
	cmd:make
	cmd:gcc$secondaryArchSuffix
	cmd:ld$secondaryArchSuffix
	cmd:pkg_config$secondaryArchSuffix
	"

PATCHES="links-2.3pre2.patch"

BUILD()
{
	autoconf
	runConfigure ./configure \
		--without-x \
		--enable-utf-8 \
		--enable-graphics
	rc links-beos.rdef
	make
	xres -o links links-beos.rsrc
	mimeset links
}

INSTALL()
{
	make install
}

