diff options
Diffstat (limited to 'security/libssh/Makefile')
-rw-r--r-- | security/libssh/Makefile | 25 |
1 files changed, 19 insertions, 6 deletions
diff --git a/security/libssh/Makefile b/security/libssh/Makefile index 402af1e6c473..9d8ab5dc41ec 100644 --- a/security/libssh/Makefile +++ b/security/libssh/Makefile @@ -6,24 +6,37 @@ # PORTNAME= libssh -PORTVERSION= 0.3.4 +PORTVERSION= 0.4.0 CATEGORIES= security devel -MASTER_SITES= http://www.libssh.org/files/ +MASTER_SITES= http://www.libssh.org/files/ \ + LOCAL/avl MAINTAINER= avl@FreeBSD.org COMMENT= A library implementing the SSH1 and SSH2 protocol +OPTIONS= GCRYPT "Build with libgcrypt" off + MAKE_JOBS_SAFE= yes USE_CMAKE= yes CMAKE_SOURCE_PATH= ${WRKSRC} CONFIGURE_WRKSRC= ${CMAKE_SOURCE_PATH}/build BUILD_WRKSRC= ${CONFIGURE_WRKSRC} -INSTALL_WRKSRC= ${CONFIGURE_WRKSRC} -USE_OPENSSL= yes +INSTALL_WRKSRC?= ${BUILD_WRKSRC} USE_LDCONFIG= yes +.include <bsd.port.options.mk> + +.if defined(WITH_GCRYPT) +LIB_DEPENDS+= gcrypt.16:${PORTSDIR}/security/libgcrypt +CMAKE_ARGS+= -DWITH_GCRYPT:BOOL=ON +.else +USE_OPENSSL= yes +.endif + post-patch: - @${MKDIR} ${WRKSRC}/build - @${RM} ${WRKSRC}/cmake/Modules/UseDoxygen.cmake + @${MKDIR} ${BUILD_WRKSRC} + @${RM} ${PATCH_WRKSRC}/cmake/Modules/UseDoxygen.cmake + @${REINPLACE_CMD} -e '/add_subdirectory.*s)/d' \ + ${PATCH_WRKSRC}/CMakeLists.txt .include <bsd.port.mk> |