# $Id: Portfile,v 1.5 2005/08/12 22:48:39 toby Exp $

PortSystem 1.0
name             links1
version          1.00pre14
distname         links-${version}
categories       www
maintainers      toby@opendarwin.org
description      text WWW browser with tables
long_description \
    Links is a text-based browser with support for HTML tables and frames.
homepage         http://artax.karlin.mff.cuni.cz/~mikulas/links/
platforms        darwin
master_sites     ${homepage}download/
checksums        md5 87713eaab818c73503807fc13340fe5f
configure.args   --without-ssl

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

post-destroot {
    set bindir ${destroot}${prefix}/bin
    file rename ${bindir}/links ${bindir}/links1
    set man1dir ${destroot}${prefix}/share/man/man1
    file rename ${man1dir}/links.1 ${man1dir}/links1.1
}

variant ssl {
    configure.args-delete --without-ssl
    depends_lib-append lib:libssl.0.9:openssl
}
