# -*- 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

# 3.1 release is broken, so we use the latest commit, 2025.07.19.
# include/curl_easy.h:42:36: error: invalid conversion from 'int' to 'CURLoption' [-fpermissive]
github.setup        JosephP91 curlcpp fb07bb742b77b7ad8ed7176dbf1c6e82dd2e011e
version             3.1
revision            0
categories          devel net
license             MIT
maintainers         nomaintainer
description         Object-oriented C++ wrapper for cURL tool
long_description    {*}${description}
homepage            http://curl.haxx.se
checksums           rmd160  a5ff1f9ee64ea481afc1e5fefa0f1c661d8c49be \
                    sha256  86c4761f456b83696af690d7ea3d4636abb0a4678de7ab73abf52f2bcf26bf8c \
                    size    44984
github.tarball_from archive

# https://github.com/JosephP91/curlcpp/issues/163
patchfiles          patch-fix-linking.diff

depends_lib-append  port:curl

compiler.cxx_standard   2011

# https://github.com/JosephP91/curlcpp/issues/154
configure.args-append \
                    -DBUILD_SHARED_LIBS=SHARED
