SUMMARY="A powerful tool for viewing and manipulating 3D STL models"
DESCRIPTION="Display and manipulate the content of stereolithography (STL) files."
HOMEPAGE="https://github.com/threedeyes/STLover"
COPYRIGHT="2021-2022 Gerasim Troeglazov, Enrique M.G."
LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="https://github.com/threedeyes/STLover/archive/$portVersion.tar.gz"
CHECKSUM_SHA256="0ec981c97fca274be34592d112a5c923979c7b03951518baf5d53a77fd53ca16"
SOURCE_DIR="STLover-$portVersion"

ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"

PROVIDES="
	stlover$secondaryArchSuffix = $portVersion
	app:STLover = $portVersion
	"
REQUIRES="
	haiku$secondaryArchSuffix
	lib:libadmesh$secondaryArchSuffix
	lib:libgl$secondaryArchSuffix
	lib:libglu$secondaryArchSuffix
	"

BUILD_REQUIRES="
	haiku${secondaryArchSuffix}_devel
	devel:glm
	devel:libadmesh$secondaryArchSuffix
	devel:libgl$secondaryArchSuffix
	devel:libglu$secondaryArchSuffix
	"
BUILD_PREREQUIRES="
	makefile_engine
	cmd:gcc$secondaryArchSuffix
	cmd:ld$secondaryArchSuffix
	cmd:make
	"

BUILD()
{
	make
	make bindcatalogs
}

INSTALL()
{
	make install INSTALL_DIR=$appsDir
	addAppDeskbarSymlink $appsDir/STLover
}
