# -*- 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                pidof
version             0.1.4
revision            0
categories          sysutils
license             permissive
maintainers         {devans @dbevans} openmaintainer
description         A utility to display the PID number for a given process name
long_description    ${description} 
platforms           darwin

homepage            https://web.archive.org/web/20240808152721/http://www.nightproductions.net/cli.htm
master_sites        macports_distfiles

distname            pidof_source
worksrcdir          pidof-source

checksums           rmd160  760b85eef9c3daf34aadac23bc642dc357d31add \
                    sha256  2a2cd618c7b9130e1a1d9be0210e786b85cbc9849c9b6f0cad9cbde31541e1b8

patchfiles          patch-Makefile.diff \
                    patch-pidof.c.diff

use_configure       no

variant universal {}
build.env-append    CC=${configure.cc} \
                    CFLAGS=${configure.cflags} \
                    "LDFLAGS=${configure.ldflags} [get_canonical_archflags ld]"

destroot.env-append PREFIX=${prefix}

livecheck.type      none
