# -*- 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
# $Id$

PortSystem 1.0

name                    wml
version                 2.0.11
revision                5
platforms               darwin
categories              www lang
maintainers             cfaerber.name:cfaerber \
                        openmaintainer

description             Website META Language
long_description        WML is a free and extensible Webdesigner's \
                        off-line HTML generation toolkit for Unix
license                 GPL-2

homepage                http://thewml.org/
master_sites            http://thewml.org/distrib/ \
                        ftp://thewml.org/distrib/

checksums               rmd160  fead82a35d116447b860d7b1c506c6de187355e8 \
                        sha256  8e11ef19ea67ff9c4b28ff0fcacf5098881ac0c5f09ddfe3abc29f1e12be5d4a

patch.args              -p1

patchfiles              patch-configure.diff \
                        patch-Makefile.in.diff \
                        patch-wml_frontend-wml.src.diff \
                        patch-no_eperl.diff \
                        patch-no_gm4.diff \
                        patch-no_tidy.diff \
                        patch-no_txt2html.diff

depends_run             port:eperl \
                        port:m4 \
                        port:tidy

depends_lib             port:gdbm \
                        port:gettext \
                        port:libiconv \
                        port:p5.16-getopt-long \
                        port:p5.16-bit-vector \
                        port:p5.16-image-size \
                        port:p5.16-io \
                        port:p5.16-term-readkey

depends_build           port:lynx

configure.args          --with-perl=${prefix}/bin/perl5.16 \
                        --without-modules \
                        --with-openworld \
                        --with-cc=${configure.cc}

configure.env           CPATH=${prefix}/include LANG=C LC_ALL=C

build.args              CC=${configure.cc} CPP=${configure.cpp}

build.env               LANG=C LC_ALL=C

destroot.destdir        prefix=${destroot}${prefix} \
                        mandir=${destroot}${prefix}/share/man

test.run                yes