- Instead of USE_OCAML=yes use USES=ocaml. If empty USES=ocaml implies build and run - Instead of USE_OCAMLFIND_PLIST use USES=ocaml:findplist which also implies USES=ocaml:findlib - Instead of USE_OCAML_CAMLP4 use USES=ocaml:camlp4 - Instead of USE_OCAML_FINDLIB use USES=ocaml:findlib - Instead of USE_OCAML_LDCONFIG use USES=ocaml:ldconfig - Instead of USE_OCAML_WASH use USES=ocaml:wash - Instead of NO_OCAML_BUILDDEPENDS use USES=ocaml:run - Instead of NO_OCAML_RUNDDEPENDS use USES=ocaml:build - Instead of USE_OCAML_TK use USES=ocaml:tk which actually implies USES=ocaml:tkbuild and USES=ocaml:tkrun - Instead of NO_OCAMLTK_BUILDDEPENDS use USES=ocaml:tkrun - Instead of NO_OCAMLTK_RUNDEPENDS use USES=ocaml:tkbuild - USES=ocaml:dune remains unchanged - Prepare to add/remove keywords easily Approved by: mat (portmgr) Reviewed by: freebsd@dev.thsi.be Differential Revision: https://reviews.freebsd.org/D48227
34 lines
719 B
Makefile
34 lines
719 B
Makefile
PORTNAME= ulex
|
|
PORTVERSION= 1.1
|
|
PORTREVISION= 4
|
|
CATEGORIES= devel
|
|
MASTER_SITES= http://www.cduce.org/download/
|
|
PKGNAMEPREFIX= ocaml-
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Lexer generator for Unicode and OCaml
|
|
|
|
BUILD_DEPENDS= ocamlbuild:devel/ocaml-ocamlbuild
|
|
|
|
USES= gmake ocaml:camlp4,findplist,ldconfig
|
|
|
|
ALL_TARGET= all all.opt
|
|
MAKE_JOBS_UNSAFE= yes
|
|
|
|
DOCSDIR= ${OCAML_DOCSDIR}/${PORTNAME}
|
|
PORTDOCS= *
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
DOCS_ALL_TARGET= doc
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e '/^let latin1_sub_lexeme/,+3 \
|
|
s,^ s, Bytes.to_string s,' ${WRKSRC}/ulexing.ml
|
|
|
|
post-install-DOCS-on:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/*.html ${WRKSRC}/*.css ${STAGEDIR}${DOCSDIR}
|
|
|
|
.include <bsd.port.mk>
|