PortSystem      1.0

name            openslp
version         1.2.1
revision        6
categories      devel net
license         BSD
maintainers     nomaintainer
description     Open source implementation of SLP

long_description \
    The OpenSLP project is an effort to develop an open-source \
    implementation of Service Location Protocol suitable for commercial and \
    non-commercial application. \
    Service Location Protocol is an IETF standards track protocol that \
    provides a framework to allow networking applications to discover the \
    existence, location, and configuration of networked services in \
    enterprise networks.

homepage        http://www.openslp.org/
master_sites    sourceforge:project/openslp/OpenSLP/${version}

checksums       md5 ff9999d1b44017281dd00ed2c4d32330 \
                sha1 47ab19154084d2b467f09525f5351e9ab7193cf9 \
                rmd160 a31d516ba784ad893a740946082fe5e0f15a37ea

depends_build   port:libtool
depends_lib     path:lib/libssl.dylib:openssl

patchfiles      patch-slp_net.txt libtool-tags.patch

# Recognise Apple Silicon
use_autoreconf  yes
autoreconf.args -fvi

test.run        yes
test.target     check

set docdir      ${prefix}/share/doc/${name}

destroot.args   DOC_DIR=${docdir}
post-destroot {
    xinstall -m 0644 -W ${worksrcpath} AUTHORS COPYING ChangeLog FAQ NEWS README THANKS \
        ${destroot}${docdir}
}

livecheck.regex ${name}-(\[0-9.\]+)${extract.suffix}
