# -*- 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
PortGroup           cxx11 1.1

github.setup        Microsoft cpprestsdk 2.10.11 v
revision            1
categories          www devel
platforms           darwin
supported_archs     i386 x86_64
license             MIT
maintainers         {outlook.com:mohd.akram @mohd-akram} openmaintainer

description         C++ REST library for client-server communication

long_description    The C++ REST SDK is a Microsoft project for cloud-based \
                    client-server communication in native code using a modern \
                    asynchronous C++ API design.

checksums           rmd160  96528d84dba9efa5f36a61f901df965f405ab8c4 \
                    sha256  1b28f98b6773a50c5d19e38098bc9ec971ac1850a77682b9648266ac8e3d956d \
                    size    1757340

depends_lib-append  port:boost \
                    port:libiconv \
                    path:lib/libssl.dylib:openssl \
                    port:websocketpp

configure.args-append -DBUILD_SAMPLES=OFF -DBUILD_TESTS=OFF

variant tests description {build tests.} {
    configure.args-replace      -DBUILD_TESTS=OFF -DBUILD_TESTS=ON
    configure.post_args-append  -DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=OFF
    test.run                    yes
}