aboutsummaryrefslogtreecommitdiff
path: root/security/libssh2
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2009-12-08 09:56:12 +0000
committerPav Lucistnik <pav@FreeBSD.org>2009-12-08 09:56:12 +0000
commitd86dba7bdc9676b305ad844dad065763fad42cba (patch)
tree04ed26dc83099d5d173a3eb039b8720ed3792d59 /security/libssh2
parent426e66160fd7c708db7920fcc3fff39c97b2487b (diff)
downloadports-d86dba7bdc9676b305ad844dad065763fad42cba.tar.gz
ports-d86dba7bdc9676b305ad844dad065763fad42cba.zip
Notes
Diffstat (limited to 'security/libssh2')
-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