# New ports collection makefile for: ocaml-text # Date created: April 18, 2011 # Whom: Jaap Boender # # $FreeBSD$ PORTNAME= text PORTVERSION= 0.4 CATEGORIES= textproc MASTER_SITES= http://forge.ocamlcore.org/frs/download.php/537/ PKGNAMEPREFIX= ocaml- DISTNAME= ${PKGNAMEPREFIX}${PORTNAME}-${PORTVERSION} MAINTAINER= jaapb@kerguelen.org COMMENT= OCaml library for dealing with text DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME} HAS_CONFIGURE= yes CONFIGURE_ARGS= --docdir ${DOCSDIR} --prefix ${PREFIX} --mandir ${PREFIX}/man USE_GMAKE= yes USE_OCAML= yes USE_OCAML_FINDLIB= yes USE_OCAML_LDCONFIG= yes USE_OCAMLFIND_PLIST= yes OPTIONS= PCRE "Compile with PCRE support" ON SA_DIR= ${LOCALBASE}/${OCAML_SITELIBDIR} .include .if defined(WITHOUT_PCRE) CONFIGURE_ARGS+= --disable-pcre .else 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 .endif post-extract: # For nonstandard prefixes .if !exists(${OCAMLFIND_DESTDIR}) ${MKDIR} ${OCAMLFIND_DESTDIR} .endif .if !exists(${OCAMLFIND_LDCONF}) ${TOUCH} ${OCAMLFIND_LDCONF} .endif .include