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

github.setup        pupnp pupnp 1.14.17 release-

github.tarball_from releases
name                libupnp
distname            ${name}-${version}
checksums           sha1    ca4b9826c4f122898c2d39f4ec95d608c4d29a0a \
                    rmd160  e75a7989b80765b758fcfb3744a080c42d9ff634 \
                    sha256  9b877242eba0428c7f949af4d6e7b7b908ce5ebc67cc13475ee6eb0d9bcb6ffb \
                    size    695489

categories          devel
platforms           darwin
maintainers         nomaintainer

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             BSD
use_bzip2           yes

compiler.cxx_standard 2011

configure.args-append \
                    -DBUILD_TESTING:BOOL=OFF

depends_test        port:gtest

variant test description {enable tests} {
    configure.args-replace  -DBUILD_TESTING:BOOL=OFF -DBUILD_TESTING:BOOL=ON
    test.run                yes
}
