# $Id$

PortSystem      1.0

name            openslp
version         1.2.1
revision        3
categories      devel net
license         BSD
platforms       darwin
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

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

test.run        yes
test.target     check

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

destroot.args   DOC_DIR=${docdir}
# hoarked post-configure routine from exif and smpeg to fix i386 build error
post-configure {
        copy -force ${prefix}/bin/glibtool ${worksrcpath}/libtool
}
post-destroot {
    xinstall -m 0644 -W ${worksrcpath} AUTHORS COPYING ChangeLog FAQ NEWS README THANKS \
        ${destroot}${docdir}
}

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