SUMMARY="X.Org's library to handle network protocol transport"
DESCRIPTION="xtrans is a library of code that is shared among various X \
packages to handle network protocol transport in a modular fashion, allowing \
a single place to add new transport types.  It is used by the X server, \
libX11, libICE, the X font server, and related components."
HOMEPAGE="http://xorg.freedesktop.org/releases/individual/lib/"
COPYRIGHT="1993, 1994, 1998  The Open Group
	1993, 1994 NCR Corporation
	2002, 2005 Sun Microsystems, Inc.
	1996 Sebastien Marineau, Holger Veit
	2003 Keith Packard, Noah Levitt"
LICENSE="MIT (no promotion)"
REVISION="4"
SOURCE_URI="https://www.x.org/releases/individual/lib/xtrans-$portVersion.tar.bz2"
CHECKSUM_SHA256="adbd3b36932ce4c062cd10f57d78a156ba98d618bdb6f50664da327502bc8301"
PATCHES="xtrans-$portVersion.patchset"

ARCHITECTURES="any"

PROVIDES="
	xtrans = $portVersion
	devel:xtrans = $portVersion
	"
REQUIRES="
	haiku
	"

BUILD_REQUIRES="
	haiku_devel
	docbook_xml_dtd
	docbook_xsl_stylesheets
	devel:util_macros
	devel:xorg_sgml_doctools
	"
BUILD_PREREQUIRES="
	cmd:aclocal
	cmd:autoconf
	cmd:awk
	cmd:gcc
	cmd:ld
	cmd:make
	cmd:pkg_config
	cmd:xmlto
	cmd:xsltproc
	"

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

INSTALL()
{
	make install
}
