Portfile

# $Id: Portfile 22424 2007-02-28 23:50:01Z pipping@macports.org $

PortSystem 1.0

name screen
version 4.0.3
revision 0
homepage http://www.gnu.org/software/screen/
description Screen manager with VT100/ANSI terminal emulation
long_description Screen is a full-screen window manager that multiplexes a physical \
terminal between several processes (typically interactive shells). \
Each virtual terminal provides the functions of a DEC VT100 terminal \
and, in addition, several control functions from the ANSI X3.64 (ISO \
6429) and ISO 2022 standards (e.g. insert/delete line and support for \
multiple character sets). There is a scrollback history buffer for each \
virtual terminal and a copy-and-paste mechanism that allows moving text \
regions between windows.
categories sysutils
platforms darwin
maintainers yeled@macports.org digdog@macports.org
master_sites ftp://ftp.uni-erlangen.de/pub/utilities/screen/ \
http://www.cis.nctu.edu.tw/~is85005/dports/screen/:encoding

# The file '18' above is a fix for UTF8-to-Big5HKSCS encoding translation.
# Reference: http://freebsd.sinica.edu.tw/~statue/index.php?file=20020513
distfiles-append 18:encoding

checksums ${distname}${extract.suffix} md5 8506fd205028a96c741e4037de6e3c42 \
18 md5 e5c53546a5c4968bd7e807c88e6b2198
patchfiles patch-maxargs patch-windowsize
depends_lib port:ncurses

extract.only ${distname}${extract.suffix}
post-extract { file copy ${distpath}/18 ${workpath} }
configure.args --mandir=${prefix}/share/man \
--infodir=${prefix}/share/info \
--enable-locale \
--enable-telnet \
--enable-colors256 \
--enable-rxct_osc
configure.env CPPFLAGS="-I${prefix}/include" \
LDFLAGS="-L${prefix}/lib" \
LIBS=-lncurses

post-destroot {
xinstall -m 644 ${workpath}/18 ${destroot}/${prefix}/share/${name}/utf8encodings
xinstall -m 644 ${workpath}/${distname}/etc/etcscreenrc ${destroot}/${prefix}/etc/screenrc
xinstall -m 644 ${workpath}/${distname}/terminfo/screencap ${destroot}/${prefix}/etc/termcap
system "tic ${workpath}/${distname}/terminfo/screeninfo.src"
}

platform darwin { patchfiles-append patch-osdef.h.in }

post-install {
ui_msg "===============================================================================\n"
ui_msg "Any screens running before upgrading, will not be available, post-install.\n"
ui_msg "===============================================================================\n"
}

files