# -*- 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

name                xpm
version             3.5.17
revision            0
categories          x11 devel graphics
license             X11
maintainers         {jeremyhu @jeremyhu} openmaintainer
description         The X Pixmap Library
homepage            https://www.x.org
platforms           darwin macosx
long_description    XPM, X PixMap, is a format for storing/retrieving X pixmaps to/from files. \
                    It is used by a large number of common X applications and has become something \
                    of a de-facto standard.
master_sites        https://xorg.freedesktop.org/archive/individual/lib/

distname            libXpm-${version}

checksums           rmd160  02b579ff0b5aed44c935c4d00e458c57b1c6d91f \
                    sha256  64b31f81019e7d388c822b0b28af8d51c4622b83f1f0cb6fa3fc95e271226e43 \
                    size    468964

use_xz              yes
use_parallel_build  yes

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

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

livecheck.type      regex
livecheck.url       [lindex ${master_sites} 0]?C=M&O=D
livecheck.regex     libXpm-(\\d+(?:\\.\\d+)*)
