# -*- 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
# The version of rpcgen from developer_cmds doesn't support the `-M` flag
# no idea what to put here: permissive, 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.
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/
# no idea what to put here
# no idea what to put here
homepage https://en.wikipedia.org/wiki/RPCGEN
patchfiles patch-Makefile.diff \
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
# Do we need to put the copyright statement into a separate file?
# Do we need to rename the binary?
# 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.regex "title=\"Revision (\\d*)\">\\d*</a> \\(of"