svn commit: r349290 - head/databases/ocaml-mysql
Antoine Brodin
antoine at FreeBSD.org
Wed Mar 26 20:40:26 UTC 2014
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 at 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>
More information about the svn-ports-all
mailing list