PortSystem 1.0

name             links1
version          1.04
revision         0
checksums        rmd160  58e197995cda8f2ff9c9bd02bc11051bb3972167 \
                 sha256  003961d3c829efed2bd182e75843cf8fdd2f7976613654a0735d2f9652b072e9 \
                 size    670176

distname         links-${version}
categories       www
license          GPL-2+
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://www.jikos.cz/~mikulas/links/
master_sites     ${homepage}download/

depends_build    path:bin/pkg-config:pkgconfig
depends_lib      path:lib/libssl.dylib:openssl port:zlib

patchfiles       default.c.patch \
                 https.c.patch \
                 kbd.c.patch \
                 types.c.patch

configure.args   --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
}
