Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Mar 2014 20:40:26 +0000 (UTC)
From:      Antoine Brodin <antoine@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r349290 - head/databases/ocaml-mysql
Message-ID:  <201403262040.s2QKeQwh075888@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: antoine
Date: Wed Mar 26 20:40:26 2014
New Revision: 349290
URL: http://svnweb.freebsd.org/changeset/ports/349290
QAT: https://qat.redports.org/buildarchive/r349290/

Log:
  Stage support

Modified:
  head/databases/ocaml-mysql/Makefile

Modified: head/databases/ocaml-mysql/Makefile
==============================================================================
--- head/databases/ocaml-mysql/Makefile	Wed Mar 26 20:35:55 2014	(r349289)
+++ head/databases/ocaml-mysql/Makefile	Wed Mar 26 20:40:26 2014	(r349290)
@@ -11,9 +11,8 @@ DISTNAME=	${PKGNAMEPREFIX}${PORTNAME}-${
 MAINTAINER=	jyyou@cs.nctu.edu.tw
 COMMENT=	OCaml bindings to libmysqlclient
 
-USE_GMAKE=		yes
+USES=			gmake
 USE_MYSQL=		yes
-
 USE_OCAML=		yes
 USE_OCAML_FINDLIB=	yes
 USE_OCAMLFIND_PLIST=	yes
@@ -22,16 +21,24 @@ USE_OCAML_LDCONFIG=	yes
 GNU_CONFIGURE=		yes
 
 ALL_TARGET=		all opt
-NO_STAGE=	yes
 
-.if !defined(NOPORTDOCS)
+DOCSDIR=	${OCAML_DOCSDIR}/${PORTNAME}
+PORTDOCS=	*
+
+OPTIONS_DEFINE=	DOCS
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MDOCS}
 ALL_TARGET+=		htdoc
-PORTDOCS=		*
-DOCSDIR=		${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
 
 post-install:
-	${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/doc/mysql/html/* ${DOCSDIR}
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/doc/mysql/html/* ${STAGEDIR}${DOCSDIR}
 .endif
 
+post-patch:
+	${REINPLACE_CMD} 's,OCAMLFIND_INSTFLAGS=,OCAMLFIND_INSTFLAGS=-ldconf ignore ,' \
+		${WRKSRC}/Makefile.in
+
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201403262040.s2QKeQwh075888>