SUMMARY="A collection of classes and controls"
DESCRIPTION="LibWalter is a supplementary collection of class and controls not present in \
the standard Haiku API."
HOMEPAGE="https://github.com/HaikuArchives/LibWalter/"
COPYRIGHT="1991-2000 Be Incorporated. All rights reserved.
	1998 dirk116
	2001 Atsushi Takamatsu
	2003 Michael Pfeiffer
	2001-2007 Haiku Inc.
	2007 Matthias Lindner
	2007 Oliver Ruiz Dorantes
	2007-2008 DarkWyrm"
LICENSE="MIT"
REVISION="2"
SOURCE_URI="https://github.com/HaikuArchives/LibWalter/archive/59fdad559ee3dbcc58675cb27502ececce795bbc.tar.gz"
CHECKSUM_SHA256="f418e14a1f8e1aa803385dc17cd178d9e85e7efd3bc4386ec12416eeeb7a1fec"
SOURCE_DIR="LibWalter-59fdad559ee3dbcc58675cb27502ececce795bbc"

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

PROVIDES="
	libwalter$secondaryArchSuffix = $portVersion
	lib:libwalter$secondaryArchSuffix = $portVersion
	"
REQUIRES="
	haiku$secondaryArchSuffix
	"

BUILD_REQUIRES="
	haiku${secondaryArchSuffix}_devel
	"
BUILD_PREREQUIRES="
	cmd:gcc$secondaryArchSuffix
	cmd:jam
	cmd:ld$secondaryArchSuffix
	cmd:make
	cmd:mkdepend
	"

BUILD()
{
	configure
	jam
}

INSTALL()
{
	mkdir -p $libDir
	mkdir -p $includeDir/libwalter
	cp libwalter.a $libDir/libwalter.a
	cp -a include/. $includeDir/libwalter
}

TEST()
{
	cd tests
	ColorWellTest
	ComboBoxTest
	CursorTest
	DialogPaneBarberTest
	InputRequestTest
	PaneSwitchTest
	PictureButtonTest
	ShrinkViewTest
	SplitPanelTest
	ToolbarTest
}
