# -*- 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        cc65 cc65 2.19 V
revision            1
conflicts           grc
categories          lang
platforms           darwin
maintainers         {ryandesign @ryandesign} openmaintainer
license             zlib

description         6502 C compiler
long_description    cc65 is a complete cross development package for 65(C)02 \
                    systems, including a powerful macro assembler, a C compiler, \
                    linker, librarian and several other tools.

homepage            https://cc65.github.io
github.tarball_from archive

checksums           rmd160  a1476c2854f66f210b79861f249cc80ce4860280 \
                    sha256  157b8051aed7f534e5093471e734e7a95e509c577324099c3c81324ed9d0de77 \
                    size    2284735

patchfiles          patch-doc-Makefile.diff \
                    patch-libsrc-Makefile.diff \
                    patch-src-common-version.c.diff \
                    patch-src-Makefile.diff

build.env           "BUILD_ID=N/A" \
                    "USER_CFLAGS=${configure.optflags}"
build.target        bin lib
use_parallel_build  no

variant docs description {Install extra documentation} {
    depends_build-append    port:linuxdoc-tools path:bin/perl:perl5
    build.target-append     doc
}
