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

- Stage support

- Use USE_OCAMLFIND_PLIST instead of doing it manually
This commit is contained in:
Antoine Brodin 2014-03-26 21:11:12 +00:00
parent a697336cb9
commit 54cc705bed
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=349294

View File

@ -11,31 +11,27 @@ PKGNAMEPREFIX= ocaml-
MAINTAINER= johans@FreeBSD.org
COMMENT= A lexer generator for Unicode and OCaml
USES= gmake
USE_OCAML= true
USE_OCAML_FINDLIB= true
USE_OCAML_LDCONFIG= true
OCAMLC_DEPEND= ocaml>=3.10:${OCAMLC_PORT}
USE_OCAMLFIND_PLIST= yes
ALL_TARGET= all all.opt
USE_GMAKE= yes
MAKE_JOBS_UNSAFE= yes
.if !defined(NOPORTDOCS)
ALL_TARGET+= doc
PORTDOCS= *
.endif
PKGDEINSTALL= ${PKGINSTALL}
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDOCS}
ALL_TARGET+= doc
NO_STAGE= yes
post-install:
@${FIND} ${PREFIX}/${OCAML_SITELIBDIR}/${PORTNAME} -type f | \
${SED} "s,^${PREFIX}/,," >> ${TMPPLIST}
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/*.html ${WRKSRC}/*.css ${DOCSDIR}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/*.html ${WRKSRC}/*.css ${STAGEDIR}${DOCSDIR}
.endif
.include <bsd.port.mk>