# -*- 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 PortSystem 1.0 PortGroup github 1.0 github.setup tmux tmux 3.0a if {${subport} eq ${name}} { revision 0 conflicts tmux-devel } subport tmux-devel { github.setup tmux tmux 2173365f4f5713a65845f3e993d3092da956746d version 20191201-[string range ${github.version} 0 6] revision 0 conflicts tmux } categories sysutils maintainers {evermeet.cx:tessarek @tessus} openmaintainer description terminal multiplexer long_description \ 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 platforms darwin license BSD depends_lib port:libevent port:ncurses if {${subport} eq ${name}} { github.tarball_from releases checksums rmd160 2b781a3632c11098184f787774742b5e5af761ce \ sha256 4ad1df28b4afa969e59c08061b45082fdc49ff512f30fc8e43217d7b0e5f8db9 \ size 546377 patch.pre_args -p1 patchfiles fix-mem-leaks.patch } subport tmux-devel { checksums rmd160 1d0a3f7081b5cd80c2999fa65dc8cf0f4d7b49c4 \ sha256 60d85bb607f435084d0afe118ec76b6b3da7fe2efbc4fb633b245c10e0773915 \ size 717341 use_autoreconf yes autoreconf.cmd ./autogen.sh autoreconf.args depends_build port:autoconf \ port:automake \ port:libtool \ port:pkgconfig post-extract { 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 } } platform darwin 8 { # On Mac OS X 10.4 there's no libproc.h, so we use a previous version of osdep-darwin.c (c1b9948) post-extract { file copy -force ${filespath}/osdep-darwin.8.c ${worksrcpath}/osdep-darwin.c } } post-destroot { xinstall -m 0755 -d ${destroot}${prefix}/share/doc/tmux xinstall -m 0644 ${worksrcpath}/example_tmux.conf ${destroot}${prefix}/share/doc/tmux xinstall -m 0755 -d ${destroot}${prefix}/share/vim/vimfiles/syntax xinstall -m 0644 ${filespath}/tmux.vim ${destroot}${prefix}/share/vim/vimfiles/syntax xinstall -m 0755 -d ${destroot}${prefix}/share/vim/vimfiles/ftdetect xinstall -m 0644 ${filespath}/ftdetect-tmux.vim ${destroot}${prefix}/share/vim/vimfiles/ftdetect/tmux.vim } notes "If you want integration with system pasteboard consider installing port tmux-pasteboard as well"