blob: aa65963261202e837504750e373e323fad0a948b (
plain)
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
|
# Created by: Alexander Logvinov <ports@logvinov.com>
# $FreeBSD$
PORTNAME= libssh
DISTVERSION= 0.7.3
CATEGORIES= security devel
MASTER_SITES= https://git.libssh.org/projects/libssh.git/snapshot/
MAINTAINER= johans@FreeBSD.org
COMMENT= Library implementing the SSH1 and SSH2 protocol
LICENSE= LGPL21
LICENSE_FILE= ${WRKSRC}/COPYING
OPTIONS_DEFINE= SSH1 STATIC
OPTIONS_RADIO= CRYPTO
OPTIONS_RADIO_CRYPTO= GCRYPT OPENSSL
OPTIONS_DEFAULT= OPENSSL STATIC
OPTIONS_SUB= yes
USES= cmake:outsource cpe tar:xz
USE_LDCONFIG= yes
CMAKE_ARGS= -DWITH_EXAMPLES:BOOL=OFF \
-DWITH_GSSAPI:BOOL=ON \
-DWITH_TESTING:BOOL=OFF \
-DWITH_ZLIB:BOOL=ON
GCRYPT_LIB_DEPENDS= libgcrypt.so:${PORTSDIR}/security/libgcrypt
GCRYPT_CMAKE_ON= -DWITH_GCRYPT:BOOL=ON
GCRYPT_CMAKE_OFF= -DWITH_GCRYPT:BOOL=OFF
OPENSSL_USE= openssl=yes
SSH1_DESC= Build with SSH1 support
SSH1_CMAKE_ON= -DWITH_SSH1:BOOL=ON
SSH1_CMAKE_OFF= -DWITH_SSH1:BOOL=OFF
STATIC_CMAKE_ON= -DWITH_STATIC_LIB:BOOL=ON
STATIC_CMAKE_OFF= -DWITH_STATIC_LIB:BOOL=OFF
post-patch:
@${RM} ${PATCH_WRKSRC}/cmake/Modules/UseDoxygen.cmake
@${REINPLACE_CMD} \
-e 's|LIB_INSTALL_DIR}|CMAKE_INSTALL_PREFIX}/libdata|' \
-e 's|CMAKE_INSTALL_DIR}|CMAKE_INSTALL_DIR}/libssh|' \
${WRKSRC}/CMakeLists.txt
@${REINPLACE_CMD} -e 's|-lssh_threads|-lssh_threads -lpthread|' \
${WRKSRC}/libssh_threads.pc.cmake
@${REINPLACE_CMD} -e 's| -pedantic-errors||' \
${WRKSRC}/cmake/Modules/DefineCompilerFlags.cmake
.include <bsd.port.mk>
|