source: trunk/dports/sysutils/screen/Portfile @ 45746

Last change on this file since 45746 was 45746, checked in by digdog@…, 9 years ago
  1. Add +universal support (build ok, x86 execute ok, ppc execute notsure)
  2. Apply Apple's screen patches (should fix screen breaks after logoff/logon on leopard)
  3. #2 included Apple's private header file from launchd, copied from launchd.macosforge.org
  4. Remove old osdef.h.in patch
  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.3 KB
Line 
1# $Id: Portfile 45746 2009-01-21 06:20:49Z digdog@macports.org $
2
3PortSystem 1.0
4
5name            screen
6version         4.0.3
7revision        2
8homepage        http://www.gnu.org/software/screen/
9description     Screen manager with VT100/ANSI terminal emulation
10long_description    Screen is a full-screen window manager that multiplexes a physical \
11            terminal between several processes (typically interactive shells). \
12            Each virtual terminal provides the functions of a DEC VT100 terminal \
13            and, in addition, several control functions from the ANSI X3.64 (ISO \
14            6429) and ISO 2022 standards (e.g. insert/delete line and support for \
15            multiple character sets). There is a scrollback history buffer for each \
16            virtual terminal and a copy-and-paste mechanism that allows moving text \
17            regions between windows.
18categories      sysutils
19platforms       darwin
20maintainers     digdog@macports.org
21master_sites    http://fresh.t-systems-sfr.com/unix/src/misc/ \
22                ftp://ftp.uni-erlangen.de/pub/utilities/screen/ \
23                http://www.cis.nctu.edu.tw/~is85005/dports/screen/:encoding
24
25# The file '18' above is a fix for UTF8-to-Big5HKSCS encoding translation.
26# Reference: http://freebsd.sinica.edu.tw/~statue/index.php?file=20020513
27distfiles-append 18:encoding
28
29checksums       ${distname}${extract.suffix} md5 8506fd205028a96c741e4037de6e3c42 \
30                18 md5 e5c53546a5c4968bd7e807c88e6b2198
31patchfiles      patch-maxargs patch-windowsize patch-wrp_vertical_split
32depends_lib     port:ncurses
33
34extract.only    ${distname}${extract.suffix}
35post-extract    { file copy ${distpath}/18 ${workpath} }
36configure.args  --mandir=${prefix}/share/man \
37                --infodir=${prefix}/share/info \
38                --enable-locale \
39                --enable-telnet \
40                --enable-colors256 \
41                --enable-rxct_osc
42configure.env   LIBS=-lncurses
43
44post-destroot {
45    xinstall -m 644 ${workpath}/18 ${destroot}/${prefix}/share/${name}/utf8encodings
46    xinstall -m 644 ${workpath}/${distname}/etc/etcscreenrc ${destroot}/${prefix}/etc/screenrc
47    xinstall -m 644 ${workpath}/${distname}/terminfo/screencap ${destroot}/${prefix}/etc/termcap
48    system "tic ${workpath}/${distname}/terminfo/screeninfo.src"
49}
50
51platform darwin {
52    # These patches are based on http://www.opensource.apple.com/darwinsource/10.5.6/screen-12/patches/
53    # The vproc_priv.h is the private header from launchd, used in Apple's screen patches
54    # We copied the header file from http://launchd.macosforge.org/trac/browser/trunk/launchd/src/vproc_priv.h, r23776
55    master_sites-append http://www.cis.nctu.edu.tw/~is85005/dports/screen/r23776/:launchd_priv_header
56    distfiles-append    vproc_priv.h:launchd_priv_header
57    checksums-append    vproc_priv.h md5 50800817fa688e7e6ae379cd599f15ca
58    post-extract        { file copy ${distpath}/vproc_priv.h ${workpath}/${distname} }
59    patchfiles-append   patch-Makefile.in patch-config.h.in patch-configure patch-pty.c patch-window.c patch-screen.c
60}
61
62post-install {
63ui_msg "===============================================================================\n"
64ui_msg "Any screens running before upgrading, will not be available, post-install.\n"
65ui_msg "===============================================================================\n"
66}
Note: See TracBrowser for help on using the repository browser.