SUMMARY="Minimum XML Library"
DESCRIPTION=" Mini-XML is a small XML parsing library that you can \
use to read XML and XML-like data files in your application without \ 
requiring large non-standard libraries."
HOMEPAGE="http://www.minixml.org/index.php"
SOURCE_URI="http://www.msweet.org/files/project3/mxml-2.9.tar.gz"
CHECKSUM_SHA256="cded54653c584b24c4a78a7fa1b3b4377d49ac4f451ddf170ebbc8161d85ff92"
SOURCE_DIR="mxml-2.9"
REVISION="2"
LICENSE="GNU LGPL v2"
COPYRIGHT="2003-2014 Michael R Sweet"
 
ARCHITECTURES="!x86_gcc2 !x86 !x86_64"
SECONDARY_ARCHITECTURES="!x86_gcc2 !x86"
 
PROVIDES="
	mxml$secondaryArchSuffix = $portVersion
	lib:mxml$secondaryArchSuffix = $portVersion
	"
#PROVIDES_devel="
#	mxml${secondaryArchSuffix}_devel >= $portVersion
#	devel:mxml$secondaryArchSuffix >= $portVersion
#	"

REQUIRES="
	haiku$secondaryArchSuffix
	lib:libz$secondaryArchSuffix
	"

#REQUIRES_devel="
#	haiku${secondaryArchSuffix}_devel
#	"

BUILD_REQUIRES="
	haiku${secondaryArchSuffix}_devel
	"

BUILD_PREREQUIRES="
	cmd:libtoolize
	cmd:make
#	cmd:aclocal
#	cmd:automake
	cmd:autoconf
	cmd:mkdepend
	cmd:gcc${secondaryArchSuffix}
	cmd:ld${secondaryArchSuffix}
"

PATCHES="mxml-2.9.patchset
"

BUILD()
{	
	libtoolize -fci
	autoconf
	runConfigure ./configure --enable-shared
	sed -i "s|LIBS		=	 -pthread|LIBS=|" $sourceDir/Makefile
	make $jobArgs
}
 
INSTALL()
{
	make install
#	prepareInstalledDevelLibs \
#		libmxml
#	packageEntries devel \
#		$developDir
}