# -*- 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       openssl 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       rmd160  a31d516ba784ad893a740946082fe5e0f15a37ea \
                sha256  08c7ec1e76fdd66461b3784d52047f594405f31ba2791ab0c1ec7c97639f5fbd \
                size    886195

use_autoreconf  yes
autoreconf.args -fvi

depends_build-append \
                port:libtool

patchfiles      libtool-tags.patch \
                patch-slp_net.txt

build.cmd-prepend   CC=${configure.cc} \
                    CXX=${configure.cxx}

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}
