aboutsummaryrefslogtreecommitdiff
path: root/security/ocaml-cryptokit/Makefile
blob: f8be4b4e75fc6935ed85633c51e0c939a9eb7e4e (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# New ports collection makefile for:	ocaml cryptokit
# Date created:		Thu Jan  9 03:04:06 BRST 2003
# Whom:			Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	cryptokit
PORTVERSION=	1.3
PORTREVISION=	3
CATEGORIES=	security
MASTER_SITES=	http://caml.inria.fr/distrib/bazar-ocaml/
PKGNAMEPREFIX=	ocaml-

MAINTAINER=	Jaap.Boender@pps.jussieu.fr
COMMENT=	A variety of cryptographic primitives for Objective Caml

USE_OCAML=	yes
USE_OCAML_LDCONFIG=	yes
MAKE_JOBS_SAFE=	yes

ALL_TARGET=	all allopt

.ifndef(NOPORTDOCS)
ALL_TARGET+=	doc

PORTDOCS=	*
.endif

DOC_FILES=	Changes LICENSE README

post-configure:
# CFLAGS,PREFIX safeness
	@${REINPLACE_CMD} -E -e \
		's|^(INSTALLDIR).*$$|\1=${PREFIX}/${OCAML_SITELIBDIR}/${PORTNAME}|; \
		s|^CFLAGS=|CFLAGS\+=|; \
		s|(^CFLAGS.*)-O|\1|' \
		${WRKSRC}/Makefile

pre-install:
# in pre-install to make sure we're using the correct user:group
# combo
	@${REINPLACE_CMD} -E -e \
		's|cp |${INSTALL_DATA} |' \
		${WRKSRC}/Makefile

post-install:
.ifndef(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}/doc
	@${INSTALL_DATA} ${WRKSRC}/doc/* ${DOCSDIR}/doc
.for file in ${DOC_FILES}
	@${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
.endif
	@${INSTALL_DATA} ${FILESDIR}/META ${PREFIX}/${OCAML_SITELIBDIR}/${PORTNAME}

.include <bsd.port.pre.mk>

DOCSDIR=	${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}

.include <bsd.port.post.mk>