# -*- 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           meson   1.0
PortGroup           openssl 1.0

epoch               1
github.setup        rizinorg rizin 0.8.1 v
github.tarball_from releases
revision            0
# Please revbump cutter-rizin whenever this is updated to a new version

homepage            https://rizin.re

description         UNIX-like reverse engineering framework and command-line \
                    toolset

long_description    Rizin is a fork of the radare2 reverse engineering \
                    framework with a focus on usability, working features and \
                    code cleanliness.

categories          devel
license             LGPL-3
maintainers         {l2dy @l2dy} \
                    {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer

distname            ${github.project}-src-v${github.version}
worksrcdir          ${github.project}-v${github.version}
use_xz              yes

checksums           rmd160  e62bbe4973c20a43ac6dc240e70bb5052579e819 \
                    sha256  ef2b1e6525d7dc36ac43525b956749c1cca07bf17c1fed8b66402d82010a4ec2 \
                    size    21334856

depends_build-append \
                    port:pkgconfig

depends_lib-append  port:capstone \
                    port:libzip \
                    port:zlib \
                    port:lz4 \
                    port:zstd \
                    port:xxhash

configure.args-append \
                    -Duse_sys_capstone=enabled \
                    -Duse_sys_magic=disabled \
                    -Duse_sys_libzip=enabled \
                    -Duse_sys_zlib=enabled \
                    -Duse_sys_lz4=enabled \
                    -Duse_sys_xxhash=enabled \
                    -Duse_sys_openssl=enabled \
                    -Duse_sys_libzstd=enabled
