SUMMARY="X.Org's protocol headers"
DESCRIPTION="The X.Org protocol headers."
HOMEPAGE="https://cgit.freedesktop.org/xorg/proto/xorgproto/"
COPYRIGHT="1991 Oracle and/or its affiliates. All rights reserved.
	1985, 1987, 1988, 1990, 1991, 1993-1996, 1998 The Open Group
	1987 Digital Equipment Corporation, Maynard, Massachusetts.
	1987 Apollo Computer Inc., Chelmsford, Massachusetts.
	1989 Hewlett-Packard Company.
	1999 The XFree86 Project Inc."
LICENSE="MIT (no promotion)"
REVISION="1"
SOURCE_URI="https://xorg.freedesktop.org/archive/individual/proto/xorgproto-$portVersion.tar.bz2"
CHECKSUM_SHA256="aa2f663b8dbd632960b24f7477aa07d901210057f6ab1a1db5158732569ca015"
PATCHES="xorgproto-$portVersion.patchset"

ARCHITECTURES="any"

PROVIDES="
	xorgproto = $portVersion
	devel:applewmproto = 1.4.2
	devel:bigreqsproto = 1.1.2
	devel:compositeproto = 0.4.2
	devel:damageproto = 1.2.1
	devel:dmxproto = 2.3.1
	devel:dpmsproto = 1.2
	devel:dri2proto = 2.8
	devel:dri3proto = 1.2
	devel:evieproto = 1.1.1
	devel:fixesproto = 6.0
	devel:fontcacheproto = 0.1.3
	devel:fontsproto = 2.1.3
	devel:glproto = 1.4.17
	devel:inputproto = 2.3.99.2
	devel:kbproto = 1.0.7
	devel:lg3dproto = 5.0
	devel:presentproto = 1.2
	devel:printproto = 1.0.5
	devel:randrproto = 1.6.0
	devel:recordproto = 1.14.2
	devel:renderproto = 0.11.1
	devel:resourceproto = 1.2.0
	devel:scrnsaverproto = 1.2.3
	devel:trapproto = 3.4.3
	devel:videoproto = 2.3.3
	devel:windowswmproto = 1.0.4
	devel:xcalibrateproto = 0.1.0
	devel:xcmiscproto = 1.2.2
	devel:xextproto = 7.3.0
	devel:xf86bigfontproto = 1.2.0
	devel:xf86dgaproto = 2.1
	devel:xf86driproto = 2.1.1
	devel:xf86miscproto = 0.9.3
	devel:xf86rushproto = 1.1.2
	devel:xf86vidmodeproto = 2.3.1
	devel:xineramaproto = 1.2.1
	devel:xproto = 7.0.33
	devel:xproxymngproto = 1.0.3
	"
REQUIRES="
	haiku
	"
REPLACES="
	applewmproto
	bigreqsproto
	compositeproto
	damageproto
	dmxproto
	dri2proto
	dri3proto
	fixesproto
	fontsproto
	glproto
	inputproto
	kbproto
	presentproto
	randrproto
	recordproto
	renderproto
	resourceproto
	scrnsaverproto
	trapproto
	videoproto
	windowswmproto
	xcmiscproto
	xextproto
	xf86bigfontproto
	xf86dgaproto
	xf86driproto
	xf86miscproto
	xf86vidmodeproto
	xineramaproto
	xproto
	xproxymngproto
	"

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:make
	cmd:pkg_config
	cmd:xmlto
	cmd:xsltproc
	"

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

INSTALL()
{
	make install
}
