# -*- 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           github 1.0

github.setup        radare valabind 2.1.0
github.tarball_from archive
revision            0

categories          devel
license             GPL-3
maintainers         {mascguy @mascguy} openmaintainer
description         This program converts vapi vala interface files into swig interfaces.
long_description    {*}${description} Allow C and Vala libraries to be used from many scripting \
                    languages, like Python, Perl, LUA, Java, Go and others.

checksums           rmd160  10ac7f5a03c7190fa52b47ccc26fcad70d636877 \
                    sha256  8a9ec9752fc64e589f6d48a0bcbdc91d0edf5e90663d9077daceb4eefa31447f \
                    size    68023

depends_build-append \
                    path:bin/pkg-config:pkgconfig

depends_lib-append \
                    path:lib/pkgconfig/glib-2.0.pc:glib2 \
                    port:gettext \
                    path:bin/vala:vala

depends_run-append \
                    port:swig

use_configure       no

#use_parallel_build  no

variant universal {}

build.args-append \
                    V=1 \
                    CC="${configure.cc} [get_canonical_archflags]"

destroot.post_args-append \
                    PREFIX=${prefix}
