# $Id: Portfile 30257 2007-10-23 02:28:30Z jmpp@macports.org $

PortSystem 1.0
name             links1
version          1.00pre14
distname         links-${version}
categories       www
maintainers      nomaintainer
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
}
