aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2013-03-24 03:25:00 +0800
committerbapt <bapt@FreeBSD.org>2013-03-24 03:25:00 +0800
commit5db9e4612d4be4c3ea1511a4b977041e8ad2d212 (patch)
tree122fb932a10bbeef2795fe76e9ffc647bc426a68 /net
parent246c784b50a09bfd9e0b27e483de9aca9963531d (diff)
downloadfreebsd-ports-gnome-5db9e4612d4be4c3ea1511a4b977041e8ad2d212.tar.gz
freebsd-ports-gnome-5db9e4612d4be4c3ea1511a4b977041e8ad2d212.tar.zst
freebsd-ports-gnome-5db9e4612d4be4c3ea1511a4b977041e8ad2d212.zip
Add an ipv6 option
Fix openssl option PR: ports/175130 Submitted by: Dmitry Kazarov <d.y.kazarov@mail.ru>
Diffstat (limited to 'net')
-rw-r--r--net/libvncserver/Makefile16
1 files changed, 11 insertions, 5 deletions
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 <bsd.port.options.mk>
.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