1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00

Stage support

This commit is contained in:
Antoine Brodin 2014-03-26 20:40:26 +00:00
parent e27d4b019c
commit ddc50965ce
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=349290

View File

@ -11,9 +11,8 @@ DISTNAME= ${PKGNAMEPREFIX}${PORTNAME}-${PORTVERSION}
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>