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

name                xa
version             2.4.1
revision            0
categories          devel
maintainers         {breun @breun} openmaintainer
description         Open-source 6502 cross assembler
long_description    xa is a high-speed, two-pass portable cross-assembler. It \
                    understands mnemonics and generates code for NMOS 6502s \
                    (such as 6502A, 6504, 6507, 6510, 7501, 8500, 8501, 8502 \
                    ...), CMOS 6502s (65C02 and Rockwell R65C02) and the \
                    65816.
homepage            https://www.floodgap.com/retrotech/xa/
platforms           {darwin any}
license             GPL-2+

master_sites        https://www.floodgap.com/retrotech/xa/dists/

checksums           rmd160  aca3fea4a428a0cd30555d66b8b27355bfe55238 \
                    sha256  63c12a6a32a8e364f34f049d8b2477f4656021418f08b8d6b462be0ed3be3ac3 \
                    size    208553

use_configure       no
variant universal {}

build.args-append   CC=${configure.cc} \
                    CFLAGS="${configure.cppflags} ${configure.cflags} [get_canonical_archflags cc]" \
                    LD=${configure.cc} \
                    LDFLAGS="${configure.ldflags} [get_canonical_archflags ld]"

destroot.destdir    DESTDIR=${destroot}${prefix}
