# -*- 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 rpcgen-mt # The version of rpcgen from developer_cmds doesn't support the `-M` flag categories lang devel platforms darwin # no idea what to put here: permissive, restrictive? license restrictive maintainers {mojca @mojca} openmaintainer 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. fetch.type svn svn.pre_args-append --ignore-keywords # https://svnweb.freebsd.org/base/head/usr.bin/rpcgen/ svn.url https://svn.FreeBSD.org/base/head/usr.bin/rpcgen/ svn.revision 353569 # no idea what to put here version ${svn.revision} # no idea what to put here homepage https://en.wikipedia.org/wiki/RPCGEN worksrcdir rpcgen patchfiles patch-Makefile.diff \ patch-nofreebsd.diff \ patch-rpc_main.c.diff \ post-patch { reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/Makefile reinplace "s|@@CC@@|${configure.cc}|g" ${worksrcpath}/Makefile reinplace "s|@@CFLAGS@@|${configure.cflags} [get_canonical_archflags]|g" ${worksrcpath}/Makefile } use_configure no installs_libs no # Do we need to put the copyright statement into a separate file? # Do we need to rename the binary? variant universal {} # I'm sure there must be a better way to find the latest modification in the folder livecheck.url https://svnweb.freebsd.org/base/head/usr.bin/rpcgen/ livecheck.type regex livecheck.regex "title=\"Revision (\\d*)\">\\d* \\(of"