# -*- 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 5.0 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  69b38fb69a4748d073d377b70c5bee43084512ae \
                        sha256  a4fbc40e4e4d2e72383e139632bcd3e6ecfdc607fb8501002668bcf40c66bde9 \
                        size    27668230

depends_build-append    path:bin/pkg-config: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.]+)}
