summaryrefslogtreecommitdiffstats
path: root/www/eliom/Makefile
blob: 278823690f45b80b21767013d55985b4b4111e21 (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
43
44
45
46
47
48
49
50
51
52
53
54
55
# Created by: Jaap Boender <jaapb@kerguelen.org>
# $FreeBSD$

PORTNAME=	eliom
PORTVERSION=	3.0.3
CATEGORIES=	www
MASTER_SITES=	http://ocsigen.org/download/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Ocaml dynamic webpage generation library

LICENSE=	LGPL21_SSLEX
LICENSE_NAME=	Lesser GPL 2.1 with a special OpenSSL exception clause
LICENSE_FILE=	${WRKSRC}/COPYING
LICENSE_PERMS=	dist-mirror dist-sell pkg-mirror pkg-sell auto-accept

DEPRECATED=	Depends on broken and expiring www/ocsigen
EXPIRATION_DATE=	2015-12-30

BUILD_DEPENDS=	${PORTREQS}
RUN_DEPENDS=	${PORTREQS}

DOCSDIR=	${PREFIX}/share/doc/ocaml/${PORTNAME}
SA_DIR=		${PREFIX}/${OCAML_SITELIBDIR}

# As of 27 March 2014, USE_OCAML_LDCONFIG and USE_OCAMLFIND_PLIST compete
# for the same directores -- both add a removal step ot the TMPPLIST
# automatically.  The bsd.ocaml.mk file has to be fixed, then then former
# can be used again.  (alternatively we could provide a manually generated
# complete pkg-plist and keep using ocaml's ldconfig)

USES=			gmake
HAS_CONFIGURE=		yes
USE_OCAML=		yes
USE_OCAML_FINDLIB=	yes
USE_OCAMLFIND_PLIST=	yes
#USE_OCAML_LDCONFIG=	yes
CONFIGURE_ARGS=		--temproot ${STAGEDIR} \
			--prefix ${PREFIX} \
			--libdir ${PREFIX}/lib/ocaml/site-lib \
			--enable-natdynlink

PORTREQS=	ocaml-deriving-ocsigen>=0.3:${PORTSDIR}/devel/ocaml-deriving-ocsigen \
		js_of_ocaml>=1.3.2:${PORTSDIR}/lang/js_of_ocaml \
		ocsigen>=2.2:${PORTSDIR}/www/ocsigen \
		ocaml-tyxml>=2.2:${PORTSDIR}/textproc/ocaml-tyxml \
		${SA_DIR}/react/react.a:${PORTSDIR}/devel/ocaml-react \
		${SA_DIR}/ssl/ssl.a:${PORTSDIR}/security/ocaml-ssl \
		${SA_DIR}/calendar/calendarLib.a:${PORTSDIR}/devel/ocaml-calendar \
		${SA_DIR}/cryptokit/cryptokit.a:${PORTSDIR}/security/ocaml-cryptokit

do-configure:
	(cd ${WRKSRC} && ${SH} ./configure ${CONFIGURE_ARGS})

.include <bsd.port.mk>
OpenPOWER on IntegriCloud