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

github.setup        pupnp pupnp 1.18.5 release-
revision            0
name                libupnp
categories          devel
maintainers         nomaintainer
license             BSD
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.
distname            ${name}-${version}
use_bzip2           yes
checksums           rmd160  90ecb6ab81e234effdfe57346cce08e60731c854 \
                    sha256  fe17522c605752f9f522d8cceab2a4601d75c2b701288a3bdbd9926e1bd9a9a1 \
                    size    736179
github.tarball_from releases

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
}
