diff options
Diffstat (limited to 'www/ocaml-net/Makefile')
-rw-r--r-- | www/ocaml-net/Makefile | 42 |
1 files changed, 19 insertions, 23 deletions
diff --git a/www/ocaml-net/Makefile b/www/ocaml-net/Makefile index 7047b3298508..127ede2bde65 100644 --- a/www/ocaml-net/Makefile +++ b/www/ocaml-net/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: ocaml-net -# Date created: 01 March 2003 -# Whom: Stephane Legrand <stephane@freebsd.org> -# +# Created by: Stephane Legrand <stephane@FreeBSD.org> # $FreeBSD$ -# PORTNAME= net PORTVERSION= 3.5.1 @@ -45,35 +41,35 @@ OCAML_PKGDIRS= netsys netshm equeue shell netstring rpc-generator \ netcgi2-plex netcamlbox netmulticore rpc-auth-local OCAML_LDLIBS= ${OCAML_PKGDIRS:S/^/${OCAML_SITELIBDIR}\//} -OPTIONS= SSL "Enable SSL support" ON \ - NETHTTPD "Enable the integrated HTTP daemon" OFF \ - AUTH_DH "Enable Diffie-Hellman authorization support" OFF \ - GTK2 "Enable GTK2 support" OFF \ - APACHE "Enable Apache mod connector (experimental)" OFF \ - ZIP "Enable compression support" OFF \ - SCRAM "Enable SCRAM support" OFF +OPTIONS_DEFINE= SSL NETHTTPD AUTH_DH GTK2 APACHE ZIP SCRAM EXAMPLES DOCS +OPTIONS_DEFAULT= SSL +AUTH_DH_DESC= Diffie-Hellman authorization support +NETHTTPD_DESC= Integrated HTTP daemon +SCRAM_DESC= SCRAM support +ZIP_DESC= Compression support +APACHE_DESC= Apache mod connector (experimental) CONFIGURE_ARGS+= -disable-gtk .include <bsd.port.options.mk> -.if defined(WITHOUT_SSL) -CONFIGURE_ARGS+= -disable-ssl -.else +.if ${PORT_OPTIONS:MSSL} CONFIGURE_ARGS+= -enable-ssl BUILD_DEPENDS+= ${SA_DIR}/ssl/ssl.a:${PORTSDIR}/security/ocaml-ssl RUN_DEPENDS+= ${SA_DIR}/ssl/ssl.a:${PORTSDIR}/security/ocaml-ssl OCAML_PKGDIRS+= equeue-ssl rpc-ssl +.else +CONFIGURE_ARGS+= -disable-ssl .endif -.if defined(WITH_NETHTTPD) +.if ${PORT_OPTIONS:MNETHTTPD} CONFIGURE_ARGS+= -with-nethttpd OCAML_PKGDIRS+= nethttpd nethttpd-for-netcgi2 .else CONFIGURE_ARGS+= -without-nethttpd .endif -.if defined(WITH_AUTH_DH) +.if ${PORT_OPTIONS:MAUTH_DH} CONFIGURE_ARGS+= -with-rpc-auth-dh BUILD_DEPENDS+= ${SA_DIR}/cryptgps/cryptgps.a:${PORTSDIR}/security/ocaml-cryptgps RUN_DEPENDS+= ${SA_DIR}/cryptgps/cryptgps.a:${PORTSDIR}/security/ocaml-cryptgps @@ -82,7 +78,7 @@ OCAML_PKGDIRS+= rpc-auth-dh CONFIGURE_ARGS+= -without-rpc-auth-dh .endif -.if defined(WITH_GTK2) +.if ${PORT_OPTIONS:MGTK2} CONFIGURE_ARGS+= -enable-gtk2 BUILD_DEPENDS+= lablgtk2:${PORTSDIR}/x11-toolkits/ocaml-lablgtk2 RUN_DEPENDS+= lablgtk2:${PORTSDIR}/x11-toolkits/ocaml-lablgtk2 @@ -91,7 +87,7 @@ OCAML_PKGDIRS+= equeue-gtk2 CONFIGURE_ARGS+= -disable-gtk2 .endif -.if defined(WITH_APACHE) +.if ${PORT_OPTIONS:MAPACHE} USE_APACHE= 22+ CONFIGURE_ARGS+= -enable-apache -apxs ${APXS} -apache ${HTTPD} OCAML_PKGDIRS+= netcgi_apache @@ -99,7 +95,7 @@ OCAML_PKGDIRS+= netcgi_apache CONFIGURE_ARGS+= -disable-apache .endif -.if defined(WITH_ZIP) +.if ${PORT_OPTIONS:MZIP} CONFIGURE_ARGS+= -enable-zip BUILD_DEPENDS+= ${SA_DIR}/zip/zip.a:${PORTSDIR}/archivers/ocaml-zip RUN_DEPENDS+= ${SA_DIR}/zip/zip.a:${PORTSDIR}/archivers/ocaml-zip @@ -108,7 +104,7 @@ OCAML_PKGDIRS+= netzip CONFIGURE_ARGS+= -disable-zip .endif -.if defined(WITH_SCRAM) +.if ${PORT_OPTIONS:MSCRAM} CONFIGURE_ARGS+= -enable-crypto BUILD_DEPENDS+= ${SA_DIR}/cryptokit/cryptokit.a:${PORTSDIR}/security/ocaml-cryptokit RUN_DEPENDS+= ${SA_DIR}/cryptokit/cryptokit.a:${PORTSDIR}/security/ocaml-cryptokit @@ -126,11 +122,11 @@ post-patch: ${WRKSRC}/src/netzip/Makefile post-install: -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${DOCSDIR}/ @(cd ${WRKSRC}/doc/ && ${COPYTREE_SHARE} \* ${DOCSDIR}/) .endif -.if !defined(NOPORTEXAMPLES) +.if ${PORT_OPTIONS:MEXAMPLES} @${MKDIR} ${EXAMPLESDIR}/ @(cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} \* ${EXAMPLESDIR}/) .endif |