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

PortSystem      1.0

name            ispell
version         3.4.06
categories      textproc spelling
platforms       darwin freebsd
license         BSD
conflicts       aspell
maintainers     nomaintainer
description     An interactive spelling checker for multiple languages
long_description \
                International Ispell is an interactive spell-checking program \
                for Unix which supports a large number of European languages.
homepage        https://www.cs.hmc.edu/~geoff/ispell.html
master_sites    https://www.cs.hmc.edu/~geoff/tars/

checksums       rmd160  2d29915418360f43c73a799d915663a620dd1fca \
                sha256  17c91633d4c8075acc503163a16463fc54ab1c7453280ad39cd3db75c783eba6

build.env       TMPDIR=${workpath}

depends_build   port:bison
depends_lib     port:ncurses

configure {
            xinstall -c -m 0644 -W ${worksrcpath} local.h.macos local.h
            reinplace s|/man/|/share/man/|g ${worksrcpath}/local.h
            reinplace s|\"-lcurses\"|\"-L${prefix}/lib\ -lncurses\"| ${worksrcpath}/local.h
            reinplace s|\"cc\"|\"${configure.cc}\"| ${worksrcpath}/config.X
            reinplace "s|\"-O\"|\"${configure.cflags} [get_canonical_archflags cc]\"|" ${worksrcpath}/config.X
            reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/local.h
}

use_parallel_build   no
