SUMMARY="An HTML documentation viewer"
DESCRIPTION="
HTML documentation viewer
"
HOMEPAGE="http://www.becoz.org/beos-en/behappy" 
SOURCE_URI="git+https://github.com/HaikuArchives/BeHappy.git"
REVISION="1"
#CHECKSUM_MD5=""
LICENSE="MIT"
COPYRIGHT="2006 Sylvain Tertois
	2008-2009 François Revol"

ARCHITECTURES="x86_gcc2 ?x86 ?x86_64"

PROVIDES="
	behappy = $portVersion
	app:BeHappy = $portVersion
"
REQUIRES="
	haiku
#	app:netsurf >= 2.6
"
BUILD_REQUIRES="
	haiku_devel
"
BUILD_PREREQUIRES="
	makefile_engine
	cmd:gcc
	cmd:make
	cmd:ld
"


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
}

