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

github.setup        sahlberg libnfs 5.0.3 libnfs-
github.tarball_from archive
revision            0

description         NFS client library

long_description    {*}${description}

categories          devel sysutils
license             {BSD LGPL-2.1+}
maintainers         {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer

checksums           rmd160  db8b4ad8c35702dc1e8d6dbf9e5b3f395cbf33f9 \
                    sha256  d945cb4f4c8f82ee1f3640893a168810f794a28e1010bb007ec5add345e9df3e \
                    size    291079

configure.args-append \
                    -DBUILD_SHARED_LIBS=ON \
                    -DENABLE_UTILS=ON

# https://trac.macports.org/ticket/69724
# https://github.com/sahlberg/libnfs/issues/455
patchfiles          0001-Fix-for-older-macOS-include-sys-socket.h-before-net-.patch
