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

Last change on this file since 112775 was 112775, checked in by raimue@…, 6 years ago

sysutils/screen:
Apply patches on Mavericks to fix build, closes #41078

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.5 KB
Line 
1# -*- 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
2# $Id: Portfile 112775 2013-10-31 15:29:35Z raimue@macports.org $
3
4PortSystem          1.0
5
6name                screen
7version             4.0.3
8revision            3
9homepage            http://www.gnu.org/software/screen/
10description         Screen manager with VT100/ANSI terminal emulation
11long_description    \
12    Screen is a full-screen window manager that multiplexes a physical \
13    terminal between several processes (typically interactive shells). \
14    Each virtual terminal provides the functions of a DEC VT100 terminal \
15    and, in addition, several control functions from the ANSI X3.64 (ISO \
16    6429) and ISO 2022 standards (e.g. insert/delete line and support for \
17    multiple character sets). There is a scrollback history buffer for each \
18    virtual terminal and a copy-and-paste mechanism that allows moving text \
19    regions between windows.
20categories          sysutils
21license             GPL-2+
22platforms           darwin
23maintainers         nomaintainer
24master_sites        http://fresh.t-systems-sfr.com/unix/src/misc/ \
25                    ftp://ftp.uni-erlangen.de/pub/utilities/screen/ \
26                    http://www.cis.nctu.edu.tw/~is85005/dports/screen/:encoding \
27                    http://www.cis.nctu.edu.tw/~is85005/dports/screen/r23776/:launchd_priv_header
28
29# The file '18' above is a fix for UTF8-to-Big5HKSCS encoding translation.
30# Reference: http://freebsd.sinica.edu.tw/~statue/index.php?file=20020513
31distfiles-append    18:encoding
32
33checksums           ${distname}${extract.suffix} \
34                    rmd160  8c3903c1642ae30fd9d5706298919428552f7754 \
35                    sha256  78f0d5b1496084a5902586304d4a73954b2bfe33ea13edceecf21615c39e6c77 \
36                    18 \
37                    rmd160  bd143058417e1d4c040a2589fdfbf8f9203f0b4c \
38                    sha256  4d4b674a61dab6bac9b4207307c5f020fa670fc3948c39e7ea93c7fb9dfb5174 \
39                    vproc_priv.h \
40                    rmd160  ea1fb112d58a168c581ee58e761c26f7caed40ec \
41                    sha256  dcd2786d82865fb10542c20e97d7052110f7ca9a551f2ab5628c607f20e2bb2f
42
43patchfiles          patch-maxargs patch-windowsize patch-Makefile.in
44depends_lib         port:ncurses
45
46extract.only        ${distname}${extract.suffix}
47post-extract {
48    file copy ${distpath}/18 ${workpath}
49}
50configure.args      --mandir=${prefix}/share/man \
51                    --infodir=${prefix}/share/info \
52                    --enable-locale \
53                    --enable-telnet \
54                    --enable-colors256 \
55                    --enable-rxvt_osc
56configure.env       LIBS=-lncurses
57
58post-destroot {
59    xinstall -m 644 ${workpath}/18 ${destroot}${prefix}/share/${name}/utf8encodings
60    xinstall -m 644 ${worksrcpath}/etc/etcscreenrc ${destroot}${prefix}/etc/screenrc
61    xinstall -m 644 ${worksrcpath}/terminfo/screencap ${destroot}${prefix}/etc/termcap
62    system "tic ${worksrcpath}/terminfo/screeninfo.src"
63}
64
65platform darwin 9 {
66    post-patch {
67        reinplace s|^deflogin|#deflogin| ${worksrcpath}/etc/etcscreenrc
68    }
69
70    # These patches are based on http://www.opensource.apple.com/darwinsource/10.5.6/screen-12/patches/
71    # The vproc_priv.h is the private header from launchd, used in Apple's 10.5 screen patches
72    # We copied the header file from http://launchd.macosforge.org/trac/browser/trunk/launchd/src/vproc_priv.h, r23776
73    distfiles-append    vproc_priv.h:launchd_priv_header
74    post-extract        { file copy ${distpath}/vproc_priv.h ${worksrcpath} }
75    patchfiles-append   patch-config.h.in patch-configure patch-pty.c patch-window.c patch-screen.c-leopard
76}
77
78if {${os.platform} == "darwin" && ${os.major} >= 10 && ${os.major} <= 13} {
79    # These patches are based on http://www.opensource.apple.com/source/screen/screen-16/patches/
80    # The vproc_priv.h is the private header from launchd, used in Apple's 10.6 screen patches
81    # We copied the header file from http://launchd.macosforge.org/trac/browser/trunk/launchd/src/vproc_priv.h, r23776
82    distfiles-append    vproc_priv.h:launchd_priv_header
83    post-extract        { file copy ${distpath}/vproc_priv.h ${worksrcpath} }
84    patchfiles-append   patch-config.h.in patch-configure patch-pty.c patch-window.c patch-screen.c patch-process.c
85}
86
87variant vertical_split description {Apply vertical split patch} {
88    patchfiles-append patch-wrp_vertical_split
89}
90
91default_variants +vertical_split
92
93notes "
94Any screens running before upgrading, will not be available, post-install.
95"
Note: See TracBrowser for help on using the repository browser.