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

github.setup            amadvance advancemame 3.10 v
github.tarball_from     releases
revision                0

categories              emulators games
license                 GPL-2+
maintainers             nomaintainer

description             unofficial MAME version with advanced video support

long_description        unofficial MAME and MESS versions with an advanced \
                        video support for helping the use with TVs, Arcade Monitors, \
                        Fixed Frequencies Monitors and also for PC Monitors.

homepage                https://www.advancemame.it/

checksums               rmd160  ecfcd9208d84c6e02a16229d1bbea0846430649f \
                        sha256  39ed772a5d10ce429e4ee25229c16684dbad9a6a86a786c49f37214b2ae2e81e \
                        size    27381432

depends_build-append    port:pkgconfig
depends_lib-append      port:expat \
                        port:freetype \
                        port:libsdl2 \
                        port:zlib

patchfiles              patch-configure.diff \
                        Makefile.in.diff \
                        cxxflags.diff

configure.args          --disable-silent-rules \
                        --disable-slang

# error: ‘__ATOMIC_SEQ_CST’ undeclared (first use in this function)
compiler.blacklist-append \
                        *gcc-4.0 *gcc-4.2

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

github.livecheck.regex {([0-9.]+)}