# -*- 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           qt6 1.0

github.setup        radareorg iaito 6.0.2
github.tarball_from archive
revision            0

categories          devel aqua
license             GPL-3
maintainers         {i0ntempest @i0ntempest} openmaintainer

description         Fork of Cutter from the last working commit with radare2
long_description    iaito (formerly Cutter) is a free and open-source reverse engineering framework\
                    powered by radare2. Its goal is making an advanced, customizable\
                    and FOSS reverse-engineering platform while keeping the user\
                    experience at mind. Cutter is created by reverse engineers for\
                    reverse engineers.

homepage            https://www.radare.org/n/iaito.html

checksums           rmd160  02fad63a8c347559e0d92f7415de4b8cce529bd3 \
                    sha256  4e7827bf0b3ef43a616189412591e8ff6a06125021724c1454c9e5e80c80020f \
                    size    2956365
# port prone to stealth upgrade after release, consider waiting for a few days before updating to a new version

depends_build-append \
                    port:pkgconfig
depends_lib-append  port:radare2 \
                    port:capstone
depends_run-append  path:bin/dot:graphviz

qt6.depends_build   qttools
qt6.depends_lib     qtsvg

compiler.cxx_standard \
                    2017

post-patch {
    reinplace "s|/Applications|${applications_dir}|g" Makefile
}

configure.args-append \
                    --with-qmake6 \
                    QMAKE6=${qt6.dir}/bin/qmake6
