# -*- 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.2 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  ed97ac787f6e45982ec77c7bd299632d94578400 \
                    sha256  1630ca52bae86f2ff37eb220699fc82f951b5b18080edfa3f50dd36a526c2d95 \
                    size    21332596

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
