1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00
freebsd-ports/security/libssh/Makefile
Mikhail Teterin 7cfa8c0a29 Upgrade from 0.8.4 to the currently-latest 0.8.6. The changelog
can be found here:

https://git.libssh.org/projects/libssh.git/tree/ChangeLog?h=libssh-0.8.6

PR:		233632
Submitted by:	Steve Wills
Approved by:	maintainer timeout
2019-01-25 21:14:14 +00:00

52 lines
1.3 KiB
Makefile

# Created by: Alexander Logvinov <ports@logvinov.com>
# $FreeBSD$
PORTNAME= libssh
DISTVERSION= 0.8.6
CATEGORIES= security devel
MASTER_SITES= https://www.libssh.org/files/0.8/
MAINTAINER= johans@FreeBSD.org
COMMENT= Library implementing the SSH2 protocol
LICENSE= LGPL21
LICENSE_FILE= ${WRKSRC}/COPYING
OPTIONS_DEFINE= STATIC GSSAPI
OPTIONS_RADIO= CRYPTO
OPTIONS_RADIO_CRYPTO= GCRYPT OPENSSL
OPTIONS_DEFAULT= OPENSSL STATIC GSSAPI
OPTIONS_SUB= yes
USES= cmake cpe tar:xz
USE_LDCONFIG= yes
CMAKE_ARGS= -DWITH_EXAMPLES:BOOL=OFF \
-DWITH_TESTING:BOOL=OFF \
-DWITH_ZLIB:BOOL=ON
GCRYPT_LIB_DEPENDS= libgcrypt.so:security/libgcrypt
GCRYPT_CMAKE_ON= -DWITH_GCRYPT:BOOL=ON
GCRYPT_CMAKE_OFF= -DWITH_GCRYPT:BOOL=OFF
OPENSSL_USES= ssl
STATIC_CMAKE_ON= -DWITH_STATIC_LIB:BOOL=ON
STATIC_CMAKE_OFF= -DWITH_STATIC_LIB:BOOL=OFF
GSSAPI_CMAKE_ON= -DWITH_GSSAPI:BOOL=ON
GSSAPI_CMAKE_OFF= -DWITH_GSSAPI: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>