# $Id: Portfile 82820 2011-08-21 00:36:05Z jmr@macports.org $

PortSystem      1.0

name            libthai
version         0.1.9
categories      textproc
maintainers     nomaintainer
description     Thai language support library.
long_description \
                ${description}
platforms       darwin
homepage        http://linux.thai.net/plone/TLWG/libthai/
master_sites    http://linux.thai.net/pub/thailinux/software/libthai/
patchfiles      patch-src_Makefile.in.diff
checksums       md5 7002d111b293f202d20b28aa2b4ed68f \
                sha1 236c3af13dc08c364a1d623705cd2e33877ac942 \
                rmd160 68912107094969dd0297f94dbf0a770f3ff5fe01

depends_build   port:pkgconfig
depends_lib     port:libdatrie

worksrcdir      ${name}-${version}

configure.args  --mandir=${prefix}/share/man --infodir=${prefix}/share/info --disable-doxygen-doc

use_parallel_build yes

test.run        yes
test.target     check

post-destroot {
    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
    xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING ChangeLog INSTALL NEWS README TODO ${destroot}${prefix}/share/doc/${name}
}

variant doxygen description {Create and install API docs} {
    depends_lib-append      port:doxygen
    configure.args-delete   --disable-doxygen-doc
    configure.args-append   --with-html-docdir=${prefix}/share/doc/${name}/html
}
