blob: 756d36f4914ef91b8b251ac0d2e09bae01a9c88e (
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
|
# Created by: ijliao
# $FreeBSD$
PORTNAME= findlib
PORTVERSION= 1.6.2
CATEGORIES= devel
MASTER_SITES= http://download.camlcity.org/download/
PKGNAMEPREFIX= ocaml-
MAINTAINER= johans@FreeBSD.org
COMMENT= OCaml package manager
USE_OCAML= yes
HAS_CONFIGURE= yes
USES= gmake
ALL_TARGET= all opt
CONFIGURE_ARGS= -bindir "${PREFIX}/bin" -mandir "${PREFIX}/man" \
-sitelib "${PREFIX}/${OCAML_SITELIBDIR}" \
-config "${PREFIX}/etc/findlib.conf"
USE_OCAML_CAMLP4=yes
USE_OCAML_FINDLIB=yes
OCAMLFIND_DEPEND= # Avoid dependency loop
OPTIONS_DEFINE= TOOLBOX DOCS
OPTIONS_DEFAULT=TOOLBOX
OPTIONS_SUB= yes
TOOLBOX_DESC= Include toolbox interface (requires OCaml with TK)
TOOLBOX_CONFIGURE_ON= -with-toolbox
TOOLBOX_RUN_DEPENDS= labltk:${PORTSDIR}/x11-toolkits/ocaml-labltk
TOOLBOX_BUILD_DEPENDS= ${TOOLBOX_RUN_DEPENDS}
MAKE_JOBS_UNSAFE= yes
DOCSDIR= ${PREFIX}/share/doc/ocaml/${PORTNAME}
PORTDOCS= *
post-patch:
@${REINPLACE_CMD} -e 's,path="@SITELIB@,&:${PREFIX}/${OCAML_LIBDIR},' \
${WRKSRC}/findlib.conf.in
post-install:
@-${CHMOD} 755 ${STAGEDIR}${PREFIX}/bin/ocamlfind \
${STAGEDIR}${PREFIX}/${OCAML_SITELIBDIR}/findlib/make_wizard
@${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC}/doc && ${COPYTREE_SHARE} \* ${STAGEDIR}${DOCSDIR} \
"! -regex .*ref-man.*"
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/ocamlfind
.include <bsd.port.mk>
|