Lines 2-10
Link Here
|
2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
3 |
|
3 |
|
4 |
PORTNAME= libssh |
4 |
PORTNAME= libssh |
5 |
DISTVERSION= 0.8.6 |
5 |
DISTVERSION= 0.9.2 |
6 |
CATEGORIES= security devel |
6 |
CATEGORIES= security devel |
7 |
MASTER_SITES= https://www.libssh.org/files/0.8/ |
7 |
MASTER_SITES= https://www.libssh.org/files/0.9/ |
8 |
|
8 |
|
9 |
MAINTAINER= phascolarctos@protonmail.ch |
9 |
MAINTAINER= phascolarctos@protonmail.ch |
10 |
COMMENT= Library implementing the SSH2 protocol |
10 |
COMMENT= Library implementing the SSH2 protocol |
Lines 15-35
Link Here
|
15 |
USES= cmake cpe tar:xz |
15 |
USES= cmake cpe tar:xz |
16 |
USE_LDCONFIG= yes |
16 |
USE_LDCONFIG= yes |
17 |
|
17 |
|
18 |
CMAKE_ARGS= -DWITH_EXAMPLES:BOOL=OFF \ |
18 |
CMAKE_ARGS= -DWITH_EXAMPLES:BOOL=OFF |
19 |
-DWITH_TESTING:BOOL=OFF \ |
|
|
20 |
-DWITH_ZLIB:BOOL=ON |
21 |
|
19 |
|
22 |
OPTIONS_DEFINE= GSSAPI STATIC |
20 |
OPTIONS_DEFINE= GSSAPI STATIC ZLIB |
23 |
OPTIONS_RADIO= CRYPTO |
21 |
OPTIONS_RADIO= CRYPTO |
24 |
OPTIONS_RADIO_CRYPTO= GCRYPT OPENSSL |
22 |
OPTIONS_RADIO_CRYPTO= GCRYPT OPENSSL |
25 |
OPTIONS_DEFAULT= GSSAPI OPENSSL STATIC |
23 |
OPTIONS_DEFAULT= GSSAPI OPENSSL STATIC ZLIB |
26 |
OPTIONS_SUB= yes |
24 |
OPTIONS_SUB= yes |
27 |
|
25 |
|
28 |
GCRYPT_LIB_DEPENDS= libgcrypt.so:security/libgcrypt |
26 |
GCRYPT_LIB_DEPENDS= libgcrypt.so:security/libgcrypt \ |
|
|
27 |
libgpg-error.so:security/libgpg-error |
29 |
GCRYPT_CMAKE_BOOL= WITH_GCRYPT |
28 |
GCRYPT_CMAKE_BOOL= WITH_GCRYPT |
30 |
GSSAPI_CMAKE_BOOL= WITH_GSSAPI |
29 |
GSSAPI_CMAKE_BOOL= WITH_GSSAPI |
31 |
OPENSSL_USES= ssl |
30 |
OPENSSL_USES= ssl |
32 |
STATIC_CMAKE_BOOL= WITH_STATIC_LIB |
31 |
STATIC_CMAKE_BOOL= BUILD_STATIC_LIB |
|
|
32 |
ZLIB_CMAKE_BOOL= WITH_ZLIB |
33 |
|
33 |
|
34 |
post-patch: |
34 |
post-patch: |
35 |
${RM} ${PATCH_WRKSRC}/cmake/Modules/UseDoxygen.cmake |
35 |
${RM} ${PATCH_WRKSRC}/cmake/Modules/UseDoxygen.cmake |
Lines 37-45
Link Here
|
37 |
-e 's|LIB_INSTALL_DIR}|CMAKE_INSTALL_PREFIX}/libdata|' \ |
37 |
-e 's|LIB_INSTALL_DIR}|CMAKE_INSTALL_PREFIX}/libdata|' \ |
38 |
-e 's|CMAKE_INSTALL_DIR}|CMAKE_INSTALL_DIR}/libssh|' \ |
38 |
-e 's|CMAKE_INSTALL_DIR}|CMAKE_INSTALL_DIR}/libssh|' \ |
39 |
${WRKSRC}/CMakeLists.txt |
39 |
${WRKSRC}/CMakeLists.txt |
40 |
# ${REINPLACE_CMD} -e 's|-lssh_threads|-lssh_threads -lpthread|' \ |
|
|
41 |
# ${WRKSRC}/libssh_threads.pc.cmake |
42 |
${REINPLACE_CMD} -e 's| -pedantic-errors||' \ |
43 |
${WRKSRC}/cmake/Modules/DefineCompilerFlags.cmake |
44 |
|
40 |
|
|
|
41 |
post-install-STATIC-on: |
42 |
${INSTALL_DATA} ${CONFIGURE_WRKSRC}/src/libssh.a ${STAGEDIR}${PREFIX}/lib/ |
43 |
|
45 |
.include <bsd.port.mk> |
44 |
.include <bsd.port.mk> |