summaryrefslogtreecommitdiff
path: root/devel/ocaml-dune/Makefile
blob: 04199cac7ea1cac887b98321f65599044b265df9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>

PORTNAME=	dune
PORTVERSION=	1.11.4
CATEGORIES=	devel
PKGNAMEPREFIX=	ocaml-

MAINTAINER=	danfe@FreeBSD.org
COMMENT=	Composable build system for OCaml (formerly jbuilder)

LICENSE=	MIT

USES=		gmake
USE_GITHUB=	yes
GH_ACCOUNT=	ocaml
USE_OCAML=	yes
USE_OCAML_FINDLIB=	yes

ALL_TARGET=	release
MAKE_ENV=	LIBDIR="${OCAML_SITELIBDIR}"
DOCSDIR=	${OCAML_DOCSDIR}/${PORTNAME}

PORTDOCS=	*.md

OPTIONS_DEFINE=	DOCS

post-patch:
# FreeBSD-specific hack, do not nag upstream (for now)
	@${REINPLACE_CMD} -e '/let doc_root/ \
		s:"doc:"${OCAML_DOCSDIR:S,^${PREFIX}/,,}:' \
		${WRKSRC}/src/install.ml

.include <bsd.port.mk>