# -*- 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.9.1 v
github.tarball_from releases
revision            0
# Please revbump or update 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  f3c6e3fa2374b504a4d359d452bf46f4f9260a81 \
                    sha256  7ac1cd7daca7afdda742e15478b1f747fc1f813e496fee71839d1e109e543dca \
                    size    22792128

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
