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

boost.version       1.88

github.setup        andrivet ADVobfuscator 2.1.2 v
name                [string tolower ${github.project}]
revision            0
categories          devel
platforms           any
license             BSD
maintainers         nomaintainer
description         Obfuscation library based on C++20 and metaprogramming
long_description    {*}${description}

checksums           rmd160  6cb3fdadf01de54779316f6b3831daa3d8fc6df3 \
                    sha256  bb38ee3d443b7cbf88648848727da0986f48511f5e0e1e8d661ea5d43fd8f363 \
                    size    9959946
github.tarball_from archive
supported_archs     noarch

compiler.cxx_standard   2020
# https://github.com/andrivet/ADVobfuscator/issues/51
compiler.blacklist-append {clang < 1600}

# FIXME: tests and examples are broken with gcc, disabling for now.
# https://github.com/andrivet/ADVobfuscator/issues/52

configure.args-append \
                    -DBUILD_EXAMPLES=OFF \
                    -DBUILD_TESTING=OFF
