# -*- 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
PortGroup           github 1.0
PortGroup           legacysupport 1.1

github.setup        thkukuk rpcsvc-proto 1.4.4 v
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
name                rpcgen-mt
revision            0
# The version of rpcgen from developer_cmds doesn't support the `-M` flag
categories          lang devel
license             BSD
maintainers         nomaintainer

description         RPC protocol compiler
long_description    The rpcgen utility is a tool that generates C code \
                    to implement an RPC protocol. \
                    The input to rpcgen is a language similar to C known as \
                    RPC Language (Remote Procedure Call Language). \
                    This port installs a FreeBSD fork with multithreading support.

checksums           rmd160  f06036e3161113bcc95f058b61a23d45d3278cb6 \
                    sha256  40871d88a3082ac2c63f7621bd6b4753e800c398957011ec12fd1eb6db1c1a65 \
                    size    62754

# no idea what to put here
homepage            https://en.wikipedia.org/wiki/RPCGEN

depends_build       port:autoconf \
                    port:automake \
                    port:gettext

configure.cmd       ./autogen.sh && ./configure

installs_libs       no

variant universal   {}

post-destroot {
    delete ${destroot}${prefix}/include/rpcsvc
}
