# -*- 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           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.3
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  23abfc5073117b7a4c6f131cc5505187b63cec8d \
                    sha256  5572eecd903fff0e66694310ca438531243b18782ce331a4262eeb6f6ad675bc \
                    size    4197694 

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}
