Merged in thomascompix/haikuports (pull request #23)

Added BDH Calc .recipe file for version 1.1
This commit is contained in:
Scott McCreary
2013-12-05 08:24:11 -08:00

View File

@@ -0,0 +1,48 @@
SUMMARY="Fully functunal 64bit calculator"
DESCRIPTION="BDH Calc is a fully functunal 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 integeral
data type. Moreover the calculator supports binary, decimal and
hexadecimal conversion.
"
HOMEPAGE="http://haikuware.com/directory/view-details/science-math/calculators/bdh-calc-for-haiku"
SRC_URI="git://github.com/ThomasCompix/BDH-Calc.git#4a6865932ae0e95244ed0149b6e8c4f437ea742a"
REVISION="1"
LICENSE="MIT"
COPYRIGHT="1999 Scott Hammond"
ARCHITECTURES="x86 x86_gcc2 !ppc"
PROVIDES="
bdhcalc = $portVersion
app:bdhcalc = $portVersion
"
REQUIRES="
haiku >= $haikuVersion
"
BUILD_REQUIRES="
haiku_devel >= $haikuVersion
"
BUILD_PREREQUIRES="
cmd:gcc
cmd:make
"
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 bdhcalc Ressources/bdh.rsrc
mimeset -f bdhcalc
}
INSTALL()
{
mkdir -p $appsDir
mv bdhcalc $appsDir/bdhcalc
addAppDeskbarSymlink $appsDir/bdhcalc "BDH Calc"
}