PortSystem 1.0

name            wmmemmon
version         1.0.1
revision        1
categories      sysutils x11
license         GPL-2+
maintainers     nomaintainer
platforms       darwin freebsd
description     A "lcd" dockapp that displays the current memory/swap   \
                usage
long_description \
    WMMemMon is a program to monitor memory/swap usage. It is a dockapp \
    that is supported by X window managers such as WindowMaker,         \
    AfterStep, BlackBox, and Enlightenment.

homepage        http://seiichisato.jp/dockapps/
master_sites    ${homepage}src/
use_bzip2       yes
checksums       md5 fc3127a322351ec6eaf0aba5bfd30185
configure.args  --mandir=${prefix}/share/man
depends_lib \
	port:xorg-libXext \
	port:xpm

test.run        yes
test.target     check

# Update config.guess and config.sub to be able to build on arm64.
depends_build-append    port:automake
post-patch {
    set automake_dirs [glob -directory ${prefix}/share automake-*]
    set automake_dir [lindex [lsort -command vercmp $automake_dirs] end]
    copy -force ${automake_dir}/config.guess ${automake_dir}/config.sub \
        ${worksrcpath}
}
