SUMMARY="Catalog add-on for IFF locale files"
DESCRIPTION="This catalog add-on loads catalogs in IFF format, as used for
localization on AmigaOS and other Amiga-like systems."
HOMEPAGE="https://github.com/pulkomandy/iffcatalog"
COPYRIGHT="2015-2020 Adrien Destugues"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="https://github.com/pulkomandy/IFFCatalog/archive/$portVersion.tar.gz"
CHECKSUM_SHA256="dadb8ca01f5225c67e9a8ef16befdeea1ae19778dc8d5bd29469b58334bcc141"
SOURCE_DIR="IFFCatalog-$portVersion"

ARCHITECTURES="?all x86_gcc2"
SECONDARY_ARCHITECTURES="x86"

PROVIDES="
	iff_catalog$secondaryArchSuffix = $portVersion
	add_on:iff_catalog$secondaryArchSuffix = $portVersion
	"
REQUIRES="
	haiku$secondaryArchSuffix
	"

BUILD_REQUIRES="
	haiku${secondaryArchSuffix}_devel
	"
BUILD_PREREQUIRES="
	makefile_engine
	cmd:gcc$secondaryArchSuffix
	cmd:make
	"

BUILD()
{
	make $jobArgs OBJ_DIR=objects
}

INSTALL()
{
	mkdir -p $addOnsDir/locale/catalogs
	cp objects/IFF $addOnsDir/locale/catalogs/
}
