SUMMARY="Play movies on 3D objects"
DESCRIPTION="Haiku version of the famous BeInc demo 3Dmov.
Just drag'n'drop media files to the 3D objects.
See the famous video at : https://www.youtube.com/watch?v=BsVydyC8ZGQ."
HOMEPAGE="https://github.com/HaikuArchives/3DMov"
COPYRIGHT="
	Zenja Solaja
	2009 Haiku Inc
	"
LICENSE="MIT"
REVISION="2"
srcGitRev="16e56117ce1d9d1bd1586f0481f7788e31fbcde2"
SOURCE_URI="https://github.com/HaikuArchives/3DMov/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="6b6ddb26eb2170533bf11214373fdd22658a3db476cae92639ec7af05ecf12c6"
SOURCE_DIR="3DMov-$srcGitRev"

ARCHITECTURES="all"

PROVIDES="
	3dmov = $portVersion
	app:3DMov = $portVersion
	"
REQUIRES="
	haiku
	lib:libgl
	"

BUILD_REQUIRES="
	haiku_devel
	devel:libgl
	"
BUILD_PREREQUIRES="
	makefile_engine
	cmd:gcc
	cmd:make
	"

BUILD()
{
	cd src
	make $jobArgs OBJ_DIR=objects
}

INSTALL()
{
	cd src
	mkdir -p $appsDir
	cp -a objects/3DMov $appsDir
	addAppDeskbarSymlink $appsDir/3DMov
}

TEST()
{
	make check
}
