diff options
author | Jason Helfman <jgh@FreeBSD.org> | 2013-03-21 00:14:09 +0000 |
---|---|---|
committer | Jason Helfman <jgh@FreeBSD.org> | 2013-03-21 00:14:09 +0000 |
commit | bda419448330d77883b3608380756908154e3252 (patch) | |
tree | 3328d4bba7bc0d4beff1a80ea195206340e7f4a9 /textproc/ocaml-text | |
parent | 0735c1beae84c1bf1167d9a122698b5626e9d734 (diff) | |
download | ports-bda419448330d77883b3608380756908154e3252.tar.gz ports-bda419448330d77883b3608380756908154e3252.zip |
- adopt optionsNG
- trim historical header
Approved by: portmgr (miwi)
Notes
Notes:
svn path=/head/; revision=314784
Diffstat (limited to 'textproc/ocaml-text')
-rw-r--r-- | textproc/ocaml-text/Makefile | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/textproc/ocaml-text/Makefile b/textproc/ocaml-text/Makefile index 6438bbb73fa6..6f406c977c3d 100644 --- a/textproc/ocaml-text/Makefile +++ b/textproc/ocaml-text/Makefile @@ -1,7 +1,4 @@ -# New ports collection makefile for: ocaml-text -# Date created: April 18, 2011 -# Whom: Jaap Boender <jaapb@kerguelen.org> -# +# Created by: Jaap Boender <jaapb@kerguelen.org> # $FreeBSD$ PORTNAME= text @@ -25,18 +22,20 @@ USE_OCAML_FINDLIB= yes USE_OCAML_LDCONFIG= yes USE_OCAMLFIND_PLIST= yes -OPTIONS= PCRE "Compile with PCRE support" ON +OPTIONS_DEFINE= PCRE +OPTIONS_DEFAULT= PCRE SA_DIR= ${LOCALBASE}/${OCAML_SITELIBDIR} .include <bsd.port.pre.mk> +.include <bsd.port.options.mk> -.if defined(WITHOUT_PCRE) -CONFIGURE_ARGS+= --disable-pcre -.else +.if ${PORT_OPTIONS:MPCRE} CONFIGURE_ARGS+= --enable-pcre BUILD_DEPENDS+= ${SA_DIR}/pcre/pcre.a:${PORTSDIR}/devel/ocaml-pcre RUN_DEPENDS+= ${SA_DIR}/pcre/pcre.a:${PORTSDIR}/devel/ocaml-pcre +.else +CONFIGURE_ARGS+= --disable-pcre .endif post-extract: |