blob: d80aa66c8631e9723c71e88ae616123ab7f1e4a1 (
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
# $NetBSD: Makefile,v 1.38 2020/01/18 21:51:09 jperkin Exp $
#
VERSION= 2.15.0
GITHUB_PROJECT= ocsigenserver
PKGNAME= ocsigen-${VERSION}
PKGREVISION= 1
DISTNAME= ${GITHUB_PROJECT}-${VERSION}
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_GITHUB:=ocsigen/}
MAINTAINER= jaapb@NetBSD.org
HOMEPAGE= http://www.ocsigen.org/
COMMENT= Web programming framework for OCaml
LICENSE= gnu-lgpl-v2.1
# ln: ./ocsipersist.mli: File exists
# Makefile:42: recipe for target 'ocsipersist.mli' failed
MAKE_JOBS_SAFE= no
DEPENDS+= ocaml-react-[0-9]*:../../devel/ocaml-react
DEPENDS+= ocaml-text-[0-9]*:../../textproc/ocaml-text
OCSIGEN_USER?= ${APACHE_USER}
OCSIGEN_GROUP?= ${APACHE_GROUP}
PKG_GROUPS= ${OCSIGEN_GROUP}
PKG_USERS= ${OCSIGEN_USER}:${OCSIGEN_GROUP}
PKG_GROUPS_VARS+= OCSIGEN_GROUP
PKG_USERS_VARS+= OCSIGEN_USER
BUILD_DEFS+= APACHE_USER APACHE_GROUP OCSIGEN_USER OCSIGEN_GROUP VARBASE
FILES_SUBST+= OCSIGEN_USER=${OCSIGEN_USER:Q} \
OCSIGEN_GROUP=${OCSIGEN_GROUP:Q} \
VARBASE=${VARBASE:Q}
HAS_CONFIGURE= yes
CONFIGURE_ARGS= --disable-debug \
--temproot ${DESTDIR} \
--prefix ${PREFIX} \
--bindir ${PREFIX}/bin \
--libdir ${PREFIX}/lib/ocaml/site-lib \
--mandir ${PREFIX}/${PKGMANDIR}/man1 \
--docdir ${PREFIX}/share/doc \
--sysconfdir ${PREFIX}/share/examples/ocsigen \
--staticpagesdir ${PREFIX}/share/ocsigen/www \
--uploaddir /tmp \
--ocsigen-user ${OCSIGEN_USER} \
--ocsigen-group ${OCSIGEN_GROUP} \
--logdir ${VARBASE}/log/ocsigen \
--datadir ${VARBASE}/lib/ocsigen \
--commandpipe ${VARBASE}/run/ocsigen_command
CONF_FILES+= ${DESTDIR}${PREFIX}/share/examples/ocsigen/ocsigenserver.conf.sample \
${PKG_SYSCONFDIR}/ocsigenserver/ocsigenserver.conf
USE_TOOLS+= gmake
OCAML_USE_FINDLIB= yes
OCAML_FINDLIB_DIRS= ocsigenserver
.include "../../mk/ocaml.mk"
.if ${OCAML_USE_OPT_COMPILER} == "yes"
CONFIGURE_ARGS+= --enable-natdynlink
BUILDLINK_API_DEPENDS.ocaml+= ocaml>=3.12.0
.else
CONFIGURE_ARGS+= --disable-natdynlink
.endif
post-extract:
${RUN} ${CP} ${FILESDIR}/ocsigen_getcommandline.mli ${WRKSRC}/src/baselib/commandline
${RUN} ${CP} ${FILESDIR}/ocsigen_getcommandline.mli ${WRKSRC}/src/baselib/nocommandline
.include "options.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../devel/ocaml-lwt_log/buildlink3.mk"
.include "../../devel/ocaml-lwt_react/buildlink3.mk"
.include "../../devel/ocaml-lwt_ssl/buildlink3.mk"
.include "../../devel/pcre-ocaml/buildlink3.mk"
.include "../../net/ocaml-ipaddr/buildlink3.mk"
.include "../../net/ocamlnet/buildlink3.mk"
.include "../../security/ocaml-cryptokit/buildlink3.mk"
.include "../../security/ocaml-ssl/buildlink3.mk"
.include "../../textproc/ocaml-tyxml/buildlink3.mk"
.include "../../textproc/ocaml-xml-light/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|