maintainers {jmr @jmroot} openmaintainer
description emulation of curses in System V Release 4.0
The Ncurses (new curses) library is a free software emulation of \
curses in System V Release 4.0, and more. It uses Terminfo format, \
supports pads and color and multiple highlights and forms \
characters and function-key mapping, and has all the other \
SYSV-curses enhancements over BSD Curses.
homepage http://invisible-island.net/ncurses/
master_sites http://invisible-mirror.net/archives/ncurses/current/
checksums rmd160 7d6513626ee64f1a1874a36e5b7f26811ea0fd59 \
sha256 22adbdd3c2ddfaabea8ea75de3c585d59d2a2cde4b5197dd7dd40a3481fc4d85
# hex.diff from http://opensource.apple.com/source/ncurses/ncurses-44/patches.applied/
configure.args --enable-widec \
--with-manpage-format=normal \
--with-pkg-config-libdir="${prefix}/lib/pkgconfig" \
# Prevent -lstdc++ from creeping into the build when not needed
if {[string match *clang* ${configure.cxx}]} {
CXXLIBS=-stdlib=${configure.cxx_stdlib} \
if {[variant_isset universal]} {
# check that this doesn't start breaking anything with new versions
reinplace s/1UL/1U/g "${worksrcpath}/include/curses.head"
system -W ${worksrcpath} "ed - include/curses.head < ${filespath}/include_curses.head.ed"
set major [lindex [split $version .] 0]
foreach f {form menu ncurses ncurses++ panel} {
ln -s lib${f}.${major}.dylib ${destroot}${prefix}/lib/lib${f}w.dylib
ln -s lib${f}.${major}.dylib ${destroot}${prefix}/lib/lib${f}w.${major}.dylib
ln -s lib${f}.a ${destroot}${prefix}/lib/lib${f}w.a
ln -s ${f}.pc ${destroot}${prefix}/lib/pkgconfig/${f}w.pc
ln -s libncurses.${major}.dylib ${destroot}${prefix}/lib/libtermcap.dylib