Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Aug 2015 17:16:20 +0000 (UTC)
From:      Veniamin Gvozdikov <vg@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r393598 - head/www/ocaml-net
Message-ID:  <201508051716.t75HGKVn029251@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: vg
Date: Wed Aug  5 17:16:19 2015
New Revision: 393598
URL: https://svnweb.freebsd.org/changeset/ports/393598

Log:
  - Added gnutls support and enabled by default

Modified:
  head/www/ocaml-net/Makefile

Modified: head/www/ocaml-net/Makefile
==============================================================================
--- head/www/ocaml-net/Makefile	Wed Aug  5 16:49:31 2015	(r393597)
+++ head/www/ocaml-net/Makefile	Wed Aug  5 17:16:19 2015	(r393598)
@@ -3,6 +3,7 @@
 
 PORTNAME=	net
 PORTVERSION=	4.0.3
+PORTREVISION=	1
 CATEGORIES=	www
 MASTER_SITES=	http://download.camlcity.org/download/
 PKGNAMEPREFIX=	ocaml-
@@ -44,11 +45,12 @@ OCAML_PKGDIRS=	netsys netshm equeue shel
 		netstring-pcre netunidata
 OCAML_LDLIBS=	${OCAML_PKGDIRS:S/^/${OCAML_SITELIBDIR}\//}
 
-OPTIONS_DEFINE=	NETHTTPD GTK2 APACHE ZIP EXAMPLES DOCS
-OPTIONS_DEFAULT=
+OPTIONS_DEFINE=	NETHTTPD GTK2 GNUTLS APACHE ZIP EXAMPLES DOCS
+OPTIONS_DEFAULT= GNUTLS
 NETHTTPD_DESC=	Integrated HTTP daemon
 ZIP_DESC=	Compression support
 APACHE_DESC=	Apache mod connector (experimental)
+GNUTLS_DESC=	SSL/TLS support via GnuTLS
 
 CONFIGURE_ARGS+=-disable-gtk \
 		-enable-pcre
@@ -71,6 +73,13 @@ CONFIGURE_ARGS+=	-enable-gtk2
 OCAML_PKGDIRS+=		equeue-gtk2
 .endif
 
+.if ${PORT_OPTIONS:MGNUTLS}
+USES+=	pkgconfig
+LIB_DEPENDS+=		libgnutls.so:${PORTSDIR}/security/gnutls
+CONFIGURE_ARGS+=	-enable-gnutls
+OCAML_PKGDIRS+=		nettls-gnutls
+.endif
+
 .if ${PORT_OPTIONS:MAPACHE}
 USE_APACHE=		22+
 CONFIGURE_ARGS+=	-enable-apache -apxs ${APXS} -apache ${HTTPD}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201508051716.t75HGKVn029251>