SUMMARY="links web browser"
DESCRIPTION="
links web browser.
"
HOMEPAGE="http://links.twibright.com/" 
SOURCE_URI="http://links.twibright.com/download/links-2.8.tar.gz"
CHECKSUM_SHA256="5070a759af7f107ca4f9572833b8f086cd9f7c21ef5e1fce8482a2883a743c7a"
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
	lib:libpng$secondaryArchSuffix
	lib:libjpeg$secondaryArchSuffix
#	lib:libtiff$secondaryArchSuffix
	lib:libz$secondaryArchSuffix
	openssl$secondaryArchSuffix >= 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${secondaryArchSuffix}_devel >= 1.0.0
	"

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

PATCHES="links-2.8.patch"

BUILD()
{
	aclocal
	automake --add-missing
	autoheader
	automake
	autoconf
	runConfigure ./configure \
		--without-x \
		--enable-graphics
	make
}

INSTALL()
{
	make install
	addAppDeskbarSymlink $binDir/links Links
}

