# -*- 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    fribidi fribidi 1.0.16 v
revision        0

checksums       rmd160  6cbbac0be7a95f9d6af19fcd6a49711d79b20706 \
                sha256  1b1cde5b235d40479e91be2f0e88a309e3214c8ab470ec8a2744d82a5a9ea05c \
                size    1098260

github.tarball_from releases

categories      textproc
license         LGPL-2.1+
maintainers     nomaintainer
platforms       darwin
description     Free Implementation of the Unicode BiDi algorithm

long_description \
    The FriBidi library implements the algorithm described in the \"Unicode \
    Standard Annex #9, The Bidirectional Algorithm\", available at \
    http://www.unicode.org/unicode/reports/tr9/.

homepage        http://fribidi.org/

use_xz          yes

# see https://trac.macports.org/ticket/60268
use_autoreconf  yes
autoreconf.args -fvi

depends_build-append \
                port:pkgconfig

patchfiles      gen.tab_Makefile.am.patch

configure.env   CC_FOR_BUILD=${configure.cc} \
                CPP_FOR_BUILD=${configure.cpp}

configure.args  --enable-static \
                --disable-silent-rules

post-destroot {
    set docdir ${prefix}/share/doc/${name}
    xinstall -d ${destroot}${docdir}
    xinstall -m 0644 -W ${worksrcpath} AUTHORS COPYING ChangeLog.old \
        NEWS README THANKS TODO ${destroot}${docdir}
}

test.run        yes
test.target     check
