# -*- 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 # Ports that depend on this port must be revbump after update: # - tiledb github.setup gabime spdlog 1.13.0 v github.tarball_from archive revision 0 conflicts spdlog0 categories devel license MIT maintainers {protomail.com:XNephila @XNephila} \ {judaew @judaew} \ openmaintainer description Very fast, header only, C++ logging library. long_description {*}${description} checksums rmd160 d817142ead93091ba298ca82af3da020378a5d00 \ sha256 534f2ee1a4dcbeb22249856edfb2be76a1cf4f708a20b0ac2ed090ee24cfdbc9 \ size 264003 # Default libfmt version, customize when adding subports set libfmt_ver 10 compiler.cxx_standard 2011 compiler.thread_local_storage yes # Clear optflags; controlled by project, via cmake build type configure.optflags if {[variant_isset debug]} { cmake.build_type Debug } else { cmake.build_type RelWithDebInfo } if {[string match *clang* ${configure.compiler}]} { configure.cxxflags-append \ -Wno-macro-redefined \ -Wno-error=unknown-warning-option \ -Wno-unknown-warning-option } configure.args-append \ -DSPDLOG_BUILD_EXAMPLE=OFF \ -DSPDLOG_FMT_EXTERNAL=OFF \ -DSPDLOG_BUILD_SHARED=ON \ -DSPDLOG_BUILD_TESTS=OFF variant fmt_external description {Use external fmt library instead of bundled} { patchfiles-append \ patch-spdlog-fmt-external.diff cmake.module_path-append \ ${prefix}/lib/libfmt${libfmt_ver}/cmake depends_lib-append \ port:libfmt${libfmt_ver} configure.args-replace \ -DSPDLOG_FMT_EXTERNAL=OFF \ -DSPDLOG_FMT_EXTERNAL=ON } # Remove this subport when nheko and mtxclient have a new release. subport ${name}-fmt8 { set libfmt_ver 8 revision 0 long_description {*}${description} This port exists to support stable the \ latest stable release of mtxclient and nheko. # Allow this subport to coexist with other spdlog interations cmake.install_prefix \ ${prefix}/libexec/${subport} } variant tests description {Enable test support} { test.run yes depends_build-append \ path:bin/git:git \ port:pkgconfig configure.args-replace \ -DSPDLOG_BUILD_TESTS=OFF \ -DSPDLOG_BUILD_TESTS=ON } default_variants +fmt_external