diff options
author | danfe <danfe@FreeBSD.org> | 2013-07-28 18:27:27 +0800 |
---|---|---|
committer | danfe <danfe@FreeBSD.org> | 2013-07-28 18:27:27 +0800 |
commit | 0055ec45a75ecbb74f6ee1f2b28eaa9f0ec71f55 (patch) | |
tree | 6f320674ecbbfd25e6def618a26f15121f68b562 /textproc | |
parent | eb1469cfdd934ec4332e3a09fdc295c2fcfe80c2 (diff) | |
download | freebsd-ports-gnome-0055ec45a75ecbb74f6ee1f2b28eaa9f0ec71f55.tar.gz freebsd-ports-gnome-0055ec45a75ecbb74f6ee1f2b28eaa9f0ec71f55.tar.zst freebsd-ports-gnome-0055ec45a75ecbb74f6ee1f2b28eaa9f0ec71f55.zip |
Unbreak parallel builds and cleanup Makefile while I am at it.
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/ocaml-text/Makefile | 33 |
1 files changed, 14 insertions, 19 deletions
diff --git a/textproc/ocaml-text/Makefile b/textproc/ocaml-text/Makefile index 6f406c977c3d..159c566ba4a5 100644 --- a/textproc/ocaml-text/Makefile +++ b/textproc/ocaml-text/Makefile @@ -11,35 +11,27 @@ 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 +HAS_CONFIGURE= yes +CONFIGURE_ARGS= --docdir ${DOCSDIR} --prefix ${PREFIX} --mandir ${PREFIX}/man +USES= gmake USE_OCAML= yes USE_OCAML_FINDLIB= yes USE_OCAML_LDCONFIG= yes USE_OCAMLFIND_PLIST= yes +SA_DIR= ${LOCALBASE}/${OCAML_SITELIBDIR} +DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME} + OPTIONS_DEFINE= PCRE OPTIONS_DEFAULT= PCRE -SA_DIR= ${LOCALBASE}/${OCAML_SITELIBDIR} - -.include <bsd.port.pre.mk> -.include <bsd.port.options.mk> - -.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 +PCRE_CONFIGURE_ENABLE= pcre +PCRE_BUILD_DEPENDS= ${SA_DIR}/pcre/pcre.a:${PORTSDIR}/devel/ocaml-pcre +PCRE_RUN_DEPENDS= ${SA_DIR}/pcre/pcre.a:${PORTSDIR}/devel/ocaml-pcre post-extract: -# For nonstandard prefixes +# For non-standard prefixes .if !exists(${OCAMLFIND_DESTDIR}) ${MKDIR} ${OCAMLFIND_DESTDIR} .endif @@ -47,4 +39,7 @@ post-extract: ${TOUCH} ${OCAMLFIND_LDCONF} .endif -.include <bsd.port.post.mk> +post-patch: + @${REINPLACE_CMD} -e 's,"make","${GMAKE}",' ${WRKSRC}/setup.ml + +.include <bsd.port.mk> |