Skip to content

Commit 51bf5b3

Browse files
suhailskhanmascguy
authored andcommitted
mosh: minor enhancements
1 parent 2a9b380 commit 51bf5b3

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

net/mosh/Portfile

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ PortGroup perl5 1.0
55

66
name mosh
77
version 1.4.0
8-
revision 2
8+
revision 3
99
categories net
1010
license {GPL-3+ OpenSSLException}
1111
maintainers {mit.edu:quentin @quentinmit} \
@@ -44,8 +44,14 @@ post-patch {
4444
${worksrcpath}/scripts/mosh.pl
4545
}
4646

47-
#protobuf3-cpp requires c++11 now
48-
configure.cxxflags-append -std=c++11
47+
# https://github.com/protocolbuffers/protobuf/issues/9947
48+
configure.cflags-append -DNDEBUG
49+
50+
# avoid overlinking abseil
51+
configure.ldflags-append -Wl,-dead_strip_dylibs
52+
53+
# abseil uses C++17; use `gnu++17` as Mosh allows use of GNU extensions
54+
configure.cxxflags-append -std=gnu++17
4955

5056
# force protobuf3-cpp into the no_threadlocal mode on older systems
5157
if { ${os.platform} eq "darwin" && ${os.major} < 11 } {
@@ -62,11 +68,9 @@ if {${os.platform} eq "darwin" && ${os.major} > 11} {
6268
--with-crypto-library=openssl
6369
}
6470

65-
post-destroot {
66-
xinstall -d ${destroot}${prefix}/etc/bash_completion.d
67-
copy ${worksrcpath}/conf/bash-completion/completions/mosh \
68-
${destroot}${prefix}/etc/bash_completion.d/mosh
69-
}
71+
configure.args-append \
72+
--enable-completion \
73+
--disable-silent-rules
7074

7175
livecheck.type regex
7276
livecheck.url ${homepage}

0 commit comments

Comments
 (0)