blob: a6f72ef9623a4169593e2170afeedac3ffcc1ca0 (
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
# New ports collection makefile for: Objective Caml
# Date created: 24 December 1996
# Whom: Kiriyama Kazuhiko <kiri@kiri.toba-cmt.ac.jp>
#
# $FreeBSD$
#
PORTNAME= ocaml
PORTVERSION= 3.04
CATEGORIES= lang
MASTER_SITES= http://caml.inria.fr/distrib/ \
ftp://ftp.inria.fr/lang/caml-light/ \
ftp://ftp.kurims.kyoto-u.ac.jp/pub/lang/caml-light/
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${DOCFILES}
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} ${DISTNAME}-refman.html${EXTRACT_SUFX}
MAINTAINER= patrick@watson.org
.if defined(WITHOUT_TK)
PLIST_SUB+= LABLTK:="@comment "
.else
PLIST_SUB+= LABLTK:=""
BUILD_DEPENDS+= ${LOCALBASE}/include/tcl8.3:${PORTSDIR}/lang/tcl83
BUILD_DEPENDS+= ${LOCALBASE}/include/tk8.3:${PORTSDIR}/x11-toolkits/tk83
LIB_DEPENDS= tk83.1:${PORTSDIR}/x11-toolkits/tk83
.endif
USE_XLIB= yes
HAS_CONFIGURE= yes
ALL_TARGET= world opt opt.opt
.if ${MACHINE_ARCH} != "i386"
PLIST_SUB+= PROF:="@comment "
.else
PLIST_SUB+= PROF:=""
.endif
MAN1= ocamlcp.1 ocamldep.1 ocamldebug.1 ocamlopt.1 ocamlrun.1 \
ocamlyacc.1 ocamlmktop.1 ocaml.1 ocamlc.1 ocamllex.1 \
ocamlprof.1 camlp4.1
MLINKS= ocamlc.1 ocamlc.opt.1 ocamlopt.1 ocamlopt.opt.1 \
camlp4.1 camlp4o.1 camlp4.1 camlp4r.1 camlp4.1 mkcamlp4.1 \
camlp4.1 camlp4o.opt.1 camlp4.1 camlp4r.opt.1 \
camlp4.1 ocpp.1
CONFIGURE_ARGS= -prefix ${PREFIX} \
-x11include ${X11BASE}/include \
-x11lib ${X11BASE}/lib \
-with-pthread
.if !defined(WITHOUT_TK)
CONFIGURE_ARGS+=-tkdefs "-I${PREFIX}/include/tcl8.3 -I${PREFIX}/include/tk8.3"
.endif
.if !defined(NOPORTDOCS)
DOCFILES= ${DISTNAME}-refman.html.tar.gz ${DISTNAME}-refman.ps.gz \
${DISTNAME}-refman.pdf
.endif
post-install:
@${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/LICENSE ${DOCSDIR}
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}/html
@${MKDIR} ${DOCSDIR}/html/libref
@cd ${WRKDIR}/htmlman/libref; ${INSTALL_DATA} * ${DOCSDIR}/html/libref
@cd ${WRKDIR}/htmlman; ${INSTALL_DATA} [a-km-z]* libg* ${DOCSDIR}/html
@${INSTALL_DATA} ${DISTDIR}/${DISTNAME}-refman.ps.gz ${DOCSDIR}
@${INSTALL_DATA} ${DISTDIR}/${DISTNAME}-refman.pdf ${DOCSDIR}
.endif
.if !defined(WITHOUT_TK)
@${MKDIR} ${EXAMPLESDIR}
@${MKDIR} ${EXAMPLESDIR}/labltk
@cd ${WRKSRC}/otherlibs/labltk/example; \
${INSTALL_DATA} * ${EXAMPLESDIR}/labltk
.endif
@strip ${PREFIX}/bin/ocamlrun ${PREFIX}/bin/ocamlyacc
.include <bsd.port.mk>
|