svn commit: r300938 - head/security/libssh2
Sofian Brabez
sbz at FreeBSD.org
Mon Jul 16 10:47:29 UTC 2012
Author: sbz
Date: Mon Jul 16 10:47:28 2012
New Revision: 300938
URL: http://svn.freebsd.org/changeset/ports/300938
Log:
- Convert to OptionsNG
Modified:
head/security/libssh2/Makefile
Modified: head/security/libssh2/Makefile
==============================================================================
--- head/security/libssh2/Makefile Mon Jul 16 10:30:27 2012 (r300937)
+++ head/security/libssh2/Makefile Mon Jul 16 10:47:28 2012 (r300938)
@@ -23,26 +23,29 @@ USE_AUTOTOOLS= autoconf
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
-OPTIONS= GCRYPT "Use libgcrypt instead of OpenSSL" off \
- TRACE "Enable debug packet traces" off \
- ZLIB "Enable compression" on
+OPTIONS_DEFINE= GCRYPT TRACE ZLIB
+OPTIONS_DEFAULT= ZLIB
+
+GCRYPT_DESC= Use libgcrypt instead of OpenSSL
+TRACE_DESC= Enable debug packet traces
+ZLIB_DESC= Enable compression
.include <bsd.port.pre.mk>
-.if defined(WITH_TRACE)
+.if ${PORT_OPTIONS:MTRACE}
CONFIGURE_ARGS+= --enable-debug
.else
CONFIGURE_ARGS+= --disable-debug
.endif
-.if defined(WITH_GCRYPT)
+.if ${PORT_OPTIONS:MGCRYPT}
LIB_DEPENDS+= gcrypt:${PORTSDIR}/security/libgcrypt
CONFIGURE_ARGS+= --with-libgcrypt -with-libgcrypt-prefix=${LOCALBASE} --without-openssl
-CFLAGS+=-I${LOCALBASE}/include
-LDFLAGS+=-L${LOCALBASE}/lib
+CFLAGS+= -I${LOCALBASE}/include
+LDFLAGS+= -L${LOCALBASE}/lib
.endif
-.if defined(WITH_ZLIB)
+.if ${PORT_OPTIONS:MZLIB}
CONFIGURE_ARGS+= --with-libz
.else
CONFIGURE_ARGS+= --without-libz
More information about the svn-ports-head
mailing list