# -*- 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
github.setup tmux tmux 3.0a
if {${subport} eq ${name}} {
github.setup tmux tmux 2173365f4f5713a65845f3e993d3092da956746d
version 20191201-[string range ${github.version} 0 6]
maintainers {evermeet.cx:tessarek @tessus} openmaintainer
description terminal multiplexer
tmux is a \"terminal multiplexer\", it enables a number of terminals \
(or windows) to be accessed and controlled from a single terminal. \
tmux is intended to be a simple, modern, BSD-licensed alternative \
to programs such as GNU screen.
homepage https://tmux.github.io
depends_lib port:libevent port:ncurses
if {${subport} eq ${name}} {
github.tarball_from releases
checksums rmd160 2b781a3632c11098184f787774742b5e5af761ce \
sha256 4ad1df28b4afa969e59c08061b45082fdc49ff512f30fc8e43217d7b0e5f8db9 \
patchfiles fix-mem-leaks.patch
checksums rmd160 1d0a3f7081b5cd80c2999fa65dc8cf0f4d7b49c4 \
sha256 60d85bb607f435084d0afe118ec76b6b3da7fe2efbc4fb633b245c10e0773915 \
autoreconf.cmd ./autogen.sh
depends_build port:autoconf \
set reinplace_cmd [subst -nobackslashes -nocommands {s/AC_INIT\(\[tmux\], (next-[0-9]+\.[0-9]+)\)/AC_INIT([tmux], \1 (${version}))/g}]
reinplace -E $reinplace_cmd ${worksrcpath}/configure.ac
# On Mac OS X 10.4 there's no libproc.h, so we use a previous version of osdep-darwin.c (c1b9948)
file copy -force ${filespath}/osdep-darwin.8.c ${worksrcpath}/osdep-darwin.c