SUMMARY="Paint & image manipuator for Haiku"
DESCRIPTION="BePhotoMagic is a resurrection of the abandoned Photon \
project and is intended to be a Photoshop-quality paint and image \
processor for BeOS."
HOMEPAGE="https://github.com/HaikuArchives/BePhotoMagic"
SOURCE_URI="https://github.com/HaikuArchives/BePhotoMagic/archive/3f4444736db5cc21856867b73c3bb1b6098caf88.tar.gz"
CHECKSUM_SHA256="4b1d566f00aef68edb728d73a5810ceb2efce1db257f4532a3b23951779c301c"
SOURCE_DIR="BePhotoMagic-3f4444736db5cc21856867b73c3bb1b6098caf88"
LICENSE="GNU GPL v2"
COPYRIGHT="2000 Santiago Lema
	2001 Jon Yoder (DarkWyrm)"
REVISION="1"
ARCHITECTURES="x86_gcc2 x86 ?x86_64"

PROVIDES="
	bephotomagic = $portVersion
	app:BePhotoMagic = $portVersion
	"
REQUIRES="
	haiku
	lib:libbz2
	lib:libimagemanip
	"

BUILD_REQUIRES="
	haiku_devel
	devel:libbz2
	devel:libimagemanip
	"
BUILD_PREREQUIRES="
	makefile_engine
	cmd:make
	cmd:g++
	"

BUILD()
{
	cd src
	make $jobArgs
}

INSTALL()
{
	mkdir -p $appsDir
	cp -R bin $appsDir
	mv $appsDir/bin $appsDir/BePhotoMagic
	addAppDeskbarSymlink $appsDir/BePhotoMagic/BePhotoMagic
}
