# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0

name                proctools
version             0.4pre1
revision            2
categories          sysutils
maintainers         nomaintainer
license             BSD
installs_libs       no

description         pgrep, pkill and pfind for OpenBSD and Darwin (Mac OS X)
long_description    The proctools are text-based utilities to scan for and send \
                    signals to processes.
homepage            http://sourceforge.net/projects/proctools/
platforms           darwin
master_sites        sourceforge:proctools

checksums           md5 714e4350749c680a7806635632d524b1 \
                    sha1 2e60ac272532406e595698b1315ccfb481e76d42 \
                    rmd160 5393194a38105298ab0715bcfeaba9e27a761cfe

use_configure       no
build.type          bsd
build.env           CC=${configure.cc}

destroot.destdir    PREFIX=${destroot}${prefix} MANDIR=${destroot}${prefix}/share/man/man

platform darwin {
    patchfiles      patch-Makefile.diff \
                    patch-pfind-Makefile.diff \
                    patch-pfind-pfind.c.diff \
                    patch-pgrep-Makefile.diff \
                    patch-pkill-Makefile.diff \
                    patch-proctools-fmt.c.diff \
                    patch-proctools-proctools.c.diff \
                    patch-proctools-proctools.h.diff
}
