SUMMARY="Interface Elements Library"
DESCRIPTION="Attila Mezei's Interface Elements.
This library helps you to instantiate window archives."
HOMEPAGE="https://github.com/HaikuArchives/InterfaceElements/"
COPYRIGHT="1997-1998 Attila Mezei"
LICENSE="GNU GPL v3"
REVISION="2"
srcGitRev="43f91ffb883a94d4c239eda28a8ec2e0b985419e"
SOURCE_URI="https://github.com/HaikuArchives/InterfaceElements/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="443c685366a9517cad428c4e140c448c529a835585df321bb18732bdfbec198d"
SOURCE_DIR="InterfaceElements-$srcGitRev"

ARCHITECTURES="all"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"

PROVIDES="
	interface_elements$secondaryArchSuffix = $portVersion
	lib:libie$secondaryArchSuffix
	"
REQUIRES="
	haiku$secondaryArchSuffix
	"

PROVIDES_devel="
	interface_elements${secondaryArchSuffix}_devel
	devel:libie$secondaryArchSuffix
	"
REQUIRES_devel="
	interface_elements${secondaryArchSuffix} == $portVersion base
	"

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

BUILD()
{
	cd "Develop/IE library"
	make BUILDHOME=/system/develop $jobArgs
}

INSTALL()
{
	mkdir -p $includeDir $libDir

	cd "Develop/IE library"
	make BUILDHOME=/system/develop INSTALL_DIR=$libDir $jobArgs install
	cp *.h $includeDir

	prepareInstalledDevelLibs libie

	packageEntries devel \
		$developDir
}
