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

name                64tass
version             1.60.3243
categories          devel
maintainers         {patater.com:jaeden @Patater} \
                    openmaintainer
license             GPL-2+ LGPL-2+ LGPL-2.1+ MIT
description         A multi pass optimizing macro assembler for the 65xx series of processors

long_description \
    64tass, sometimes also known as tass64, is a multi-pass optimizing macro \
    assembler for the 65xx series of processors written in portable C. tass64 \
    is syntax compatible with the independent, though similarly named, native \
    Commodore 64 assembler TurboAssembler by Omicron.

homepage            http://tass64.sourceforge.net/
master_sites        sourceforge:tass64
checksums           rmd160  3fe6e9c6b60877d5e4b60d17e43b31823fecdc66 \
                    sha256  9d83be3d23a2c55e085b7c7a7856c2f96080447ea120a6a8c21a217ed76427f0 \
                    size    771985

use_zip             yes
distname            ${name}-${version}-src

makefile.prefix_name prefix
makefile.override-append PREFIX

# Install docs and syntax files not installed by the Makefile
post-destroot {
    set docdir ${destroot}${prefix}/share/doc/${name}
    xinstall -m 0644 -W ${worksrcpath} \
        NEWS \
        README \
        ${docdir}

    set sharedir ${destroot}${prefix}/share/${name}
    xinstall -d ${sharedir}
    file copy ${worksrcpath}/syntax ${sharedir}/syntax
}

livecheck.regex     /${name}-(\[0-9.\]+)-src${extract.suffix}
