SUMMARY="X.Org font utilities"
DESCRIPTION="X.Org font package creation/installation utilities"
HOMEPAGE="https://cgit.freedesktop.org/xorg/font/util"
COPYRIGHT="2006 Martin Husemann
	2007 Joerg Sonnenberger"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="https://www.x.org/releases/individual/font/font-util-$portVersion.tar.bz2"
CHECKSUM_SHA256="3ad880444123ac06a7238546fa38a2a6ad7f7e0cc3614de7e103863616522282"
SOURCE_DIR="font-util-$portVersion"

ARCHITECTURES="all"
SECONDARY_ARCHITECTURES="x86"

PROVIDES="
	fontutil$secondaryArchSuffix = $portVersion
	cmd:bdftruncate$secondaryArchSuffix = $portVersion
	cmd:ucs2any$secondaryArchSuffix = $portVersion
	"
REQUIRES="
	haiku$secondaryArchSuffix
	"

BUILD_REQUIRES="
	haiku${secondaryArchSuffix}_devel
	devel:util_macros
	"
BUILD_PREREQUIRES="
	cmd:awk
	cmd:gcc$secondaryArchSuffix
	cmd:ld$secondaryArchSuffix
	cmd:make
	cmd:pkg_config$secondaryArchSuffix
	"

BUILD()
{
	runConfigure ./configure
	make $jobArgs
}

INSTALL()
{
	make install
	fixPkgconfig
	rmdir $libDir
}
