# -*- 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            Xaw3d
version         1.6.6
revision        0
categories      x11 devel
license         X11
maintainers     {jeremyhu @jeremyhu} openmaintainer
description     Athena Widgets toolkit library with 3-D styled widgets
homepage        https://www.x.org
platforms       darwin macosx
long_description ${description}
master_sites     xorg:individual/lib/

distname        libXaw3d-${version}

checksums       rmd160  a66f50dd3a1a50627f62d253dad45700a349ad04 \
                sha256  a41c3e37135ad616b1f28bbde70002afbf3cb59a30df34141f829d32eadc8646 \
                size    482040

use_xz          yes

depends_build   path:bin/pkg-config:pkgconfig

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

patch.pre_args-replace  -p0 -p1
patchfiles \
    0001-Xaw3d-1.6.1-3Dlabel.patch.patch \
    0002-Xaw3d-1.6.1-fontset.patch.patch \
    0003-Xaw3d-1.6.1-hsbar.patch.patch \
    patch-src-vendor.diff

configure.args \
        --enable-internationalization

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