source: trunk/dports/devel/libssh/Portfile

Last change on this file was 148232, checked in by cal@…, 17 months ago

libssh: fix livecheck

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1# -*- 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
2# $Id: Portfile 148232 2016-04-30 18:25:35Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           cmake 1.0
6
7name                libssh
8epoch               1
9version             0.7.3
10revision            1
11master_sites        https://git.libssh.org/projects/libssh.git/snapshot/
12use_bzip2           yes
13checksums           rmd160  3f62ac8aa7d2617658cabcefda47705e3f1f01a2 \
14                    sha256  5a3de53b77235bb2984c73c12dd7c6558ccfbf91e8ef77e2fad233a4b0d64d7d
15
16set major           [join [lrange [split ${version} .] 0 1] .]
17categories          devel security net
18platforms           darwin
19maintainers         cal ionic openmaintainer
20license             LGPL-2.1
21
22description         an SSH library
23
24long_description    The ssh library was designed to be used by \
25                    programmers needing a working SSH implementation \
26                    by the mean of a library.
27
28homepage            http://www.libssh.org
29
30#patchfiles
31
32depends_build-append \
33                    port:pkgconfig
34
35depends_lib         path:lib/libssl.dylib:openssl \
36                    port:zlib
37
38default_variants    +kerberos5
39
40post-extract {
41    file mkdir ${workpath}/build
42}
43
44cmake.out_of_source yes
45
46# clear configure.cppflags to prevent the cmake portgroup from adding them to
47# cflags, which breaks the build in presence of an older version, because it
48# puts -I$prefix/include before the local include directories of the port
49configure.cppflags
50configure.args-append \
51                    -DWITH_GCRYPT=OFF \
52                    -DWITH_INTERNAL_DOC=OFF \
53                    -DWITH_LIBZ=ON \
54                    -DWITH_GSSAPI=OFF
55
56variant kerberos5 description {Enable GSSApi/Kerberos support} {
57    depends_lib-append      port:kerberos5
58    configure.args-replace  -DWITH_GSSAPI=OFF \
59                            -DWITH_GSSAPI=ON
60}
61
62livecheck.type      regex
63livecheck.url       ${homepage}
64livecheck.regex     "[quotemeta ${name}] (\\d+\\.\\d+(\\.\\d+)+)"
Note: See TracBrowser for help on using the repository browser.