# -*- 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                wmcube
version             0.98
revision            2
checksums           md5     efc6f484c53f0a98a76925a6e1a74cd3 \
                    rmd160  003abe7f3a409cbdb5880d503d8f60e081c41736 \
                    sha256  53c2b3abee52b875dbf3d1a867ac1b92a05c88f220b8e29d8253dd152c9010a4 \
                    size    38310

categories          x11
platforms           darwin
maintainers         nomaintainer
license             GPL-2+

description         3D objects tumbling about representing CPU load.

long_description    Many different objects and will select a random object if \
                    you click on the dockapp. The ability to zoom in/out and \
                    remove the percent label is present as well.

homepage            https://web.archive.org/web/20121116163211/http://dockapps.windowmaker.org/file.php/id/162
master_sites        macports_distfiles

depends_lib         port:xorg-libX11 \
                    port:xorg-libXext \
                    port:xpm

worksrcdir          ${name}/${name}

use_configure       no

# Don't inline; causes build failure at least with recent clang.
configure.cflags-append \
                    -D__STRICT_ANSI__

variant universal {}

build.args          -f Makefile.OPENBSD \
                    CC="${configure.cc} ${configure.cflags} [get_canonical_archflags cc]" \
                    LIBDIR="${configure.ldflags}" \
                    INCLUDES="${configure.cppflags}"

destroot {
    xinstall -m 0755 ${worksrcpath}/${name} \
        ${destroot}${prefix}/bin
    file copy ${worksrcpath}/../3dObjects \
        ${destroot}${prefix}/share/${name}
}

livecheck.type      none