SUMMARY="A library for manipulating Unicode strings"
DESCRIPTION="libunistring provides functions for manipulating Unicode strings and for \
manipulating C strings according to the Unicode standard."
HOMEPAGE="http://www.gnu.org/software/libunistring/" 
SOURCE_URI="http://ftp.gnu.org/gnu/libunistring/libunistring-$portVersion.tar.gz"
LICENSE="GNU LGPL v2.1"
COPYRIGHT="1998-2014 Free Software Fundation, Inc."
CHECKSUM_SHA256="1a8c0772467850bef7197318a95f44abbb678ea83cbf119a3500cc7848276a17"
REVISION="1"
ARCHITECTURES="x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"

PATCHES="libunistring-$portVersion.patchset"

PROVIDES="
	libunistring$secondaryArchSuffix = $portVersion compat >= 0
	lib:libunistring$secondaryArchSuffix = 2.0.0 compat >= 2
	"

REQUIRES="
	haiku$secondaryArchSuffix
	"

BUILD_REQUIRES=""

BUILD_PREREQUIRES="
	haiku${secondaryArchSuffix}_devel
	cmd:make
	cmd:libtoolize
	cmd:git
	cmd:autoconf
	cmd:gcc$secondaryArchSuffix
	cmd:gperf
	"

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

INSTALL()
{
	make install
	prepareInstalledDevelLib libunistring
	packageEntries devel \
		$developDir
}

# ----- Development package -----

PROVIDES_devel="
	libunistring${secondaryArchSuffix}_devel = $portVersion
	devel:libunistring$secondaryArchSuffix = 2.0.0 compat >= 0
	"
REQUIRES_devel="
	libunistring$secondaryArchSuffix == $portVersion base
	"
