SUMMARY="Turn legacy BeOS application icons into PNGs"
DESCRIPTION="\
With app2png, you can extract attribute-based bitmap icons from BeOS apps and \
save them into PNG files. These PNG icons can then be used to recreate the \
icon as a vector, or for use on a website."

HOMEPAGE="https://github.com/HaikuArchives/app2png"
SOURCE_URI="git+https://github.com/HaikuArchives/app2png#17c36271a80a822ac0dfec66527e61f21230a412"
REVISION="1"
LICENSE="MIT"
COPYRIGHT="2015 Puck Meerburg"

ARCHITECTURES="x86_gcc2 x86 x86_64"

PROVIDES="
	app2png = $portVersion
	cmd:app2png = $portVersion
	"
REQUIRES="
	haiku
	"
BUILD_REQUIRES="
	haiku_devel
	"
BUILD_PREREQUIRES="
	makefile_engine
	cmd:make
	cmd:gcc
	"

BUILD()
{
	make $jobArgs OBJ_DIR=objects
}

INSTALL()
{
	mkdir -p $binDir
	cp -a objects/app2png $binDir
}
