# -*- 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.15 v
revision        0

checksums       rmd160  0b1f02c779d42c5c1a317f90015f827265b40875 \
                sha256  0bbc7ff633bfa208ae32d7e369cf5a7d20d5d2557a0b067c9aa98bcbf9967587 \
                size    1166860

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
