-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
Portfile
63 lines (49 loc) · 2.1 KB
/
Portfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# -*- 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 cmake 1.1
name libssh
epoch 1
version 0.10.6
revision 0
set major [join [lrange [split ${version} .] 0 1] .]
master_sites https://www.libssh.org/files/${major}
use_xz yes
checksums rmd160 3658660160ae13547a3fb5f3d4b137415db513af \
sha256 1861d498f5b6f1741b6abc73e608478491edcf9c9d4b6630eef6e74596de9dc1 \
size 561036
categories devel security net
maintainers {ionic @Ionic} openmaintainer
license LGPL-2.1
description an SSH library
long_description The ssh library was designed to be used by \
programmers needing a working SSH implementation \
by the mean of a library.
homepage https://www.libssh.org
depends_build-append \
port:pkgconfig \
path:bin/doxygen:doxygen
depends_lib path:lib/libssl.dylib:openssl \
port:zlib
default_variants +kerberos5
post-extract {
file mkdir ${workpath}/build
}
# -isystem has the added benefit of moving the include
# directory specified to the end of the include path list.
# This will help the build system respect custom include
# paths correctly (i.e., searching them before the MP include
# directory.)
configure.cppflags-replace -I${prefix}/include -isystem${prefix}/include
configure.args-append \
-DWITH_GCRYPT=OFF \
-DWITH_INTERNAL_DOC=OFF \
-DWITH_LIBZ=ON \
-DWITH_GSSAPI=OFF
variant kerberos5 description {Enable GSSApi/Kerberos support} {
depends_lib-append port:kerberos5
configure.args-replace -DWITH_GSSAPI=OFF \
-DWITH_GSSAPI=ON
}
livecheck.type regex
livecheck.url https://git.libssh.org/projects/libssh.git/refs/tags
livecheck.regex "${name}-(\\d+\\.\\d+(\\.\\d+)+)"