Files

45 lines
1.6 KiB
Tcl

# -*- 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
PortGroup openssl 1.0
github.setup libcpr cpr 1.11.1
revision 0
categories devel net
license MIT
maintainers nomaintainer
description C++ Requests: Curl for People
long_description C++ Requests is a simple wrapper around libcurl.
homepage https://docs.libcpr.org
checksums rmd160 ae828991606d05a54a6870ee4aba26f1053606d7 \
sha256 e84b8ef348f41072609f53aab05bdaab24bf5916c62d99651dfbeaf282a8e0a2 \
size 141502
github.tarball_from archive
depends_lib-append port:curl \
port:gtest
compiler.cxx_standard 2017
configure.args-append \
-DBUILD_SHARED_LIBS=ON \
-DCPR_BUILD_TESTS=ON \
-DCPR_ENABLE_CPPCHECK=OFF \
-DCPR_ENABLE_LINTING=OFF \
-DCPR_ENABLE_SSL=ON \
-DCPR_FORCE_OPENSSL_BACKEND=ON \
-DCPR_GENERATE_COVERAGE=OFF \
-DCPR_USE_BOOST_FILESYSTEM=OFF \
-DCPR_USE_SYSTEM_CURL=ON \
-DCPR_USE_SYSTEM_GTEST=ON
configure.pre_args-replace \
-DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=ON \
-DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=OFF
# FIXME: some test cases fail on powerpc:
# https://github.com/libcpr/cpr/issues/1088
test.run yes