SUMMARY="A multitouch protocol translation library"
DESCRIPTION="MTDev is a stand-alone library which transforms all variants of \
kernel MT events to the slotted type B protocol. The events put into \
mtdev may be from any MT device, specifically type A without contact \
tracking, type A with contact tracking, or type B with contact tracking."
HOMEPAGE="http://bitmath.org/code/mtdev/"
COPYRIGHT="2010 Kenrik Rydberg
	2010 Canonical Ltd."
LICENSE="MIT"
REVISION="1"
SOURCE_URI="http://bitmath.org/code/mtdev/mtdev-1.1.5.tar.bz2"
CHECKSUM_SHA256="6677d5708a7948840de734d8b4675d5980d4561171c5a8e89e54adf7a13eba7f"

ARCHITECTURES="!x86 !x86_gcc2"
SECONDARY_ARCHITECTURES="!x86 !x86_gcc2"

PROVIDES="
	mtdev$secondaryArchSuffix = $portVersion
	lib:libmtdev$secondaryArchSuffix = 1.0.0 compat >= 1
	"
REQUIRES="
	haiku$secondaryArchSuffix
	"

PROVIDES_devel="
	mtdev${secondaryArchSuffix}_devel = $portVersion
	devel:libmtdev$secondaryArchSuffix = 1.0.0 compat >= 1
	"
REQUIRES_devel="
	mtdev${secondaryArchSuffix} == $portVersion base
	"

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

BUILD()
{
	runConfigure ./configure \
	--disable-static

	make $jobArgs
}

INSTALL()
{
	make install
	prepareInstalledDevelLibs libmtdev
	packageEntries devel $developDir
}
