# -*- Mode: Tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:et:sw=4:ts=4:sts=4
# $Id$

PortSystem 1.0

name                libupnp
version             1.6.20
categories          devel
platforms           darwin
maintainers         ctreleaven openmaintainer
description         portable open source UPnP development kit
long_description \
    The portable SDK for UPnP(tm) Devices (libupnp) provides developers with \
    an API and open source code for building control points, devices, and \
    bridges that are compliant with Version 1.0 of the Universal Plug and Play \
    Device Architecture Specification.
license             GPL-2+

homepage            http://pupnp.sourceforge.net
master_sites        sourceforge:pupnp
# tried to Avoid Redirects but uri contains %20 character ?!?
use_bzip2           yes
checksums           md5     6839c376b5ec71d2d56f7b64e829c438 \
                    sha1    e07cb8f9f7016233f62519f7ea5c481c4a5f10b2 \
                    rmd160  bf0070d1bf522c6362607290c40c85816ac083d8

# Following 4 patches fix security faults - http://sourceforge.net/p/pupnp/bugs/122/
#patchfiles         patch-Fix_broken_strncat.diff \
                    patch-directly_use_strdup.diff \
                    patch-Fix-getaddrinfo-loop.diff \
                    patch-Fix-resolve_rel_url.diff

configure.args-append \
                    --enable-ipv6

livecheck.url       http://sourceforge.net/projects/pupnp/files/pupnp/
livecheck.regex    "title=\\\"libUPnP (\\d+(?:\\.\\d+)*)"