# -*- 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           legacysupport 1.1
PortGroup           meson 1.0
PortGroup           sourcehut 1.0

# fmemopen
legacysupport.newest_darwin_requires_legacy 10

sourcehut.setup     sircmpwn koio 0.1.2
categories          devel
license             BSD
maintainers         nomaintainer
description         ${name} is a tool & library for embedding files \
                    into C programs
long_description    ${description}
checksums           rmd160  5085a0ccb04c50840266223ff8fa99b046afcaee \
                    sha256  80a2bb627e4968a4266f663e90df57673d285dbbe797be53f099ba7f9bc65162 \
                    size    6064

# Remove invalid linker flag:
# ld: unknown option: --version-script
# Relax one warning-to-error:
# hashtable.c:7:77: error: expression does not compute the number of elements in this array;
# element type is 'struct ko_hashtable_entry *', not 'struct ko_hashtable_entry' [-Werror=sizeof-array-div]
patchfiles-append   patch-meson.build.diff

compiler.c_standard 1999
compiler.blacklist-append \
                    *gcc-4.0 *gcc-4.2
