summaryrefslogtreecommitdiff
path: root/devel/ocaml-extlib/Makefile
blob: 8a54aa5260c61f7777aa2c88fc0a6bd0bd3ee5c6 (plain)
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
34
35
36
37
38
39
40
41
42
# Created by: mukai
# $FreeBSD$

PORTNAME=	extlib
PORTVERSION=	1.7.0
CATEGORIES=	devel
PKGNAMEPREFIX=	ocaml-

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Complete - yet small - standard library for OCaml

LICENSE=	LGPL21

BUILD_DEPENDS=	cppo:devel/ocaml-cppo

WRKSRC_SUBDIR=	src

USE_GITHUB=	yes
GH_ACCOUNT=	ygrek
GH_PROJECT=	ocaml-extlib

USE_OCAML=	yes
USE_OCAML_CAMLP4=yes
USE_OCAML_FINDLIB=yes
USE_OCAMLFIND_PLIST=yes

USES=		gmake
MAKE_ARGS=	VERSION="${PORTVERSION}"
ALL_TARGET=	all opt doc
MAKE_JOBS_UNSAFE=	yes

DOCSDIR=	${OCAML_DOCSDIR}/${PORTNAME}

PORTDOCS=	*

OPTIONS_DEFINE=	DOCS

post-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	(cd ${WRKSRC}/doc && ${INSTALL_DATA} * ${STAGEDIR}${DOCSDIR})

.include <bsd.port.mk>