source: trunk/dports/sysutils/tmux/Portfile @ 61753

Last change on this file since 61753 was 61753, checked in by toby@…, 10 years ago

tmux: adjustments

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 KB
Line 
1# $Id: Portfile 61753 2009-12-21 00:59:35Z toby@macports.org $
2
3PortSystem 1.0
4
5name            tmux
6version         1.1
7revision        2
8categories      sysutils
9maintainers     toby
10description     terminal multiplexer
11long_description \
12    tmux is a \"terminal multiplexer\", it enables a number of terminals \
13    (or windows) to be accessed and controlled from a single terminal. \
14    tmux is intended to be a simple, modern, BSD-licensed alternative \
15    to programs such as GNU screen.
16homepage        http://tmux.sourceforge.net/
17platforms       darwin
18license         BSD
19master_sites    sourceforge
20checksums       md5 faf2fc52ac3ae63d899f6fece2c112cd \
21                sha1 8dc57a70605930bbe61664bd52ed2c8081ea5a1c \
22                rmd160 9f03922c0be46e9259202ed2fdc0834dcf01581c
23
24depends_lib     port:ncurses
25
26patchfiles      GNUmakefile.diff \
27                tmux.1.diff \
28                tmux.h.diff
29
30post-configure {
31    reinplace "s|__PREFIX__|${prefix}|g" "${worksrcpath}/GNUmakefile" "${worksrcpath}/tmux.1" "${worksrcpath}/tmux.h"
32    reinplace "s|__CC__|${configure.cc}|" "${worksrcpath}/GNUmakefile"
33    reinplace "s|__CFLAGS__|${configure.cflags}|" "${worksrcpath}/GNUmakefile"
34    reinplace "s|__LDFLAGS__|${configure.ldflags}|" "${worksrcpath}/GNUmakefile"
35}
36
37post-destroot {
38    xinstall -m 0755 -d ${destroot}${prefix}/share/doc/tmux
39    foreach file [glob ${worksrcpath}/examples/*] {
40        xinstall -m 0644 $file ${destroot}${prefix}/share/doc/tmux
41    }
42}
43
44variant screen description "behave more like screen" {
45    post-destroot {
46        xinstall -m 0644 ${worksrcpath}/examples/screen-keys.conf ${destroot}${prefix}/etc/tmux.conf
47    }
48}
49
50livecheck.type  regex
51livecheck.url   ${homepage}
52livecheck.regex tmux-(\[0-9\]+\\.\[0-9\]+)\\.tar\\.gz
Note: See TracBrowser for help on using the repository browser.