SUMMARY="An HTML documentation viewer"
DESCRIPTION="HTML documentation viewer"
HOMEPAGE="http://www.becoz.org/beos-en/behappy"
COPYRIGHT="2006 Sylvain Tertois
	2008-2009 François Revol"
LICENSE="MIT"
REVISION="2"
srcGitRev="bbd068e9fa47bffb6758fc58d175d0991ba00529"
SOURCE_URI="https://github.com/HaikuArchives/BeHappy/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="b204b67efd031bef139a22e1c8ad83a98c1e1c68482cf1119d1f7acd15940cfb"
SOURCE_DIR="BeHappy-$srcGitRev"

ARCHITECTURES="?all x86_gcc2"

PROVIDES="
	behappy = $portVersion
	app:BeHappy = $portVersion
	"
REQUIRES="
	haiku
	app:NetSurf
	"

BUILD_REQUIRES="
	haiku_devel
	"
BUILD_PREREQUIRES="
	makefile_engine
	cmd:gcc
	cmd:ld
	cmd:make
	"

BUILD()
{
	make BUILDHOME=/system/develop
}

INSTALL()
{
	mkdir -p $appsDir/BeHappy
	make install BUILDHOME=/system/develop INSTALL_DIR=$appsDir/BeHappy

	mkdir $appsDir/BeHappy/Add-ons/
	mv $appsDir/BeHappy/BeBook $appsDir/BeHappy/Man $appsDir/BeHappy/BeHappyDoc \
		$appsDir/BeHappy/Add-ons/

	addAppDeskbarSymlink $appsDir/BeHappy/BeHappy
}
