svn commit: r349294 - head/devel/ocaml-ulex
Antoine Brodin
antoine at FreeBSD.org
Wed Mar 26 21:11:13 UTC 2014
Author: antoine
Date: Wed Mar 26 21:11:12 2014
New Revision: 349294
URL: http://svnweb.freebsd.org/changeset/ports/349294
QAT: https://qat.redports.org/buildarchive/r349294/
Log:
- Stage support
- Use USE_OCAMLFIND_PLIST instead of doing it manually
Modified:
head/devel/ocaml-ulex/Makefile
Modified: head/devel/ocaml-ulex/Makefile
==============================================================================
--- head/devel/ocaml-ulex/Makefile Wed Mar 26 20:48:58 2014 (r349293)
+++ head/devel/ocaml-ulex/Makefile Wed Mar 26 21:11:12 2014 (r349294)
@@ -11,31 +11,27 @@ PKGNAMEPREFIX= ocaml-
MAINTAINER= johans at 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>
More information about the svn-ports-all
mailing list