aboutsummaryrefslogtreecommitdiff
path: root/security/libssh2/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'security/libssh2/Makefile')
-rw-r--r--security/libssh2/Makefile20
1 files changed, 16 insertions, 4 deletions
diff --git a/security/libssh2/Makefile b/security/libssh2/Makefile
index a057d117bbd0..f62f39925b79 100644
--- a/security/libssh2/Makefile
+++ b/security/libssh2/Makefile
@@ -18,10 +18,19 @@ COMMENT= A library implementing the SSH2 protocol
USE_OPENSSL= yes
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
-OPTIONS= GCRYPT "Use libgcrypt instead of OpenSSL" off
+
+OPTIONS= GCRYPT "Use libgcrypt instead of OpenSSL" off \
+ TRACE "Enable debug packet traces" off \
+ ZLIB "Enable compression" on
.include <bsd.port.pre.mk>
+.if defined(WITH_TRACE)
+CONFIGURE_ARGS+= --enable-debug
+.else
+CONFIGURE_ARGS+= --disable-debug
+.endif
+
.if defined(WITH_GCRYPT)
LIB_DEPENDS+= gcrypt:${PORTSDIR}/security/libgcrypt
CONFIGURE_ARGS+= --with-libgcrypt -with-libgcrypt-prefix=${LOCALBASE} --without-openssl
@@ -29,6 +38,12 @@ CFLAGS+=-I${LOCALBASE}/include
LDFLAGS+=-L${LOCALBASE}/lib
.endif
+.if defined(WITH_ZLIB)
+CONFIGURE_ARGS+= --with-libz
+.else
+CONFIGURE_ARGS+= --without-libz
+.endif
+
MAN3= libssh2_banner_set.3 \
libssh2_base64_decode.3 \
libssh2_channel_close.3 \
@@ -125,9 +140,6 @@ MAN3= libssh2_banner_set.3 \
libssh2_version.3
post-patch:
- @${REINPLACE_CMD} -e '/ssh2_sample\.o/d' ${WRKSRC}/Makefile.in
- @${REINPLACE_CMD} -e 's|SHLIB_SUFFIX_NAME@ |SHLIB_SUFFIX_NAME@.0 |g' \
- ${WRKSRC}/src/Makefile.in
@${REINPLACE_CMD} -e 's|(libdir)/pkgconfig|(prefix)/libdata/pkgconfig|' \
${WRKSRC}/Makefile.in