# $Id: Portfile 50572 2009-05-04 19:19:09Z jeremyhu@macports.org $

PortSystem 1.0
name             abclock
version          1.0d
revision         2
categories       x11
maintainers      nomaintainer
description      analog clock for X
long_description \
    Analogue Bitmap Clock displays the current time with \
    hours and minutes in an analogue fashion but unlike \
    the traditional clock\; unlike ordinary analogue clocks, \
    this design is clear even in very small bitmaps.
homepage         http://odur.let.rug.nl/~kleiweg/abclock/
platforms        darwin
master_sites     ${homepage}
checksums        md5 a0175114294c63e13a061535823db1bf

patch {
    reinplace "s|#include <values.h>||" ${worksrcpath}/abclock.c
}
use_configure    no
build.target     all XLIBDIR="-L${prefix}/lib" XINCLUDEDIR="-I${prefix}/include" OPT="${configure.cflags}"
destroot {
    xinstall -m 555 ${worksrcpath}/abclock ${destroot}${prefix}/bin
    xinstall -m 555 ${worksrcpath}/abc_img ${destroot}${prefix}/bin
}

depends_lib \
	port:xorg-libX11

variant universal {
	build.target-append OPT="${configure.cflags} ${configure.universal_cflags}"
}
