aboutsummaryrefslogtreecommitdiff
path: root/devel/ocaml-lwt/Makefile
blob: d52b41655f73e932f40c5eb7758f78adcc9f3c81 (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
34
35
36
37
38
39
40
# New ports collection makefile for:	ocaml-lwt
# Date created:				7 July 2008
# Whom:					jaapb@kerguelen.org
#
# $FreeBSD$
#

PORTNAME=	lwt
PORTVERSION=	1.1.0
CATEGORIES=	devel
MASTER_SITES=	http://www.ocsigen.org/download/
PKGNAMEPREFIX=	ocaml-

MAINTAINER=	jaapb@kerguelen.org
COMMENT=	Cooperative threading library for OCaml

USE_OCAML=		yes
OCAMLC_DEPEND=		ocaml>=3.10:${OCAMLC_PORT}
USE_OCAML_FINDLIB=	yes
USE_OCAMLFIND_PLIST=	yes
USE_OCAML_LDCONFIG=	yes

USE_GMAKE=		yes
DOCSDIR=		${PREFIX}/share/doc/ocaml/${PORTNAME}
PORTDOCS=		*

BUILD_DEPENDS+=		${SA_DIR}/ssl/ssl.a:${PORTSDIR}/security/ocaml-ssl
RUN_DEPENDS+=		${SA_DIR}/ssl/ssl.a:${PORTSDIR}/security/ocaml-ssl

SA_DIR=         	${PREFIX}/${OCAML_SITELIBDIR}

.include <bsd.port.pre.mk>

post-install:
.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
	${INSTALL_MAN} ${WRKSRC}/_build/lwt.docdir/* ${DOCSDIR}
.endif

.include <bsd.port.post.mk>