# -*- 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           cmake 1.1
PortGroup           compiler_blacklist_versions 1.0
PortGroup           github 1.0
PortGroup           legacysupport 1.1

# CLOCK_MONOTONIC is available on macOS Sierra and newer
legacysupport.newest_darwin_requires_legacy 15

github.setup        unicorn-engine unicorn 2.1.1
github.tarball_from archive

license             GPL-2+
categories          devel
maintainers         {@crowell crowell.biz:jeff} openmaintainer
description         CPU emulator framework
long_description    Unicorn is a lightweight multi-platform, \
    multi-architecture CPU emulator framework.
homepage            https://www.unicorn-engine.org/
checksums           rmd160  7cf3df0cfda627500ed9399a35e7ef509272d44b \
                    sha256  8740b03053162c1ace651364c4c5e31859eeb6c522859aa00cb4c31fa9cbbed2 \
                    size    4176172

depends_build-append       port:pkgconfig

# "ERROR: You need at least GCC v4.8 or Clang v3.4
# (or XCode Clang v5.1)" sometimes happens on <10.8
compiler.blacklist-append \
                    {*gcc-[3-4].*} {clang < 600}
