1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-11 02:50:24 +00:00
freebsd-ports/security/libssh/Makefile
Tijl Coosemans 74a7f8c73c Bump PORTREVISION on more ports that depend on libgcrypt after the update
in r363436 and remove the UPDATING entry because it did not guarantee
that all ports were updated nor that they were updated in the right order.
Also remove libgcrypt.la again.

PR:		192342
Approved by:	portmgr (implicit, bump unstaged ports)
2014-08-05 22:13:29 +00:00

61 lines
1.8 KiB
Makefile

# Created by: Alexander Logvinov <ports@logvinov.com>
# $FreeBSD$
PORTNAME= libssh
DISTVERSION= 0.6.1
PORTREVISION= 1
CATEGORIES= security devel
MASTER_SITES= http://git.libssh.org/projects/libssh.git/snapshot/ \
LOCAL/fluffy
MAINTAINER= fluffy@FreeBSD.org
COMMENT= Library implementing the SSH1 and SSH2 protocol
OPTIONS_DEFINE= SSH1 STATIC
OPTIONS_RADIO= CRYPTO
OPTIONS_RADIO_CRYPTO= GCRYPT OPENSSL
OPTIONS_DEFAULT= OPENSSL STATIC
OPTIONS_SUB= yes
USES= cmake tar:bzip2
CMAKE_SOURCE_PATH= ${WRKSRC}
CONFIGURE_WRKSRC= ${CMAKE_SOURCE_PATH}/build
BUILD_WRKSRC= ${CONFIGURE_WRKSRC}
INSTALL_WRKSRC?= ${BUILD_WRKSRC}
USE_LDCONFIG= yes
LICENSE= LGPL21
LICENSE_FILE= ${WRKSRC}/COPYING
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
OPENSSL_CMAKE_ON= -DWITH_OPENSSL:BOOL=ON
OPENSSL_CMAKE_OFF= -DWITH_OPENSSL:BOOL=OFF
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
.include <bsd.port.options.mk>
post-patch:
@${RM} ${PATCH_WRKSRC}/cmake/Modules/UseDoxygen.cmake
@${REINPLACE_CMD} -e '/add_subdirectory.*s)/d' \
-e 's|LIB_INSTALL_DIR}|CMAKE_INSTALL_PREFIX}/libdata|' \
-e 's|CMAKE_INSTALL_DIR}|CMAKE_INSTALL_DIR}/libssh|' \
${PATCH_WRKSRC}/CMakeLists.txt
@${REINPLACE_CMD} -e 's|CMAKE_HAVE_THREADS_LIBRARY|CMAKE_USE_PTHREADS_INIT|' \
${PATCH_WRKSRC}/src/threads/CMakeLists.txt \
${PATCH_WRKSRC}/src/CMakeLists.txt
@${REINPLACE_CMD} -e 's|-lssh_threads|-lssh_threads ${PTHREAD_LIBS}|' \
-e 's|$${INCLUDE_INSTALL_DIR}|$${INCLUDE_INSTALL_DIR} ${PTHREAD_CFLAGS}|' \
${PATCH_WRKSRC}/libssh_threads.pc.cmake
.include <bsd.port.mk>