SUMMARY="Fully functional 64bit calculator"
DESCRIPTION="BDH Calc is a fully functional 64bit calculator, supporting \
common arithmetic operations like adding, subtracting, dividing and \
multiplying as well as bitwise operators. You can choose the word size and \
whether the sign is considered to simulate any integral data type. Moreover \
the calculator supports binary, decimal and hexadecimal conversion."
HOMEPAGE="http://github.com/HaikuArchives/BDH-Calc"
SOURCE_URI="git://github.com/HaikuArchives/BDH-Calc.git#6a3433a5fb558f592dd246b400221f2223770e75"
REVISION="1"
LICENSE="Zlib"
COPYRIGHT="1999 Scott Hammond"
ARCHITECTURES="x86 x86_gcc2 ?x86_64"

PROVIDES="
	bdhcalc = $portVersion
	app:bdhcalc = $portVersion
	"
REQUIRES="
	haiku
	"
BUILD_REQUIRES="
	haiku_devel
	"
BUILD_PREREQUIRES="
	cmd:g++
	"

BUILD()
{
	g++ -c src/bdh_main.cpp -o bdh_main.o
	g++ -c src/bdh_view.cpp -o bdh_view.o
	g++ -lbe bdh_main.o bdh_view.o -o bdhcalc
	xres -o bdhcalc Ressources/bdh.rsrc
	mimeset -f bdhcalc
}

INSTALL()
{
	mkdir -p $appsDir
	mv bdhcalc $appsDir/bdhcalc
	addAppDeskbarSymlink $appsDir/bdhcalc "BDH Calc"
}
