libxext-1.3.4.recipe revision 34501ff3
1SUMMARY="X Extension library"
2DESCRIPTION="libXext provides an X Window System client interface to several \
3extensions to the X protocol. The supported protocol extensions are \
4DOUBLE-BUFFER, DPMS, Extended-Visual-Information, LBX, MIT_SHM, \
5MIT_SUNDRY-NONSTANDARD, Multi-Buffering, SECURITY, SHAPE, SYNC, TOG-CUP, \
6XC-APPGROUP, XC-MISC, XTEST. libXext also provides a small set of utility \
7functions to aid authors of client APIs for X protocol extensions."
8HOMEPAGE="http://xorg.freedesktop.org/releases/individual/lib/"
9COPYRIGHT="1986, 1987, 1988, 1989, 1994, 1998 The Open Group"
10LICENSE="MIT (no promotion)"
11REVISION="1"
12SOURCE_URI="https://www.x.org/archive/individual/lib/libXext-$portVersion.tar.gz"
13CHECKSUM_SHA256="8ef0789f282826661ff40a8eef22430378516ac580167da35cc948be9041aac1"
14SOURCE_DIR="libXext-$portVersion"
15
16ARCHITECTURES="x86_gcc2 x86 x86_64"
17SECONDARY_ARCHITECTURES="x86_gcc2 x86"
18
19libVersion="6.4.0"
20libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
21
22PROVIDES="
23	libxext$secondaryArchSuffix = $portVersion
24	lib:libXext$secondaryArchSuffix = $libVersionCompat
25	"
26REQUIRES="
27	haiku$secondaryArchSuffix
28	lib:libX11$secondaryArchSuffix
29	"
30
31PROVIDES_devel="
32	libxext${secondaryArchSuffix}_devel = $portVersion
33	devel:libXext$secondaryArchSuffix = $libVersionCompat
34	"
35REQUIRES_devel="
36	libxext$secondaryArchSuffix == $portVersion base
37	devel:libX11$secondaryArchSuffix
38	devel:xextproto
39	"
40
41BUILD_REQUIRES="
42	haiku${secondaryArchSuffix}_devel
43	docbook_xml_dtd
44	docbook_xsl_stylesheets
45	devel:libX11$secondaryArchSuffix
46	devel:util_macros
47	devel:xorg_sgml_doctools
48	"
49BUILD_PREREQUIRES="
50	cmd:aclocal
51	cmd:autoconf
52	cmd:awk
53	cmd:gcc$secondaryArchSuffix
54	cmd:libtoolize$secondaryArchSuffix
55	cmd:make
56	cmd:pkg_config$secondaryArchSuffix
57	cmd:xmlto
58	cmd:xsltproc
59	"
60
61defineDebugInfoPackage libxext$secondaryArchSuffix \
62	$libDir/libXext.so.$libVersion
63
64BUILD()
65{
66	autoreconf -vfi
67	runConfigure --omit-dirs docDir ./configure --docdir=$developDocDir
68	make $jobArgs
69}
70
71INSTALL()
72{
73	make install
74
75	rm -rf $libDir/libXext.la
76
77	if [ -n "$secondaryArchSuffix" ]; then
78		rm -rf $manDir
79		maybe_manDir_man3=
80	else
81		maybe_manDir_man3=$manDir/man3
82	fi
83
84	fixPkgconfig
85	prepareInstalledDevelLib libXext
86
87	# devel package
88	packageEntries devel \
89		$developDir \
90		$maybe_manDir_man3
91
92	rm -rf $documentationDir
93}
94