SUMMARY="Convert PNG or raw files to Amstrad CPC screen format"
DESCRIPTION="convert gfx (linear raw 8bits per pixel or PNG 1,2 or 4 bits) in a
compatible format for Amstrad CPC and Plus. Various CRTC registers can be
adjusted for exact control of the results."
HOMEPAGE="https://github.com/cpcsdk/gfx2crtc"
COPYRIGHT="2008-2017 Quentin Carlier, Adrien Destugues"
LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="https://github.com/cpcsdk/gfx2crtc/archive/$portVersion.tar.gz"
CHECKSUM_SHA256="5c0a5a385b61ccfeabcb5e29f5297c8916469f25a0bd49d3f090e738e58a11bc"
SOURCE_DIR="gfx2crtc-$portVersion"

ARCHITECTURES="?all x86_gcc2"

PROVIDES="
	gfx2crtc = $portVersion
	cmd:png2crtc = $portVersion
	cmd:raw2crtc = $portVersion
	"
REQUIRES="
	haiku
	lib:libpng16
	lib:libz
	"

BUILD_REQUIRES="
	haiku_devel
	devel:libpng16
	devel:libz
	"
BUILD_PREREQUIRES="
	makefile_engine
	cmd:make
	cmd:gcc
	"

BUILD()
{
	make $jobArgs OBJ_DIR=objects
}

INSTALL()
{
	mkdir -p $binDir
	cp -a raw2crtc png2crtc $binDir
}
