# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem      1.0
PortGroup       legacysupport 1.0

name		xorg-libXfont
version		1.5.4
revision    2
categories	x11 devel
license		X11 BSD
maintainers	{jeremyhu @jeremyhu} openmaintainer
description	X.org libXfont
homepage	https://www.x.org
platforms	darwin macosx
long_description X font handling library for server and utilities
master_sites	 xorg:individual/lib/

distname	libXfont-${version}

checksums       rmd160  0217438df91751a7d95d617d444be970301c238a \
                sha256  1a7f7490774c87f2052d146d1e0e64518d32e6848184a18654e8d0bb57883242 \
                size    528883

use_bzip2	yes
use_parallel_build  yes

depends_build \
	port:pkgconfig \
	port:xorg-util-macros \
	port:xorg-xtrans

depends_lib \
	port:freetype \
	port:xorg-libfontenc \
	port:bzip2 \
	port:zlib \
	port:xorg-xorgproto

configure.args \
	--with-bzip2 \
	--without-xmlto \
	--without-fop \
	--disable-devel-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

	depends_skip_archcheck-append \
		xmlto

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

	configure.args-append \
		--with-xmlto \
		--with-fop \
		--enable-devel-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 libXfont-(\\d+(?:\\.\\d+)*)
