svn commit: r323818 - head/textproc/ocaml-text

Alexey Dokuchaev danfe at FreeBSD.org
Sun Jul 28 10:27:28 UTC 2013


Author: danfe
Date: Sun Jul 28 10:27:27 2013
New Revision: 323818
URL: http://svnweb.freebsd.org/changeset/ports/323818

Log:
  Unbreak parallel builds and cleanup Makefile while I am at it.

Modified:
  head/textproc/ocaml-text/Makefile

Modified: head/textproc/ocaml-text/Makefile
==============================================================================
--- head/textproc/ocaml-text/Makefile	Sun Jul 28 09:46:15 2013	(r323817)
+++ head/textproc/ocaml-text/Makefile	Sun Jul 28 10:27:27 2013	(r323818)
@@ -11,35 +11,27 @@ DISTNAME=	${PKGNAMEPREFIX}${PORTNAME}-${
 MAINTAINER=	jaapb at 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>


More information about the svn-ports-all mailing list