1SUMMARY="X Miscellaneous Utilities library"
2DESCRIPTION="This library contains miscellaneous utilities and is not part \
3of the Xlib standard.  It contains routines which only use public \
4interfaces so that it may be layered on top of any proprietary \
5implementation of Xlib or Xt."
6HOMEPAGE="https://www.x.org/releases/individual/lib/"
7COPYRIGHT="1987, 1988 by Digital Equipment Corporation
8	1998 by The XFree86 Project, Inc.
9	1989, 1998 The Open Group"
10LICENSE="MIT (no promotion)"
11REVISION="3"
12SOURCE_URI="https://www.x.org/releases/individual/lib/libXmu-$portVersion.tar.bz2"
13CHECKSUM_SHA256="9c343225e7c3dc0904f2122b562278da5fed639b1b5e880d25111561bac5b731"
14SOURCE_DIR="libXmu-$portVersion"
15
16ARCHITECTURES="all ?x86_gcc2"
17SECONDARY_ARCHITECTURES="x86"
18
19PROVIDES="
20	libxmu$secondaryArchSuffix = $portVersion
21	lib:libXmu$secondaryArchSuffix = 6.2.0 compat >= 6
22	lib:libXmuu$secondaryArchSuffix = 1.0.0 compat >= 1
23	"
24REQUIRES="
25	haiku$secondaryArchSuffix
26	lib:libX11$secondaryArchSuffix
27	lib:libXext$secondaryArchSuffix
28	lib:libXt$secondaryArchSuffix
29	"
30
31PROVIDES_devel="
32	libxmu${secondaryArchSuffix}_devel = $portVersion
33	devel:libXmu$secondaryArchSuffix = 6.2.0
34	devel:libXmuu$secondaryArchSuffix = 1.0.0
35	"
36REQUIRES_devel="
37	libxmu$secondaryArchSuffix == $portVersion base
38	devel:libX11$secondaryArchSuffix
39	devel:libXext$secondaryArchSuffix
40	devel:libXt$secondaryArchSuffix
41	devel:xproto
42	"
43
44BUILD_REQUIRES="
45	haiku${secondaryArchSuffix}_devel
46	docbook_xml_dtd
47	docbook_xsl_stylesheets
48	devel:libX11$secondaryArchSuffix
49	devel:libXext$secondaryArchSuffix
50	devel:libXt$secondaryArchSuffix
51	devel:util_macros
52	devel:xorg_sgml_doctools
53	devel:xtrans
54	"
55BUILD_PREREQUIRES="
56	cmd:aclocal
57	cmd:autoconf
58	cmd:gcc$secondaryArchSuffix
59	cmd:libtoolize$secondaryArchSuffix
60	cmd:make
61	cmd:pkg_config$secondaryArchSuffix
62	cmd:xmlto
63	cmd:xsltproc
64	"
65
66defineDebugInfoPackage libxmu$secondaryArchSuffix \
67	$libDir/libXmu.so.6.2.0 \
68	$libDir/libXmuu.so.1.0.0
69
70BUILD()
71{
72	export LDFLAGS="-lnetwork"
73	autoreconf -vfi
74	runConfigure --omit-dirs docDir ./configure \
75		--docdir=$developDocDir \
76		--disable-static
77	make $jobArgs
78}
79
80INSTALL()
81{
82	make install
83
84	install -m 0644 -t "$developDocDir" README.md
85
86	rm -f $libDir/*.la
87
88	prepareInstalledDevelLibs libXmu libXmuu
89	fixPkgconfig
90
91	# devel package
92	packageEntries devel \
93		$developDir
94}
95