1997-01-03 11:25:47 +00:00
|
|
|
# New ports collection makefile for: Objective Caml
|
|
|
|
# Date created: 24 December 1996
|
|
|
|
# Whom: Kiriyama Kazuhiko <kiri@kiri.toba-cmt.ac.jp>
|
|
|
|
#
|
1999-08-25 06:35:40 +00:00
|
|
|
# $FreeBSD$
|
1997-01-03 11:25:47 +00:00
|
|
|
#
|
|
|
|
|
2000-04-12 06:21:15 +00:00
|
|
|
PORTNAME= ocaml
|
2000-08-13 12:21:21 +00:00
|
|
|
PORTVERSION= 3.00
|
1997-01-03 11:25:47 +00:00
|
|
|
CATEGORIES= lang
|
1999-03-24 17:52:28 +00:00
|
|
|
MASTER_SITES= ftp://ftp.inria.fr/lang/caml-light/ \
|
|
|
|
ftp://ftp.kurims.kyoto-u.ac.jp/pub/lang/caml-light/
|
2000-04-16 04:14:12 +00:00
|
|
|
DISTFILES= ${PKGNAME}.tar.gz ${DOCFILES}
|
2000-08-13 12:21:21 +00:00
|
|
|
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} ${DISTNAME}-refman.html${EXTRACT_SUFX}
|
1997-01-03 11:25:47 +00:00
|
|
|
|
1999-03-24 17:52:28 +00:00
|
|
|
MAINTAINER= ortmann@isl.net
|
1997-01-03 11:25:47 +00:00
|
|
|
|
2000-08-13 12:21:21 +00:00
|
|
|
.if defined(WITH_TK)
|
|
|
|
PLIST_SUB+= LABLTK:=""
|
|
|
|
LIB_DEPENDS= tk82.1:${PORTSDIR}/x11-toolkits/tk82
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= LABLTK:="@comment "
|
|
|
|
.endif
|
|
|
|
|
1998-11-28 09:07:24 +00:00
|
|
|
USE_XLIB= yes
|
1997-01-03 11:25:47 +00:00
|
|
|
HAS_CONFIGURE= yes
|
1999-05-09 16:40:14 +00:00
|
|
|
ALL_TARGET= world bootstrap opt ocamlc.opt ocamlopt.opt
|
1999-03-24 17:52:28 +00:00
|
|
|
|
1999-05-31 05:14:39 +00:00
|
|
|
.if ${MACHINE_ARCH} != "i386"
|
2000-08-13 12:21:21 +00:00
|
|
|
PLIST_SUB+= PROF:="@comment "
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= PROF:=""
|
1999-05-31 05:14:39 +00:00
|
|
|
.endif
|
|
|
|
|
1997-01-03 11:25:47 +00:00
|
|
|
MAN1= ocaml.1 ocamlc.1 ocamlcp.1 ocamldep.1 ocamllex.1 \
|
1999-05-09 16:40:14 +00:00
|
|
|
ocamlopt.1 ocamlprof.1 ocamlrun.1 ocamlyacc.1 ocamlmktop.1 \
|
|
|
|
ocamlc.opt.1 ocamlopt.opt.1
|
1997-11-18 12:31:09 +00:00
|
|
|
|
2000-08-13 12:21:21 +00:00
|
|
|
CONFIGURE_ARGS= -prefix ${PREFIX} \
|
|
|
|
-x11include ${X11BASE}/include \
|
|
|
|
-x11lib ${X11BASE}/lib
|
|
|
|
|
|
|
|
.if defined(WITH_TK)
|
|
|
|
CONFIGURE_ARGS+= -tkdefs "-I${PREFIX}/include/tcl8.2 -I${PREFIX}/include/tk8.2"
|
|
|
|
.endif
|
1998-02-21 15:49:46 +00:00
|
|
|
|
1997-11-18 12:31:09 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
1999-03-24 17:52:28 +00:00
|
|
|
DOCFILES= ${DISTNAME}-refman.html.tar.gz ${DISTNAME}-refman.ps.gz
|
1997-11-18 12:31:09 +00:00
|
|
|
.endif
|
1997-01-03 11:25:47 +00:00
|
|
|
|
|
|
|
post-install:
|
2000-03-26 06:03:02 +00:00
|
|
|
@${MKDIR} ${PREFIX}/share/doc/ocaml
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/LICENSE ${PREFIX}/share/doc/ocaml/
|
1997-11-18 12:31:09 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
1998-02-21 15:49:46 +00:00
|
|
|
@${MKDIR} ${PREFIX}/share/doc/ocaml/html
|
|
|
|
@cd ${WRKDIR}/htmlman; ${INSTALL_DATA} * ${PREFIX}/share/doc/ocaml/html
|
1999-08-22 23:33:47 +00:00
|
|
|
@${CP} ${DISTDIR}/${DISTNAME}-refman.ps.gz ${PREFIX}/share/doc/ocaml
|
1997-11-18 12:31:09 +00:00
|
|
|
.endif
|
1997-01-03 11:25:47 +00:00
|
|
|
@strip ${PREFIX}/bin/ocamlrun ${PREFIX}/bin/ocamlyacc
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|