PortSystem       1.0

name             wmbinclock
version          0.1
categories       x11
maintainers      nomaintainer
description      a binary clock windowmaker applet
long_description \
    wmBinClock is a windowmaker applet that displays the current \
    system time as a binary clock. You have to add up the bits \
    to get the time. The clock has a 24 hour format.
homepage         http://www.inxsoft.net/wmbinclock/
platforms        darwin
master_sites     ${homepage}
checksums        md5 83bc44148870b04a9d6588c7e0558058
worksrcdir       wmBinClock
depends_lib      port:xpm
patch {
    reinplace "s|#include <values.h>||" $worksrcpath/wmBinClock.c
}
use_configure    no
build.args       CC="${configure.cc}" \
                 INCDIR="${configure.cppflags}" \
                 CFLAGS="${configure.cflags} -Wall ${configure.cc_archflags}" \
                 LIBDIR="${configure.ldflags} ${configure.ld_archflags}"
destroot.destdir DESTDIR=${destroot}${prefix}