# -*- 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            mowitz
version         0.3.1
revision        1
description     Library of widgets for X applications to use.
long_description        Library of widgets for X applications to use. \
                        The widgets have been snarfed from various \
                        sources and are all open source (GPL or MIT licenses).
maintainers     nomaintainer
categories      x11
license         GPL-2+
platforms       darwin
homepage        http://siag.nu/mowitz/
master_sites    http://siag.nu/pub/mowitz/
checksums       md5     35cfd18b05d45e0ba6b48896bd258138 \
                sha1    0a850d5d47c3ec79eb294c4ef946252388ccaaf6 \
                rmd160  0fe2976726aff3a5f246ce50aeb537bc1418497b
distname        Mowitz-${version}

depends_lib     port:neXtaw \
                port:xorg-libXaw \
                port:xpm

post-patch {
    reinplace {s|docdir = $(prefix)/doc/Mowitz|docdir = $(datadir)/doc/Mowitz|} \
        ${worksrcpath}/doc/Makefile.in
}

configure.args  --with-x \
                --with-xaw3d=neXtaw \
                --x-includes=${prefix} \
                --x-libraries=${prefix}
