# -*- 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        datajerk c2t 0.997 v
revision            0
checksums           rmd160  92d58a9f2dd9b534dc0f90a52c5021d3140462ca \
                    sha256  bcf3b0fc596b8e77c6647f489e093380419f577e5dd334e902a9158674b43582 \
                    size    2458969

categories          devel
maintainers         {ryandesign @ryandesign} openmaintainer
license             Permissive

description         command line tool for creating Apple II cassette \
                    audio files

long_description    ${name} is a command line tool that can convert \
                    binary code/data and/or Apple-1/II Monitor text, \
                    as well as 140K disk images, into audio files \
                    suitable for use with the Apple-1 and II (II, II+, \
                    //e) cassette interface.

github.tarball_from archive

# cc1: error: unrecognized command line option "-Wno-misleading-indentation"
patchfiles          Makefile.patch

# Don't extract the pre-compiled binaries; we'll compile them ourselves.
extract.post_args-append \
                    --exclude ${worksrcdir}/bin/c2t*

set docdir          ${prefix}/share/doc/${subport}

destroot {
    xinstall -W ${worksrcpath}/bin c2t c2t-96h ${destroot}${prefix}/bin
    xinstall -d ${destroot}${docdir}
    xinstall -W ${worksrcpath} -m 0644 README.md ${destroot}${docdir}
}
