# -*- 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.4
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  41526bc2df983e44b5e0b0040a02ae9cd50476e6 \
                    sha256  ea8863f095a0136388694e5a6063afd9bb7650e30243dd6251af59c5ce5601f4 \
                    size    4252854

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}
