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

github.setup        auriamg macdylibbundler 1.0.5
revision            0
checksums           rmd160  3c5b9db4e8d71ba4d8ed18a9ebf1f1815f28aa0c \
                    sha256  13384ebe7ca841ec392ac49dc5e50b1470190466623fa0e5cd30f1c634858530 \
                    size    13101

name                dylibbundler
categories          devel
maintainers         {ryandesign @ryandesign} openmaintainer
license             MIT

description         terminal utility that eases bundling dynamic \
                    libraries (.dylib) inside app bundles

long_description    ${name} is a small command-line programs that aims to \
                    make bundling .dylibs as easy as possible. It \
                    automatically determines which dylibs are needed by your \
                    program, copies these libraries inside the app bundle, \
                    and fixes both them and the executable to be ready for \
                    distribution, all this with a single command. It will \
                    also work if your program uses plug-ins that have \
                    dependencies too.

github.tarball_from archive

pre-fetch {
    if {${os.platform} ne "darwin"} {
        ui_error "${name} is designed for use on Darwin or macOS only."
        return -code error "incompatible platform"
    }
}

compiler.cxx_standard 2011

post-destroot {
    set docdir ${prefix}/share/doc/${subport}
    xinstall -d ${destroot}${docdir}
    xinstall -m 0644 -W ${worksrcpath} LICENSE README.md ${destroot}${docdir}
}
