From 5db9e4612d4be4c3ea1511a4b977041e8ad2d212 Mon Sep 17 00:00:00 2001 From: bapt Date: Sat, 23 Mar 2013 19:25:00 +0000 Subject: Add an ipv6 option Fix openssl option PR: ports/175130 Submitted by: Dmitry Kazarov --- net/libvncserver/Makefile | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'net') diff --git a/net/libvncserver/Makefile b/net/libvncserver/Makefile index 31408b1f6f6a..3b2b46d7191e 100644 --- a/net/libvncserver/Makefile +++ b/net/libvncserver/Makefile @@ -3,7 +3,7 @@ PORTNAME= libvncserver PORTVERSION= 0.9.9 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= net devel MASTER_SITES= SF DISTNAME= LibVNCServer-${PORTVERSION} @@ -23,7 +23,7 @@ CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib CONFIGURE_ARGS= --without-x -OPTIONS_DEFINE= GNUTLS OPENSSL GCRYPT +OPTIONS_DEFINE= GNUTLS OPENSSL GCRYPT IPV6 OPTIONS_DEFAULT= OPENSSL GNUTLS_DESC= Enable GnuTLS support OPENSSL_DESC= Enable OpenSSL support @@ -32,7 +32,7 @@ GCRYPT_DESC= Enable libgcrypt support .include .if ${PORT_OPTIONS:MGNUTLS} -LIB_DEPENDS+= gnutls:${PORTSDIR}/security/gnutls +LIB_DEPENDS+= gnutls:${PORTSDIR}/security/gnutls CONFIGURE_ARGS+= --with-gnutls .else CONFIGURE_ARGS+= --without-gnutls @@ -40,18 +40,24 @@ CONFIGURE_ARGS+= --without-gnutls .if ${PORT_OPTIONS:MOPENSSL} USE_OPENSSL= yes -CONFIGURE_ARGS= --with-ssl +CONFIGURE_ARGS+= --with-ssl .else CONFIGURE_ARGS+= --without-crypto --without-ssl .endif .if ${PORT_OPTIONS:MGCRYPT} -LIB_DEPENDS+= gcrypt:${PORTSDIR}/security/libgcrypt +LIB_DEPENDS+= gcrypt:${PORTSDIR}/security/libgcrypt CONFIGURE_ARGS+= --with-gcrypt .else CONFIGURE_ARGS+= --without-gcrypt .endif +.if ${PORT_OPTIONS:MIPV6} +CONFIGURE_ARGS+= --with-ipv6 +.else +CONFIGURE_ARGS+= --without-ipv6 +.endif + post-patch: @${REINPLACE_CMD} -e \ 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure -- cgit