# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4

PortSystem      1.0
PortGroup       github 1.0
PortGroup       xcode 1.0

github.setup    benbaker76 EFI-Agent 1.3.6
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
name            EFIAgent
revision        0
categories      sysutil aqua
maintainers     {i0ntempest @i0ntempest} openmaintainer
license         MIT

description     Simple, low resource, efficient and no frills tool to mount EFI partitions.
long_description \
                {*}${description}

checksums       rmd160  09b770805f07024f5e2913045206e5d1f8d9f392 \
                sha256  095bf9242ce06fe28dbbbe46c6e8bec400a96edd7a24dd36c95b220950b75155 \
                size    1201484

platforms       macosx

xcode.target    "EFI Agent"
xcode.configuration \
                Release

if {${os.major} >= 22} {
    xcode.build.settings-append \
        CODE_SIGN_IDENTITY=-
} else {
    xcode.build.settings-append \
        CODE_SIGN_IDENTITY= CODE_SIGNING_REQUIRED=NO
}

destroot {
    file copy ${worksrcpath}/build/${xcode.configuration}/EFI\ Agent.app ${destroot}${applications_dir}
}
