SUMMARY="A translator for SVG files"
DESCRIPTION="
This is a translator for SVG files based on nanosvg headers by Mikko Mononen \
(https://github.com/memononen/nanosvg). Scalable Vector Graphics (SVG) is an \
XML-based vector image format for two-dimensional graphics with support for \
interactivity and animation. The SVG specification is an open standard \
developed by the World Wide Web Consortium (W3C) since 1999.

SVG images and their behaviors are defined in XML text files. This means \
that they can be searched, indexed, scripted, and compressed. As XML files, \
SVG images can be created and edited with any text editor, but are more often \
created with drawing software."
LICENSE="MIT"
COPYRIGHT="2013-2015 3dEyes**"
HOMEPAGE="https://github.com/threedeyes/NanoSVGTranslator"
SOURCE_URI="git+https://github.com/threedeyes/NanoSVGTranslator#2b1da77"
REVISION="2"
ARCHITECTURES="x86_gcc2 x86"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"

PROVIDES="
	nanosvgtranslator$secondaryArchSuffix = $portVersion
	addon:NanoSVGTranslator$secondaryArchSuffix = $portVersion
	"

REQUIRES="
	haiku$secondaryArchSuffix
	"

BUILD_REQUIRES="
	haiku${secondaryArchSuffix}_devel
	"

BUILD_PREREQUIRES="
	cmd:g++$secondaryArchSuffix
	cmd:make
	"

BUILD()
{
	make $jobArgs
}

INSTALL()
{
	mkdir -p $addOnsDir/Translators
	cp build/NanoSVGTranslator $addOnsDir/Translators
}
