# $Id$

PortSystem 1.0

name                g-wrap
version             1.9.14
categories          lang
license             LGPL-2.1+
maintainers         nomaintainer
platforms           darwin
description         A tool for autogenerating scheme bindings for C language \
                      functions, structures & enums.
long_description    ${description}

homepage            http://www.nongnu.org/g-wrap/
master_sites        http://download.savannah.gnu.org/releases/g-wrap/

checksums           rmd160  87d84720a89f87c16e061c0c697382654ac8ca30 \
                    sha256  06abe8f8d2758f4d8e51f39b5cee3917ea70ec84410d4294214e43f843348d27

depends_build       port:pkgconfig

depends_lib         path:lib/pkgconfig/glib-2.0.pc:glib2 \
                    port:guile \
                    port:libffi

patchfiles          patch-configure.diff

# error: equality comparison with extraneous parentheses [-Werror,-Wparentheses-equality]
# error: indirection of non-volatile null pointer will be deleted, not trap [-Werror,-Wnull-dereference]
# error: shift count >= width of type [-Werror,-Wshift-count-overflow]
configure.args      --disable-Werror

# error: unknown type name 'intmax_t'
# error: unknown type name 'uintmax_t'; did you mean 'uintptr_t'?
compiler.blacklist-append   *clang*

# file: "libguile-srfi-srfi-1-v-3", message: "file not found"
build.env-append    DYLD_FALLBACK_LIBRARY_PATH=${prefix}/lib

# error: missing terminating " character
use_parallel_build  no

livecheck.type      regex
livecheck.regex     ${name}-(\[0-9.\]+)${extract.suffix}