PortSystem 1.0

name		xorg-libXmu
version		1.1.3
categories	x11 devel
license		X11
maintainers	{jeremyhu @jeremyhu} openmaintainer
description	X.org libXmu
homepage	https://www.x.org
platforms	darwin macosx
long_description X.org Xmu library
master_sites	xorg:individual/lib/

distname	libXmu-${version}

checksums       rmd160  43fe670abde2f6f627e82d706bb951dd09e07552 \
                sha256  9c343225e7c3dc0904f2122b562278da5fed639b1b5e880d25111561bac5b731 \
                size    394330

use_bzip2	yes
use_parallel_build      yes

depends_build \
	port:pkgconfig

depends_lib \
	port:xorg-libXext \
	port:xorg-libXt

configure.args \
	--without-xmlto \
	--without-fop \
	--disable-docs

build.args V=1

# Depending on ghostscript for the PDF documentation creates a dependency
# loop, so you may want to install first without the docs variant
variant docs description "Install extra documentation" {
	depends_build-append \
		port:fop \
		port:xmlto \
		port:xorg-sgml-doctools

	depends_skip_archcheck-append \
		xmlto

	configure.args-delete \
		--without-xmlto \
		--without-fop \
		--disable-docs

	configure.args-append \
		--with-xmlto \
		--with-fop \
		--enable-docs

	configure.env-append \
		XMLTO=${prefix}/bin/xmlto \
		FOP=${prefix}/bin/fop
}

livecheck.type  regex
livecheck.url   https://xorg.freedesktop.org/archive/individual/lib/?C=M&O=D
livecheck.regex libXmu-(\\d+(?:\\.\\d+)*)