# -*- 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: Portfile 84550 2011-09-27 21:05:11Z snc@macports.org $

PortSystem 1.0

name                    wml
version                 2.0.11
revision                2
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

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:p5.12-eperl \
                        port:m4 \
                        port:tidy

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

depends_build           port:lynx

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

configure.env           CPATH=${prefix}/include

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

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

test.run                yes

