head	1.79;
access;
symbols
	RELEASE_8_3_0:1.77
	RELEASE_9_0_0:1.74
	RELEASE_7_4_0:1.68
	RELEASE_8_2_0:1.68
	RELEASE_6_EOL:1.68
	RELEASE_8_1_0:1.68
	RELEASE_7_3_0:1.66
	RELEASE_8_0_0:1.65
	RELEASE_7_2_0:1.62
	RELEASE_7_1_0:1.61
	RELEASE_6_4_0:1.61
	RELEASE_5_EOL:1.61
	RELEASE_7_0_0:1.59
	RELEASE_6_3_0:1.59
	PRE_XORG_7:1.58
	RELEASE_4_EOL:1.57
	RELEASE_6_2_0:1.57
	RELEASE_6_1_0:1.50
	RELEASE_5_5_0:1.50
	RELEASE_6_0_0:1.47
	RELEASE_5_4_0:1.37
	RELEASE_4_11_0:1.37
	RELEASE_5_3_0:1.34
	RELEASE_4_10_0:1.31
	RELEASE_5_2_1:1.27
	RELEASE_5_2_0:1.27
	RELEASE_4_9_0:1.26
	RELEASE_5_1_0:1.25
	RELEASE_4_8_0:1.25
	RELEASE_5_0_0:1.24
	RELEASE_4_7_0:1.24
	RELEASE_4_6_2:1.22
	RELEASE_4_6_1:1.22
	RELEASE_4_6_0:1.22
	RELEASE_5_0_DP1:1.22
	RELEASE_4_5_0:1.21
	RELEASE_4_4_0:1.21
	RELEASE_4_3_0:1.20
	RELEASE_4_2_0:1.16
	RELEASE_4_1_1:1.15
	RELEASE_4_1_0:1.14
	RELEASE_3_5_0:1.14
	RELEASE_4_0_0:1.11
	RELEASE_3_4_0:1.10
	RELEASE_3_3_0:1.10
	RELEASE_3_2_0:1.7
	RELEASE_3_1_0:1.4
	RELEASE_2_2_8:1.4
	RELEASE_3_0_0:1.3
	RELEASE_2_2_7:1.3
	RELEASE_2_2_6:1.3
	RELEASE_2_2_5:1.1.1.1
	RELEASE_2_2_1:1.1.1.1
	RELEASE_2_2_2:1.1.1.1
	ocaml_1_03:1.1.1.1
	KIRI:1.1.1;
locks; strict;
comment	@# @;


1.79
date	2013.02.06.19.12.19;	author svnexp;	state Exp;
branches;
next	1.78;

1.78
date	2012.11.17.05.58.53;	author svnexp;	state Exp;
branches;
next	1.77;

1.77
date	2012.02.23.01.10.28;	author bf;	state Exp;
branches;
next	1.76;

1.76
date	2012.02.23.00.21.15;	author bf;	state Exp;
branches;
next	1.75;

1.75
date	2011.12.29.20.33.26;	author scheidell;	state Exp;
branches;
next	1.74;

1.74
date	2011.11.28.11.42.03;	author miwi;	state Exp;
branches;
next	1.73;

1.73
date	2011.11.05.03.40.17;	author tabthorpe;	state Exp;
branches;
next	1.72;

1.72
date	2011.10.25.08.14.31;	author dougb;	state Exp;
branches;
next	1.71;

1.71
date	2011.04.04.02.29.25;	author stas;	state Exp;
branches;
next	1.70;

1.70
date	2011.03.31.07.39.42;	author stas;	state Exp;
branches;
next	1.69;

1.69
date	2011.03.31.07.36.54;	author stas;	state Exp;
branches;
next	1.68;

1.68
date	2010.03.22.09.37.40;	author stas;	state Exp;
branches;
next	1.67;

1.67
date	2010.03.09.22.45.47;	author stas;	state Exp;
branches;
next	1.66;

1.66
date	2009.11.11.16.13.16;	author marcel;	state Exp;
branches;
next	1.65;

1.65
date	2009.06.29.10.46.44;	author stas;	state Exp;
branches;
next	1.64;

1.64
date	2009.05.21.11.55.56;	author pav;	state Exp;
branches;
next	1.63;

1.63
date	2009.05.09.19.54.23;	author stas;	state Exp;
branches;
next	1.62;

1.62
date	2009.04.11.13.23.04;	author stas;	state Exp;
branches;
next	1.61;

1.61
date	2008.04.19.17.51.31;	author miwi;	state Exp;
branches;
next	1.60;

1.60
date	2008.04.06.19.44.40;	author stas;	state Exp;
branches;
next	1.59;

1.59
date	2007.05.19.20.13.47;	author flz;	state Exp;
branches;
next	1.58;

1.58
date	2007.03.24.14.03.04;	author pav;	state Exp;
branches;
next	1.57;

1.57
date	2006.09.23.17.37.24;	author stas;	state Exp;
branches;
next	1.56;

1.56
date	2006.09.20.10.44.30;	author stas;	state Exp;
branches;
next	1.55;

1.55
date	2006.08.19.09.38.44;	author itetcu;	state Exp;
branches;
next	1.54;

1.54
date	2006.08.02.14.00.20;	author itetcu;	state Exp;
branches;
next	1.53;

1.53
date	2006.06.14.21.46.40;	author sat;	state Exp;
branches;
next	1.52;

1.52
date	2006.06.14.21.38.08;	author linimon;	state Exp;
branches;
next	1.51;

1.51
date	2006.05.09.20.52.17;	author edwin;	state Exp;
branches;
next	1.50;

1.50
date	2005.12.01.15.46.34;	author garga;	state Exp;
branches;
next	1.49;

1.49
date	2005.10.28.22.50.21;	author kris;	state Exp;
branches;
next	1.48;

1.48
date	2005.09.14.15.20.36;	author barner;	state Exp;
branches;
next	1.47;

1.47
date	2005.07.04.14.50.07;	author mi;	state Exp;
branches;
next	1.46;

1.46
date	2005.07.03.06.02.21;	author mi;	state Exp;
branches;
next	1.45;

1.45
date	2005.07.01.16.17.30;	author mi;	state Exp;
branches;
next	1.44;

1.44
date	2005.06.27.14.09.09;	author jylefort;	state Exp;
branches;
next	1.43;

1.43
date	2005.06.08.21.16.02;	author thierry;	state Exp;
branches;
next	1.42;

1.42
date	2005.05.23.00.12.42;	author kris;	state Exp;
branches;
next	1.41;

1.41
date	2005.05.21.19.57.06;	author sem;	state Exp;
branches;
next	1.40;

1.40
date	2005.04.23.12.33.56;	author pav;	state Exp;
branches;
next	1.39;

1.39
date	2005.04.23.01.34.04;	author lioux;	state Exp;
branches;
next	1.38;

1.38
date	2005.04.07.05.17.15;	author sem;	state Exp;
branches;
next	1.37;

1.37
date	2004.12.04.15.57.11;	author kwm;	state Exp;
branches;
next	1.36;

1.36
date	2004.11.24.01.55.42;	author kris;	state Exp;
branches;
next	1.35;

1.35
date	2004.11.12.19.27.46;	author pav;	state Exp;
branches;
next	1.34;

1.34
date	2004.08.21.06.31.29;	author krion;	state Exp;
branches;
next	1.33;

1.33
date	2004.07.19.21.13.24;	author vs;	state Exp;
branches;
next	1.32;

1.32
date	2004.05.13.09.10.03;	author kris;	state Exp;
branches;
next	1.31;

1.31
date	2004.03.22.23.49.34;	author pav;	state Exp;
branches;
next	1.30;

1.30
date	2004.02.27.07.26.15;	author sergei;	state Exp;
branches;
next	1.29;

1.29
date	2003.12.14.15.53.51;	author sergei;	state Exp;
branches;
next	1.28;

1.28
date	2003.12.06.00.05.05;	author sergei;	state Exp;
branches;
next	1.27;

1.27
date	2003.09.24.09.36.56;	author osa;	state Exp;
branches;
next	1.26;

1.26
date	2003.06.28.17.41.27;	author lev;	state Exp;
branches;
next	1.25;

1.25
date	2003.02.21.12.35.05;	author knu;	state Exp;
branches;
next	1.24;

1.24
date	2002.08.21.02.14.30;	author kevlo;	state Exp;
branches;
next	1.23;

1.23
date	2002.08.12.14.22.36;	author naddy;	state Exp;
branches;
next	1.22;

1.22
date	2002.02.11.05.22.15;	author pat;	state Exp;
branches;
next	1.21;

1.21
date	2001.08.12.20.06.45;	author knu;	state Exp;
branches;
next	1.20;

1.20
date	2001.03.18.07.41.07;	author dinoex;	state Exp;
branches;
next	1.19;

1.19
date	2001.02.24.00.23.32;	author olgeni;	state Exp;
branches;
next	1.18;

1.18
date	2001.02.17.23.01.10;	author jeh;	state Exp;
branches;
next	1.17;

1.17
date	2001.01.16.17.31.13;	author sobomax;	state Exp;
branches;
next	1.16;

1.16
date	2000.10.02.14.40.55;	author ade;	state Exp;
branches;
next	1.15;

1.15
date	2000.08.13.12.21.20;	author alex;	state Exp;
branches;
next	1.14;

1.14
date	2000.04.16.04.14.09;	author asami;	state Exp;
branches;
next	1.13;

1.13
date	2000.04.12.06.19.40;	author obrien;	state Exp;
branches;
next	1.12;

1.12
date	2000.03.26.06.02.58;	author kris;	state Exp;
branches;
next	1.11;

1.11
date	2000.02.28.15.44.19;	author imura;	state Exp;
branches;
next	1.10;

1.10
date	99.08.25.06.35.06;	author obrien;	state Exp;
branches;
next	1.9;

1.9
date	99.08.22.23.32.54;	author mharo;	state Exp;
branches;
next	1.8;

1.8
date	99.05.31.05.14.39;	author steve;	state Exp;
branches;
next	1.7;

1.7
date	99.05.09.16.39.54;	author steve;	state Exp;
branches;
next	1.6;

1.6
date	99.03.27.22.15.53;	author asami;	state Exp;
branches;
next	1.5;

1.5
date	99.03.24.17.52.16;	author steve;	state Exp;
branches;
next	1.4;

1.4
date	98.11.28.09.07.13;	author asami;	state Exp;
branches;
next	1.3;

1.3
date	98.02.21.15.46.28;	author steve;	state Exp;
branches;
next	1.2;

1.2
date	97.11.18.12.31.08;	author tg;	state Exp;
branches;
next	1.1;

1.1
date	97.01.03.11.25.46;	author asami;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	97.01.03.11.25.46;	author asami;	state Exp;
branches;
next	;


desc
@@


1.79
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/311776
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@# New ports collection makefile for:	ocaml
# Date created:		24 December 1996
# Whom:			Kiriyama Kazuhiko <kiri@@kiri.toba-cmt.ac.jp>
#
# $FreeBSD: head/lang/ocaml/Makefile 311776 2013-02-06 15:42:16Z gahr $
#

PORTNAME=	ocaml
PORTVERSION=	3.12.1
PORTREVISION=	1
CATEGORIES=	lang
MASTER_SITES=	http://caml.inria.fr/distrib/${DISTNAME:R}/ \
		ftp://ftp.inria.fr/INRIA/caml-light/${DISTNAME:R}/ \
		ftp://ftp.kurims.kyoto-u.ac.jp/pub/lang/caml-light/${DISTNAME:R}/ \
		${MASTER_SITE_GENTOO}
MASTER_SITE_SUBDIR=	distfiles
PKGNAMESUFFIX=	${SFX}

MAINTAINER?=	michael.grunewald@@laposte.net
COMMENT?=	The Objective Caml compiler and programming environment

USE_BZIP2=	yes
REINPLACE_ARGS=	-i ""
HAS_CONFIGURE=	yes
ALL_TARGET=	world.opt
STRIP=
MAKE_JOBS_UNSAFE=	yes

CONFIGURE_ARGS=	-verbose -prefix "${PREFIX}" -cc "${CC}" -as "${AS}" \
		-aspp "${CC} -c" -partialld "${LD} -r"
OPTIONS=	X11	"Build with X11 support" on \
		TK	"Build LablTk library (requires X11 support)" on \
		THREADS	"Build with Posix threads support" on \
		CMP_LIB	"Install compiler's libraries" off \
		OPT_DEF	"Use system-optimized binaries by default" off

MODOPT=		camlp4o camlp4r ocamlc ocamldep ocamldoc ocamllex ocamlopt
PATTERN=	[[:space:]]*(do|then)?[[:space:]]*)(\$$\(CP\)|cp)([[:space:]]

.include <bsd.port.pre.mk>

.if ${ARCH} == powerpc
ARCH=	power
.endif

.if ${ARCH} == power
PLIST_SUB+=	PROF="@@comment "
.else
PLIST_SUB+=	PROF=""
.endif

.include "${FILESDIR}/manfiles"

.if !defined(WITHOUT_THREADS)
PLIST_SUB+=	THREADS=""
THR_CPP=	${PTHREAD_CFLAGS}
THR_LD=		${PTHREAD_LIBS}
.else
PLIST_SUB+=	THREADS="@@comment "
THR_CPP=	#empty
THR_LD=		#empty
CONFIGURE_ARGS+=-no-pthread
.endif

.if !defined(WITHOUT_X11)
PLIST_SUB+=	X11=""
USE_XORG=	x11
CONFIGURE_ARGS+=-x11include ${LOCALBASE}/include -x11lib ${LOCALBASE}/lib
.else
PLIST_SUB+=	X11="@@comment "
WITHOUT_TK=	yes
SFX=		-nox11
CONFLICTS+=	ocaml-[0-9]* ocaml-notk-[0-9]*
CONFIGURE_ARGS+=-no-x11
.endif

.if defined(WITHOUT_TK)
PLIST_SUB+=	TK="@@comment "
.if !defined(WITHOUT_X11)
SFX=		-notk
CONFLICTS+=	ocaml-[0-9]* ocaml-nox11-[0-9]*
.endif
CONFIGURE_ARGS+=-no-tk
.else
USE_TK=		84+
INVALID_TK_VER =	86
.include "${PORTSDIR}/Mk/bsd.tcl.mk"
PLIST_SUB+=	TK=""
CONFLICTS+=	ocaml-nox11-[0-9]* ocaml-notk-[0-9]*
CONFIGURE_ARGS+=	-tkdefs \
			"-I${TCL_INCLUDEDIR} -I${TK_INCLUDEDIR} ${THR_CPP}" \
			-tklibs "-L${LOCALBASE}/lib -ltk${TK_VER:S|.||} \
			-ltcl${TCL_VER:S|.||} ${THR_LD}"
.endif

.if ${ARCH} == sparc64
BROKEN=	ocamlc.opt seg-faults on ${ARCH}, please try to fix
.endif

post-extract:
.if ${ARCH} == power
	${MV} ${WRKSRC}/asmrun/power-elf.S ${WRKSRC}/asmrun/power-bsd.S
.endif

post-patch:
	@@${REINPLACE_CMD} \
		-e '\|MKLIB=|s|ar rc|${AR} rc|' \
		-e '\|RANLIB|s|ranlib|${RANLIB}|' \
		-e '\|bytecclinkopts=|s|""|"${LDFLAGS}"|' \
		-e "\|nativecclinkopts=|s|''|\"${LDFLAGS:C/-Wl,//}\"|" \
		-e '\|mksharedlib=|s|$$bytecc|& $$bytecclinkopts|' \
		-e 's|-lbfd -ldl|-lbfd $$dllib|' \
		${WRKSRC}/configure
# don't hardcode gcc for depend target
	@@${REINPLACE_CMD} -e 's|gcc|$$(CC)|' \
		${WRKSRC}/*/Makefile \
		${WRKSRC}/*/*/Makefile
.if defined(WITH_TK)
	@@${REINPLACE_CMD} -e 's|/usr/bin/wish|${WISH}|' \
		${WRKSRC}/otherlibs/labltk/examples_labltk/hello.tcl
.endif

post-configure:
# CFLAGS safeness
	@@${REINPLACE_CMD} -E \
		-e 's|(BYTECCCOMPOPTS[ \t]*=.*)|\1 ${CFLAGS} ${THR_CPP}|' \
		-e 's|(NATIVECCCOMPOPTS[ \t]*=.*)|\1 ${CFLAGS} ${THR_CPP}|' \
		-e '/^PTHREAD_LINK/s,-pthread,${THR_LD},g' \
		${WRKSRC}/config/Makefile

# INSTALL* safeness (which preserves the correct permissions despite
# user's umask(1)
	@@${FIND} ${WRKDIR} -type f -name Makefile -print0 | \
		${XARGS} -0 -n 5 -x ${REINPLACE_CMD} -E \
		-e 's,\$$\(ARCH\),${ARCH:sparc64=sparc},g'	\
		-e 's,^(${PATTERN}+.*INSTALLDIR),\1\$${BSD_INSTALL_DATA} \4,' \
		-e 's,^(${PATTERN}+.*BINDIR),\1\$${BSD_INSTALL_PROGRAM} \4,' \
		-e 's,^(${PATTERN}+.*LIBDIR),\1\$${BSD_INSTALL_DATA} \4,' \
		-e 's,(${PATTERN}+.*(MANDIR|MANODIR|MANEXT)),\1\$${BSD_INSTALL_MAN} \4,'

check test: install
	@@cd ${WRKSRC}/testsuite; ${RM} -f _log; for d in tests/* ; do \
	${SETENV} ${MAKE_ENV} ${MAKE} ${_MAKE_JOBS} ${MAKE_ARGS} one DIR=$${d} \
	2>&1 | tee -a _log || ${TRUE} ; done ; \
	${SETENV} ${MAKE_ENV} ${MAKE} ${_MAKE_JOBS} ${MAKE_ARGS} report

post-install:
	@@${TOUCH} ${PREFIX}/lib/ocaml/ocamldoc/custom/.keep
.if !defined(WITHOUT_TK)
	@@${MKDIR} ${EXAMPLESDIR}
	@@(cd ${WRKSRC}/otherlibs/labltk && \
		${COPYTREE_SHARE} examples_labltk ${EXAMPLESDIR} \
		"! -name .cvsignore" && \
		${COPYTREE_SHARE} examples_camltk ${EXAMPLESDIR} \
		"! -name .cvsignore")
.endif

.for PROG in camlp4o.opt camlp4r.opt ocamlc.opt ocamldep.opt ocamldoc.opt \
		ocamllex.opt ocamlopt.opt ocamlrun ocamlyacc
	@@${STRIP_CMD} ${PREFIX}/bin/${PROG}
.endfor

# Fix permissions for ld.conf
	@@${CHMOD} 644 ${PREFIX}/lib/ocaml/ld.conf

# Do we want .opt version of tools to be the default ?
.if defined(WITH_OPT_DEF)
. for module in ${MODOPT}
#	First, we save bytecode version
	@@${MV} ${PREFIX}/bin/${module} ${PREFIX}/bin/${module}.byte

#	Next make .opt version be the default one (via link)
	@@${LN} ${PREFIX}/bin/${module}.opt ${PREFIX}/bin/${module}
	@@${ECHO_CMD} "bin/${module}.byte" >> ${TMPPLIST}
	@@${ECHO_CMD} "@@exec ${LN} %D/${module}.opt %D/${module}" >> ${TMPPLIST}
. endfor
.endif

# Add compiler's libs if required
.if defined(WITH_CMP_LIB)
	@@${MKDIR}  ${PREFIX}/lib/ocaml/compiler-lib
	@@${INSTALL_DATA} ${WRKSRC}/utils/*.cm* ${PREFIX}/lib/ocaml/compiler-lib
	@@${INSTALL_DATA} ${WRKSRC}/utils/*.o ${PREFIX}/lib/ocaml/compiler-lib
	@@${INSTALL_DATA} ${WRKSRC}/parsing/*.cm* ${PREFIX}/lib/ocaml/compiler-lib
	@@${INSTALL_DATA} ${WRKSRC}/parsing/*.o ${PREFIX}/lib/ocaml/compiler-lib
	@@${INSTALL_DATA} ${WRKSRC}/typing/*.cm* ${PREFIX}/lib/ocaml/compiler-lib
	@@${INSTALL_DATA} ${WRKSRC}/typing/*.o ${PREFIX}/lib/ocaml/compiler-lib
	@@${FIND} ${PREFIX}/lib/ocaml/compiler-lib -type f | \
		${SED} "s,^${PREFIX}/,," >> ${TMPPLIST}
	@@${ECHO_CMD} "@@dirrm lib/ocaml/compiler-lib" >> ${TMPPLIST}
.endif
	@@${ECHO_CMD} "@@unexec rmdir "%D/lib/ocaml" 2>/dev/null || true" >> ${TMPPLIST}

.include <bsd.port.post.mk>
@


1.78
log
@Switch exporter over
@
text
@d5 1
a5 1
# $FreeBSD: head/lang/ocaml/Makefile 300896 2012-07-14 13:54:48Z beat $
a86 3
.if defined(WITH_THREADS)
USE_TK_THREADS =	yes
.endif
d92 2
a93 2
			-tklibs "-L${LOCALBASE}/lib -ltk${TK_VER:S|.||}${_TCL_THREADS_SUFFIX} \
			-ltcl${TCL_VER:S|.||}${_TCL_THREADS_SUFFIX} ${THR_LD}"
@


1.77
log
@fix the packing list for WITH_CMP_LIB
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.76
log
@respect CC [1]; fix Tcl/Tk dependencies; don't conflate -nox11 and
-notk; add a test target; clean up

PR:		160492 [1]
Submitted by:	J. Beich (partial patch; under various pseudonyms?) [1]
Approved by:	maintainer
@
text
@d195 1
@


1.75
log
@- Install expunge script with right permissions [1]
- needed to take the MAN()!= out because it causes multiple background shells and can hurt INDEX performance [2]

PR:		ports/163275 [1]
Approved by:	gabor (mentor) [2]
@
text
@d10 1
a24 1
USE_LDCONFIG=	yes
d29 2
a30 1
CONFIGURE_ARGS=	-prefix ${PREFIX}
a55 2
DEPENDS_ARGS+=	WITH_THREADS=yes
CONFIGURE_ARGS+=-with-pthread
d79 1
d82 1
d86 4
d95 2
a96 1
			-tklibs "-L${LOCALBASE}/lib ${THR_LD}"
d108 18
a131 1
		-e 's|gcc|${CC}|g'	\
d144 6
a194 1
	@@${ECHO_CMD} "@@unexec rmdir "%D/lib/ocaml" 2>/dev/null || true" >> ${TMPPLIST}
@


1.74
log
@- Update to 3.12.1
- Pass maintainership to submitter

PR:		162576
Submitted by:	michael.grunewald@@laposte.net
Feature safe:	yes
@
text
@d51 1
a51 3
MAN1!=	${CAT} ${FILESDIR}/man1
MANN!=	${CAT} ${FILESDIR}/mann
MLINKS!=${CAT} ${FILESDIR}/manlinks
@


1.73
log
@Reassign stas' ports back to the pool at his request, thanks for your years
of service, we hope to see you back.
@
text
@d9 1
a9 2
PORTVERSION=	3.12.0
PORTREVISION=	1
d18 1
a18 1
MAINTAINER?=	ports@@FreeBSD.org
@


1.72
log
@Fix plist when the THREADS option is off.  Also convert to @@dirrmtry
in a couple places that are affected by graphics/ocaml-lablgl and/or
x11-toolkits/ocaml-lablgtk2.

No PORTREVISION bump since THREADS is on by default.

Approved by:	maintainer (implicit)
@
text
@d19 1
a19 1
MAINTAINER?=	stas@@FreeBSD.org
@


1.71
log
@- Re-enable native dynamic linking on FreeBSD.
- Bump port revision.

PR:		ports/156159
Submitted by:	Johan van Selst <johans@@stack.nl>
Pointy hat to:	me
@
text
@d57 1
d63 1
d169 1
a169 1
	@@${ECHO_CMD} "@@dirrm lib/ocaml" >> ${TMPPLIST}
@


1.70
log
@- Forced commit to describe the major changes in this version:
  * Polymorphic recursion is supported, using explicit type
    declarations on the recursively-defined identifiers.
  * First-class modules: module expressions can be embedded
    as values of the core language, then manipulated like
    any other first-class value, then projected back to the module level.
  * New operator to modify a signature a posteriori: S with
    type t := tau denotes signature S where the t type component
    is removed and substituted by the type tau elsewhere.
  * New notations for record expressions and record patterns:
    { lbl } as shorthand for { lbl = lbl }, and { ...; _ } marks
    record patterns where some labels were intentionally omitted.
  * Local open let open ... in ... now supported by popular demand.
  * Type variables can be bound as type parameters to functions;
    such types are treated like abstract types within the function
    body, and like type variables (possibly generalized) outside.
  * The module type of construct enables to recover the module type
    of a given module.
  * Explicit method override using the method! keyword, with associated
    warnings and errors.
@
text
@d10 1
a10 1
PORTREVISION=	0
@


1.69
log
@- Update to 3.12.0.

PR:		ports/155155
Submitted by:	wen heping <wenheping@@gmail.com>, Jaap Boender <jaapb@@kerguelen.org>
@
text
@@


1.68
log
@- Fix build on powerpc.
@
text
@d9 1
a9 1
PORTVERSION=	3.11.2
@


1.67
log
@- Update to 3.11.2.

PR:		ports/144004
Submitted by:	soulcatcher <soulcatcher13@@gmail.com>
@
text
@d42 10
d98 5
@


1.66
log
@ocaml builds on ia64.

Approved by: stas
@
text
@d9 1
a9 1
PORTVERSION=	3.11.1
@


1.65
log
@- Update to 3.11.1.
@
text
@d84 1
a84 1
.if ${ARCH} == sparc64 || ${ARCH} == ia64
@


1.64
log
@- Mark MAKE_JOBS_UNSAFE

Submitted by:	David Naylor <naylor.b.david@@gmail.com>
@
text
@d9 2
a10 2
PORTVERSION=	3.11.0
PORTREVISION=	1
@


1.63
log
@- Fix a couple of serious bugs in threading code (#4666 and #4678).

Obtained from:	ocaml cvs
@
text
@d28 1
@


1.62
log
@- Update lang/ocaml to 3.11.0. [1]
- Fix devel/cil build with 3.11.0 by using proper object file name
- Fix devel/deputy build with 3.11.0 by using proper object file name
- Fix lang/mtasc. Ocamlp4 syntax has changed and usage of ';' as delimiters
  is not allowed now.
- Fix usage message in lang/mtasc.
- Implement a FreeBSD specific code for retriving the executable path in lang/mtasc.
- Update devel/omake to 0.9.8.5.
- Fix devel/omake compilation with 3.11 by dropping an unused reference from the code.
- Fix www/geneweb build with 3.11 by not emitting errors for warnings.
- Fix print/advi build. [2]
- Update lang/cduce to 0.5.3 (this fixes build with ocaml 3.11.0).

PR:		ports/130845 [1] [2] (based on)
Submitted by:	Hirohisa Yamaguchi <umq@@ueo.co.jp> [1],
		Tsurutani Naoki <turutani@@scphys.kyoto-u.ac.jp> [2]
@
text
@d10 1
@


1.61
log
@- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+

Thanks to all Helpers:
	Dmitry Marakasov, Chess Griffin, beech@@, dinoex, rafan, gahr,
	ehaupt, nox, itetcu, flz, pav

PR:		116263
Tested on:	pointyhat
Approved by:	portmgr (pav)
@
text
@d9 1
a9 2
PORTVERSION=	3.10.2
PORTREVISION=	1
d24 1
d73 2
d77 3
a79 6
CONFIGURE_ARGS+=-tkdefs \
	"-I${LOCALBASE}/include/tcl8.4 -I${LOCALBASE}/include/tk8.4 ${THR_CPP}"\
	-tklibs "-L${LOCALBASE}/lib ${THR_LD}"
BUILD_DEPENDS+=	${LOCALBASE}/include/tcl8.4:${PORTSDIR}/lang/tcl84 \
		${LOCALBASE}/include/tk8.4:${PORTSDIR}/x11-toolkits/tk84
LIB_DEPENDS+=	tk84.1:${PORTSDIR}/x11-toolkits/tk84
@


1.60
log
@- Update to 3.10.2.

Thanks to:	Thomas Crimi <tcrimi@@procida.us>
@
text
@d10 1
a10 1
PORTREVISION=	0
d57 2
a58 2
USE_XLIB=	yes
CONFIGURE_ARGS+=-x11include ${X11BASE}/include -x11lib ${X11BASE}/lib
@


1.59
log
@- Welcome X.org 7.2 \o/.
- Set X11BASE to ${LOCALBASE} for recent ${OSVERSION}.
- Bump PORTREVISION for ports intalling files in ${X11BASE}.
@
text
@d9 2
a10 2
PORTVERSION=	3.09.3
PORTREVISION=	1
d92 1
a92 1
		-e 's|(PTHREAD_LINK[ \t]*=).*|\1 ${THR_LD}|' \
d117 1
a117 1
.for prog in camlp4o.opt camlp4r.opt ocamlc.opt ocamldep.opt ocamldoc.opt \
d119 1
a119 1
	@@${STRIP_CMD} ${PREFIX}/bin/${prog}
@


1.58
log
@- COPYTREE_* are now part of bsd.port.mk

PR:		ports/100996
Submitted by:	stass
@
text
@d10 1
a10 1
PORTREVISION=	0
@


1.57
log
@- Update to 3.09.3

ChangeLog:
- Mainly bugfix release

Approved by:	sem (mentor)
@
text
@a37 7
# XXX: exists untill it will be committed to bsd.port.mk
COPYTREE_SHARE=	${SH} -c '(${FIND} -d $$0 $$2 | ${CPIO} -dumpl $$1 >/dev/null \
		2>&1) && \
		${CHOWN} -R ${SHAREOWN}:${SHAREGRP} $$1 && \
		${FIND} $$1/ -type d -exec ${CHMOD} 755 {} \; && \
		${FIND} $$1/ -type f -exec ${CHMOD} ${SHAREMODE} {} \;' --

@


1.56
log
@Change my maintainer address to FreeBSD one.

Approved by:	sem (mentor)
@
text
@d9 2
a10 2
PORTVERSION=	3.09.2
PORTREVISION=	2
a144 5
.for module in ${MODOPT}
	@@${ECHO_CMD} "${module:S|^|bin/|}" >> ${TMPPLIST}
	@@${ECHO_CMD} "${module:S|^|bin/|}.opt" >> ${TMPPLIST}
.endfor

@


1.55
log
@Don't depend on X11 when WITHOUT_X11 was defined, even if X11 exists on
target machine.

PR:		ports/102261
Submitted by:	Stanislav Sedov (maintainer)
Requested by:	John E Hein <jhein@@timing.com>
@
text
@d19 1
a19 1
MAINTAINER?=	ssedov@@mbsd.msk.ru
@


1.54
log
@- Add support for threaded Tk by passing PTHREAD_LIBS to configure in -tklibs
  swith. This allows build with threaded Tk (otherwise configure fails to use
  Tk). Also depend on threaded Tk by default in case of THREADS support - with
  non-pthread tk library it will not be stable enough
- Add OPTIONS
- Enable builds of non-threaded targets
- Depend on X in case if X is installed, since configure does this by default.
- Rename patchfiles to make portlint happy
- Eliminate the number of reinplace patterns (remove duplicates, optimize)
- Move manpage list in the separate files
- Pass pthread flags to compiler (PTHREAD_CFLAGS/LIBS safety)
- Remove some ugly hacks on setting permissions etc (eliminated by setting
  correct permission in COPY_TREE macros)
- Eliminate duplicate entries in PLIST in case of unstalling optimized binaries,
  also optimize this part
- Remove unused PLIST_SUB variable
- Miscelanios cleanups in Makefile
- Pass maintainership to submitter

The following files was added:
- files/man1
- files/manlinks
- files/mann
- files/patch-camlp4-man_Makefile
- files/patch-camlp4_lib_Makefile
- files/patch-ocamldoc_Makefile
- files/patch-stdlib_Makefile

I removed the following files:
- files/patch-camlp4-man::Makefile
- files/patch-camlp4::lib::Makefile
- files/patch-ocamldoc::Makefile
- files/patch-stdlib::Makefile

Also add bsd.ocaml.mk until it will be included in Mk/

PR:		ports/101122
Submitted by:	Stanislav Sedov
@
text
@d10 1
a10 1
PORTREVISION=	1
d62 1
a62 1
.if !defined(WITHOUT_X11) || exists(${X11BASE}/lib/libX11.a)
d71 1
@


1.53
log
@- Update to 3.09.2
- Add MASTER_SITE_GENTOO
- Unqoute a BROKEN

PR:		ports/97555
Submitted by:	sat
Tested by:	Joseph Koshy <jkoshy@@freebsd.org>, Denis Shaposhnikov <dsh@@vlink.ru>,
		Holger Lamm <holger@@e-gitt.net>, Hubert Tournier <hubert.tournier@@online.fr>,
		Dan Pelleg <daniel+unison@@pelleg.org> (many thanks are due)
@
text
@d10 1
d19 1
a19 1
MAINTAINER?=	ports@@FreeBSD.org
d22 46
a67 2
.if defined(WITHOUT_X11)
PLIST_SUB+=	X11="@@comment " TK="@@comment "
d71 2
a72 3
.else
PLIST_SUB+=	X11=""
USE_XLIB=	yes
d77 1
d81 3
a83 1

a87 50
.endif

USE_BZIP2=	yes
REINPLACE_ARGS=	-i ""
HAS_CONFIGURE=	yes
ALL_TARGET=	world.opt
STRIP=

MAN1=		ocamlcp.1 ocamldep.1 ocamldebug.1 ocamldoc.1 ocamlopt.1 \
		ocamlrun.1 ocamlyacc.1 ocamlmktop.1 ocaml.1 ocamlc.1 \
		ocamllex.1 ocamlprof.1 camlp4.1
MANN=		Arg.n Array.n ArrayLabels.n Bigarray.Array1.n \
		Bigarray.Array2.n Bigarray.Array3.n Bigarray.Genarray.n \
		Bigarray.n Buffer.n Callback.n CamlinternalOO.n Char.n \
		Complex.n Digest.n Filename.n Format.n Gc.n Genlex.n \
		Hashtbl.HashedType.n Hashtbl.Make.n Hashtbl.S.n Hashtbl.n \
		Int32.n Int64.n Lazy.n Lexing.n List.n ListLabels.n \
		Map.Make.n Map.OrderedType.n Map.S.n Map.n Marshal.n \
		MoreLabels.Hashtbl.HashedType.n MoreLabels.Hashtbl.Make.n \
		MoreLabels.Hashtbl.S.n MoreLabels.Hashtbl.n \
		MoreLabels.Map.Make.n MoreLabels.Map.OrderedType.n \
		MoreLabels.Map.S.n MoreLabels.Map.n MoreLabels.Set.Make.n \
		MoreLabels.Set.OrderedType.n MoreLabels.Set.S.n \
		MoreLabels.Set.n MoreLabels.n Nativeint.n Num.n Obj.n Oo.n \
		Parsing.n Pervasives.LargeFile.n Pervasives.n Printexc.n \
		Printf.n Queue.n Random.n Random.State.n Scanf.Scanning.n \
		Scanf.n Set.Make.n Set.OrderedType.n Set.S.n Set.n Sort.n \
		Stack.n StdLabels.Array.n StdLabels.List.n StdLabels.String.n \
		StdLabels.n Str.n Stream.n String.n StringLabels.n Sys.n \
		Unix.LargeFile.n Unix.n Weak.Make.n Weak.S.n Weak.n \
		CamlinternalMod.n
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} -with-pthread

.if !defined(WITHOUT_X11)
CONFIGURE_ARGS+=	-x11include ${X11BASE}/include -x11lib ${X11BASE}/lib
.if defined(WITHOUT_TK)
CONFIGURE_ARGS+=	-no-tk
.else
CONFIGURE_ARGS+=	-tkdefs "-I${LOCALBASE}/include/tcl8.4 -I${LOCALBASE}/include/tk8.4"
.endif
.endif

MODOPT=		camlp4o camlp4r ocamlc ocamldep ocamldoc ocamllex ocamlopt

.include <bsd.port.pre.mk>
a91 1
PLIST_SUB+=	PROF=""
d96 3
a98 2
		-e 's|(BYTECCCOMPOPTS[[:space:]]*=.*)|\1 ${CFLAGS}|' \
		-e 's|(NATIVECCCOMPOPTS[[:space:]]*=.*)|\1 ${CFLAGS}|' \
d101 1
d105 1
a105 2
		${XARGS} -0 -n 5 -x \
		${REINPLACE_CMD} -E \
d107 4
a110 9
		-e 's,^([[:space:]]*(then)?[[:space:]]*)cp([[:space:]]+.*BINDIR),\1\$${BSD_INSTALL_PROGRAM} \3,' \
		-e 's,^([[:space:]]*(then)?[[:space:]]*)cp([[:space:]]+.*LIBDIR),\1\$${BSD_INSTALL_DATA} \3,' \
		-e 's,^([[:space:]]*(then)?[[:space:]]*)cp([[:space:]]+.*INSTALLDIR),\1\$${BSD_INSTALL_DATA} \3,' \
		-e 's,^([[:space:]]*(then)?[[:space:]]*)\$$\(CP\)([[:space:]]+.*BINDIR),\1\$${BSD_INSTALL_PROGRAM} \3,' \
		-e 's,^([[:space:]]*(then)?[[:space:]]*)\$$\(CP\)([[:space:]]+.*LIBDIR),\1\$${BSD_INSTALL_DATA} \3,' \
		-e 's,^([[:space:]]*(then)?[[:space:]]*)(\$$\(CP\)|cp)([[:space:]]+.*(MANDIR|MANODIR|MANEXT)),\1\$${BSD_INSTALL_MAN} \4,' \
		-e 's,([[:space:]]*then[[:space:]]*)cp([[:space:]]+.*LIBDIR),\1\$${BSD_INSTALL_DATA} \2,' \
		-e 's,([[:space:]]*then[[:space:]]*)cp([[:space:]]+.*BINDIR),\1\$${BSD_INSTALL_PROGRAM} \2,' \
		-e 's,([[:space:]]*(do|then)[[:space:]]*)(\$$\(CP\)|cp)([[:space:]]+.*(MANDIR|MANODIR|MANEXT)),\1\$${BSD_INSTALL_MAN} \4,'
d116 5
a120 7
	@@${MKDIR} ${EXAMPLESDIR}/labltk
	@@${MKDIR} ${EXAMPLESDIR}/camltk
	@@${MKDIR} ${EXAMPLESDIR}/camltk/images
	@@cd ${WRKSRC}/otherlibs/labltk/examples_labltk; \
		${INSTALL_DATA} * ${EXAMPLESDIR}/labltk
	@@${CP} -r ${WRKSRC}/otherlibs/labltk/examples_camltk/* \
		${EXAMPLESDIR}/camltk
d122 1
d127 4
a130 5
# XXX ugly hack to fix permissions.
	@@${FIND} ${EXAMPLESDIR} -type f -print0 | \
		${XARGS} -0 -n 5 -x \
		${CHMOD} ${SHAREMODE}
	@@${CHMOD} u+w ${PREFIX}/lib/ocaml/ld.conf
d132 1
a132 1
.if defined(WITH_OPT_DEFAULT)
d134 1
a134 1
# First, we save bytecode version
d136 2
a137 1
# Next make .opt version be the default one (as link)
d139 2
a140 3
	@@${ECHO_CMD} "bin/${module}.opt" >> ${TMPPLIST}
	@@${ECHO_CMD} "@@exec ln %D/%F %B/${module}" >> ${TMPPLIST}
	@@${ECHO_CMD} "@@unexec rm %B/${module}" >> ${TMPPLIST}
a141 9
# Add files to the PLIST
	@@${FIND} ${PREFIX}/bin/ -type f -name \?caml\*.byte -or -name camlp4\?.byte \
		| ${SED} "s,^${PREFIX}/,," >> ${TMPPLIST}
.else
. for module in ${MODOPT}
	@@${ECHO_CMD} ${module:S|^|bin/|} >> ${TMPPLIST}
. endfor
	@@${FIND} ${PREFIX}/bin/ -type f -name \?caml\*.opt -or -name camlp4\?.opt \
		| ${SED} "s,^${PREFIX}/,," >> ${TMPPLIST}
d143 6
d150 1
a150 1
.if !defined(WITHOUT_COMPILER_LIB)
@


1.52
log
@Reset marwan.burelle@@lri.fr due to 6 months of inactivity, no response to
email, and various maintainer-timeouts.

Hat:		portmgr
@
text
@d9 1
a9 1
PORTVERSION=	3.09.0
d13 3
a15 1
		ftp://ftp.kurims.kyoto-u.ac.jp/pub/lang/caml-light/${DISTNAME:R}/
d93 1
a93 1
BROKEN=	"ocamlc.opt seg-faults on ${ARCH}, please try to fix"
@


1.51
log
@Remove USE_REINPLACE from the categories starting with L
@
text
@d16 1
a16 1
MAINTAINER?=	marwan.burelle@@lri.fr
@


1.50
log
@- Update to 3.09.0

PR:		ports/89780
Submitted by:	maintainer
@
text
@a41 1
USE_REINPLACE=	yes
@


1.49
log
@BROKEN on ia64: Segfault during build
@
text
@d9 1
a9 2
PORTVERSION=	3.08.3
PORTREVISION=	2
d69 2
a70 1
		Unix.LargeFile.n Unix.n Weak.Make.n Weak.S.n Weak.n
d92 1
a92 1
BROKEN=	ocamlc.opt seg-faults on ${ARCH}, please try to fix
@


1.48
log
@- Update metaocaml to 3.08.a23
- Remove CONFLICTS with lang/ocaml

Submitted by:	Geoffrey Mainland (metaocaml maintainer)
PR:		ports/85236
@
text
@d91 2
a92 2
.if ${MACHINE_ARCH} == sparc64
BROKEN=	ocamlc.opt seg-faults on ${MACHINE_ARCH}, please try to fix
@


1.47
log
@Don't try to fix compile flags on sparc64 and just mark the port broken
on the platform -- ocamlc.opt keeps seg-faulting even with `-O0 -g' even
on 5-stable.

Patch(es) needed.

Notified by:	Peter van Dijk
@
text
@a19 2
CONFLICTS=	metaocaml-[0-9]*

@


1.46
log
@OCaml folks use $(ARCH) in Makefiles to mean, what configure identified
as the architecture (and wrote out ${WRKSRC}/config/Makefile).
Our make, however, ignores assigments to this variable. Fortunately for
most concerned, make's ARCH is the same as configure's. Except on
sparc64.
This update fixes this problem as well as
	. adds a hunk to patch-configure to enable profiling on all
	  platforms;
	. modifies REPLINPLACE_ARGS to not even create .bak files instead
	  of removing them later.

at the moment, the build still dies on Panther due to a segfault in the
freshly built ocamlc.opt. It may be due to Panther's running 6-current,
however and there is no other sparc64 to check...

Notified by:	kris	(the sparc vs. sparc64 issue)
@
text
@d93 3
a104 3
.if ${MACHINE_ARCH} == sparc64
        @@${REINPLACE_CMD} -e 's,-O2,-O,g' ${WRKSRC}/config/Makefile
.endif
@


1.45
log
@Remove architecture limitations. It certainly builds fine on my amd64
machine. If our other platforms still have problems, I'll cross them
out after pointyhat's notification(s).

Approved by:	maintainer timeout
@
text
@d46 1
d100 1
d102 3
d110 1
a119 1
	@@${FIND} ${WRKDIR} -type f -name Makefile.bak -delete
@


1.44
log
@Conflicts with metaocaml.
@
text
@a91 4
.if ${ARCH} != "i386"
PLIST_SUB+=	PROF="@@comment "
BROKEN=		"Does not compile on !i386"
.else
a92 1
.endif
@


1.43
log
@- Add a knob WITHOUT_COMPILER_LIB, in order to install compiler libs
  (additionnal libs needed to build programs manipulating OCaml modules,
  like the ocaml/cduce interface for example.);

- add an option WITH_OPT_DEFAULT, telling the port to replace ocamlc and
  other tools by there native and faster version;
	WARNING: This option may break other ports!

- Take maintainership.

PR:		ports/81868
Submitted by:	Marwan Burelle <marwan.burelle (at) lri.fr>
@
text
@d20 2
d26 1
a26 1
CONFLICTS=	ocaml-[0-9]* ocaml-notk-[0-9]*
d33 1
a33 1
CONFLICTS=	ocaml-[0-9]* ocaml-nox11-[0-9]*
d36 1
a36 1
CONFLICTS=	ocaml-nox11-[0-9]* ocaml-notk-[0-9]*
@


1.42
log
@BROKEN on !i386: Does not compile
@
text
@d10 1
a10 1
PORTREVISION=	1
d17 1
a17 1
MAINTAINER?=	ports@@FreeBSD.org
d24 1
a24 1
CONFLICTS=	ocaml-[0-9]* ocaml-notk-*
d31 1
a31 1
CONFLICTS=	ocaml-[0-9]* ocaml-nox11-*
d34 1
a34 1
CONFLICTS=	ocaml-nox11-* ocaml-notk-*
d86 2
d140 36
a175 1
		
@


1.41
log
@- Fix permission of ld.conf. It should be 0644 instead of 0444.
- Unbreak unguilty ports.
@
text
@d90 1
a94 4
.if ${ARCH} == "sparc64"
BROKEN=		"Does not compile on sparc64"
.endif

@


1.40
log
@- Fix plist: delete .bak files after REINPLACE_CMD so they don't get installed
  later
@
text
@d10 1
d136 1
a136 3
# XXX ugly hack to fix permissions. I could not find the proper
# Makefile entry

d140 1
a140 6
	@@${FIND} -d ${EXAMPLESDIR} -type d -print0 | \
		${XARGS} -0 -n 5 -x \
		${CHMOD} ${SHAREMODE}
	@@${FIND} -s ${EXAMPLESDIR} -type d -print0 | \
		${XARGS} -0 -n 5 -x \
		${CHMOD} a+x
@


1.39
log
@o Update to 3.08.3
o Uphold both CFLAGS and INSTALL_* permission safeness
o Both sort and update PLIST
o Tested against net/mldonkey-devel for 24 hours
@
text
@d117 1
@


1.38
log
@- Reset maintainer

Requested by:	Eugene Ossintsev <eugos@@gmx.net>
@
text
@d9 1
a9 1
PORTVERSION=	3.08.2
d42 1
d45 1
d97 21
d134 2
d137 10
@


1.37
log
@Update to version 3.08.2.
Mark broken on sparc64.

PR:		74342
Submitted by:	maintainer
@
text
@d16 1
a16 1
MAINTAINER?=	eugos@@gmx.net
@


1.36
log
@BROKEN on sparc64 when defined(WITHOUT_X11): Does not compile
@
text
@d9 1
a9 2
PORTVERSION=	3.08.1
PORTREVISION=	1
d11 3
a13 3
MASTER_SITES=	http://caml.inria.fr/distrib/${DISTNAME:S/.1$//}/ \
		ftp://ftp.inria.fr/INRIA/caml-light/${DISTNAME:S/.1$//}/ \
		ftp://ftp.kurims.kyoto-u.ac.jp/pub/lang/caml-light/${DISTNAME:S/.1$//}/
d41 1
d91 1
a91 1
.if ${ARCH} == "sparc64" && defined(WITHOUT_X11)
@


1.35
log
@- Add an empty directory to the package, so deinstalling of the package does
  not produce the warning about a nonexisting directory.

PR:		ports/73842
Submitted by:	Eugene Ossintsev <eugos@@gmx.net> (maintainer)
@
text
@d91 4
@


1.34
log
@Update to 3.08.1

PR:		ports/70745
Submitted by:	maintainer
@
text
@d10 1
d92 1
@


1.33
log
@Update to 3.08.0

PR:		ports/69254
Submitted by:	Eugene Ossintsev (maintainer)
@
text
@d9 1
a9 1
PORTVERSION=	3.08.0
d11 3
a13 3
MASTER_SITES=	http://caml.inria.fr/distrib/${DISTNAME:S/.0$//}/ \
		ftp://ftp.inria.fr/INRIA/caml-light/${DISTNAME:S/.0$//}/ \
		ftp://ftp.kurims.kyoto-u.ac.jp/pub/lang/caml-light/${DISTNAME:S/.0$//}/
@


1.32
log
@BROKEN on sparc64: Coredump during build
@
text
@d9 1
a9 1
PORTVERSION=	3.07.2
d11 3
a13 3
MASTER_SITES=	http://caml.inria.fr/distrib/${DISTNAME}/ \
		ftp://ftp.inria.fr/INRIA/caml-light/${DISTNAME}/ \
		ftp://ftp.kurims.kyoto-u.ac.jp/pub/lang/caml-light/${DISTNAME}/
a14 5
DISTNAME=	${PORTNAME}-${PORTVERSION:S/.2$//}

PATCH_SITES=	${MASTER_SITES}
PATCHFILES=	${DISTNAME}-patch2.diffs
PATCH_DIST_STRIP=-p1
d44 3
a46 9
.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
d69 1
a69 1
		camlp4.1 ocpp.1 camlp4.1 camlp4sch.1
d84 4
a87 2
.if ${ARCH} == "sparc64"
BROKEN=		"Coredump during build on sparc64"
@


1.31
log
@- Replace nasty [A-Za-hj-z] with a recursive cp. Not that elegant but it
  works under all locales.

Approved by:	maintainer
@
text
@d93 6
d115 1
a115 1
.include <bsd.port.mk>
@


1.30
log
@- Split the port into 3 parts: ocaml, ocaml-nox11 (slave port), ocaml-doc
- Strip all the executables which are allowed to be stripped
  according to the OCaml documentation
- PORTVERSION looks now more correct because the documentation
  (which has the other version number, without the patch level prefix)
  is now in a separate port

PR:		ports/62291
Submitted by:	maintainer
@
text
@d101 2
a102 4
	@@cd ${WRKSRC}/otherlibs/labltk/examples_camltk/images; \
		${INSTALL_DATA} * ${EXAMPLESDIR}/camltk/images
	@@cd ${WRKSRC}/otherlibs/labltk/examples_camltk; \
		${INSTALL_DATA} [A-Za-hj-z]* ${EXAMPLESDIR}/camltk
@


1.29
log
@- Added a patch to the original OCaml's configure script
  to fix building the port when using WITHOUT_X11 knob.
- Fixed Makefiles to avoid gmake-isms.
- Fix pkg-plist

PR:		60219
Submitted by:	maintainer
Noticed by:	Dmitry Morozovsky <marck@@rinet.ru>,
		Marwan Burelle <Marwan.Burelle@@ens.fr>
@
text
@d1 1
a1 1
# New ports collection makefile for:	Objective Caml
d9 1
a9 2
PORTVERSION=	3.07
PORTREVISION=	1
d14 2
a15 4
PKGNAMESUFFIX=	${TKSFX}
DISTFILES=	${DISTNAME}${EXTRACT_SUFX} ${DOCFILES}
EXTRACT_ONLY=	${DISTNAME}${EXTRACT_SUFX} \
		${DISTNAME}-refman.html${EXTRACT_SUFX}
d21 2
a22 4
MAINTAINER=	eugos@@gmx.net
COMMENT=	An ML language based on a complete class-based objective system

PLIST_SUB+=	DISTNAME=${DISTNAME}
d27 2
a28 1
TKSFX=		-nox11
d34 2
a35 1
TKSFX=		-notk
d38 2
d82 1
a82 2
CONFIGURE_ARGS=	-prefix ${PREFIX} \
		-with-pthread
d85 1
a85 2
CONFIGURE_ARGS+=	-x11include ${X11BASE}/include \
			-x11lib ${X11BASE}/lib
a92 5
.if !defined(NOPORTDOCS)
DOCFILES=	${DISTNAME}-refman.html.tar.gz ${DISTNAME}-refman.ps.gz \
		${DISTNAME}-refman.pdf
.endif

a93 10
	@@${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
d106 4
a109 1
	@@${STRIP_CMD} ${PREFIX}/bin/ocamlrun ${PREFIX}/bin/ocamlyacc
@


1.28
log
@- Update to 3.07 (patchlevel 2
- Fix MASTER_SITES list
- Update MANN and MLINK
- Re-sort pkg-plist for better maintenance
- Assign maintainership to the submitter

PR:		59602
Submitted by:	Eugene Ossintsev <eugos@@gmx.net>
Approved by:	previous maintainer
@
text
@d10 1
d86 1
a86 3
.if defined(WITHOUT_X11)
CONFIGURE_ARGS+=	-tk-no-x11 -no-tk
.else
@


1.27
log
@Make portlint(1) happy by changing strip to ${STRIP_CMD}

Submitted by:	Oleg Karachevtsev <ok@@etrust.ru>
PR:		56998
@
text
@d9 1
a9 1
PORTVERSION=	3.06
d12 1
a12 1
		ftp://ftp.inria.fr/lang/caml-light/${DISTNAME}/ \
d19 5
a23 1
MAINTAINER=	patrick@@watson.org
d26 2
d40 3
a42 3
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
d72 3
a74 3
		Printf.n Queue.n Random.n Scanf.Scanning.n Scanf.n Set.Make.n \
		Set.OrderedType.n Set.S.n Set.n Sort.n Stack.n \
		StdLabels.Array.n StdLabels.List.n StdLabels.String.n \
d80 1
a80 1
		camlp4.1 ocpp.1
d93 1
a93 1
CONFIGURE_ARGS+=	-tkdefs "-I${LOCALBASE}/include/tcl8.3 -I${LOCALBASE}/include/tk8.3"
@


1.26
log
@  Add WITHOUT_X11 knob. It allows to build OCAML on servers and other
  systems withou XFree86 libraries.

PR:		ports/53289
Submitted by:	myself
Approved by:	sobomax
@
text
@d119 1
a119 1
	@@strip ${PREFIX}/bin/ocamlrun ${PREFIX}/bin/ocamlyacc
@


1.25
log
@De-pkg-comment.
@
text
@d22 7
d38 1
a39 1
USE_XLIB=	yes
a76 2
		-x11include ${X11BASE}/include \
		-x11lib ${X11BASE}/lib \
d79 5
d85 1
a85 1
CONFIGURE_ARGS+=-no-tk
d87 2
a88 1
CONFIGURE_ARGS+=-tkdefs "-I${PREFIX}/include/tcl8.3 -I${PREFIX}/include/tk8.3"
@


1.24
log
@Update to version 3.06

PR: 41822
Submitted by: Ronald Kuehn <rk@@ronald.org>
@
text
@d20 1
@


1.23
log
@Update to ocaml 3.05.

PR:		41299
Submitted by:	Ronald Kuehn <rk@@ronald.org>
Approved by:	maintainer timeout
@
text
@d9 1
a9 1
PORTVERSION=	3.05
d11 3
a13 3
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/
@


1.22
log
@Update to 3.04

PR:		33820
Submitted by:	Ronald Kuehn <rk@@ronald.org>
Approved by:	maintainer
@
text
@d9 1
a9 1
PORTVERSION=	3.04
d14 1
d16 2
a17 1
EXTRACT_ONLY=	${DISTNAME}${EXTRACT_SUFX} ${DISTNAME}-refman.html${EXTRACT_SUFX}
d22 2
a23 1
PLIST_SUB+=	LABLTK:="@@comment "
d25 1
a25 1
PLIST_SUB+=	LABLTK:=""
d33 1
a33 1
ALL_TARGET=	world opt opt.opt
d36 1
a36 1
PLIST_SUB+=	PROF:="@@comment "
d38 1
a38 1
PLIST_SUB+=	PROF:=""
d44 19
d73 3
a75 1
.if !defined(WITHOUT_TK)
d98 3
a100 1
	@@cd ${WRKSRC}/otherlibs/labltk/example; \
d102 4
@


1.21
log
@Update to 3.02.

PR:		ports/29586
Submitted by:	Patrick M Doane <patrick@@watson.org> (MAINTAINER)
@
text
@d5 1
a5 1
# $FreeBSD: ports/lang/ocaml/Makefile,v 1.20 2001/03/18 07:41:07 dinoex Exp $
d9 1
a9 1
PORTVERSION=	3.02
d19 3
a21 3
WITH_TK=        yes

.if defined(WITH_TK)
a25 2
.else
PLIST_SUB+=	LABLTK:="@@comment "
d38 7
a44 3
MAN1=		ocamlcp.1 ocamldep.1 ocamldebug.1 ocamlopt.1 ocamlc.opt.1 \
		ocamlrun.1 ocamlyacc.1 ocamlmktop.1 ocamlopt.opt.1 \
		ocaml.1 ocamlc.1 ocamllex.1 ocamlprof.1
d51 2
a52 2
.if defined(WITH_TK)
CONFIGURE_ARGS+=	-tkdefs "-I${PREFIX}/include/tcl8.3 -I${PREFIX}/include/tk8.3"
d56 2
a57 1
DOCFILES=	${DISTNAME}-refman.html.tar.gz ${DISTNAME}-refman.ps.gz
d62 1
a62 1
	${INSTALL_DATA} ${WRKSRC}/LICENSE ${DOCSDIR}/
d65 5
a69 2
	@@cd ${WRKDIR}/htmlman; ${INSTALL_DATA} * ${DOCSDIR}/html
	@@${CP} ${DISTDIR}/${DISTNAME}-refman.ps.gz ${DOCSDIR}
d71 5
a75 4
.if defined(WITH_TK)
	@@${MKDIR} ${PREFIX}/share/examples/ocaml
	@@${MKDIR} ${PREFIX}/share/examples/ocaml/labltk
	@@cd ${WRKSRC}/otherlibs/labltk/example; ${INSTALL_DATA} * ${PREFIX}/share/examples/ocaml/labltk
@


1.20
log
@Update to new Version 3.01
Patch diddn't apply cleanly, not reflecting the current version.
Merged the changes.
Tested both standard package and "WITH_TK=yes"

PR:		25816
Submitted by:	patrick@@watson.org
@
text
@d5 1
a5 1
# $FreeBSD: ports/lang/ocaml/Makefile,v 1.19 2001/02/24 00:23:32 olgeni Exp $
d9 1
a9 1
PORTVERSION=	3.01
d19 2
d23 2
d32 1
a32 1
ALL_TARGET=	world bootstrap opt opt.opt
d58 2
a59 2
	@@${MKDIR} ${PREFIX}/share/doc/ocaml
	${INSTALL_DATA} ${WRKSRC}/LICENSE ${PREFIX}/share/doc/ocaml/
d61 8
a68 3
	@@${MKDIR} ${PREFIX}/share/doc/ocaml/html
	@@cd ${WRKDIR}/htmlman; ${INSTALL_DATA} * ${PREFIX}/share/doc/ocaml/html
	@@${CP} ${DISTDIR}/${DISTNAME}-refman.ps.gz ${PREFIX}/share/doc/ocaml
@


1.19
log
@Remove backup file from html documentation.
@
text
@d5 1
a5 1
# $FreeBSD: ports/lang/ocaml/Makefile,v 1.18 2001/02/17 23:01:10 jeh Exp $
d9 1
a9 2
PORTVERSION=	3.00
PORTREVISION=	1
d11 2
a12 1
MASTER_SITES=	ftp://ftp.inria.fr/lang/caml-light/ \
d28 1
a28 1
ALL_TARGET=	world bootstrap opt ocamlc.opt ocamlopt.opt
d36 3
a38 3
MAN1=		ocaml.1 ocamlc.1 ocamlcp.1 ocamldep.1 ocamllex.1 \
		ocamlopt.1 ocamlprof.1 ocamlrun.1 ocamlyacc.1 ocamlmktop.1 \
		ocamlc.opt.1 ocamlopt.opt.1
a58 1
	@@${RM} ${PREFIX}/share/doc/ocaml/html/*~
@


1.18
log
@Attached patch allows OCAML to detect and use FreeBSD's native
pthreads in Thread module. Also fixes the bug in OCAML
distribution which nobody apparently noticed before.

Use TK 8.3 instead of 8.2 for labltk

PR:		23305
Submitted by:	Alexander N. Kabaev <ak03@@gte.com>
Submitted by:	Patrick M Doane <patrick@@watson.org>
@
text
@d5 1
a5 1
# $FreeBSD: ports/lang/ocaml/Makefile,v 1.17 2001/01/16 17:31:13 sobomax Exp $
d59 1
@


1.17
log
@Massive style enforcement - use ^I instead of spaces for variables identation.
@
text
@d5 1
a5 1
# $FreeBSD: ports/lang/ocaml/Makefile,v 1.16 2000/10/02 14:40:55 ade Exp $
d10 1
d14 1
a14 1
DISTFILES=	${PKGNAME}.tar.gz ${DOCFILES}
d21 1
a21 1
LIB_DEPENDS=	tk82.1:${PORTSDIR}/x11-toolkits/tk82
d42 2
a43 1
		-x11lib ${X11BASE}/lib
d46 1
a46 1
CONFIGURE_ARGS+=	-tkdefs "-I${PREFIX}/include/tcl8.2 -I${PREFIX}/include/tk8.2"
@


1.16
log
@Change maintainership

PR:		20645
Submitted by:	patrick@@watson.org (new maintainer)
Approved by:	ortmann@@isl.net (old maintainer)
@
text
@d5 1
a5 1
# $FreeBSD: ports/lang/ocaml/Makefile,v 1.15 2000/08/13 12:21:20 alex Exp $
d19 2
a20 2
PLIST_SUB+=     LABLTK:=""
LIB_DEPENDS=    tk82.1:${PORTSDIR}/x11-toolkits/tk82
d22 1
a22 1
PLIST_SUB+=     LABLTK:="@@comment "
d30 1
a30 1
PLIST_SUB+=     PROF:="@@comment "
d32 1
a32 1
PLIST_SUB+=     PROF:=""
d44 1
a44 1
CONFIGURE_ARGS+= -tkdefs "-I${PREFIX}/include/tcl8.2 -I${PREFIX}/include/tk8.2"
@


1.15
log
@Update to version 3.00.
Portlint, while I'm here.

PR:		20539
Submitted by:	Alexander Kabaev <ak03@@gte.com>
@
text
@d5 1
a5 1
# $FreeBSD: ports/lang/ocaml/Makefile,v 1.14 2000/04/16 04:14:09 asami Exp $
d16 1
a16 1
MAINTAINER=	ortmann@@isl.net
@


1.14
log
@DISTNAMe-related cleanups.
@
text
@d5 1
a5 1
# $FreeBSD: ports/lang/ocaml/Makefile,v 1.13 2000/04/12 06:19:40 obrien Exp $
d9 1
a9 1
PORTVERSION=	2.04
d14 1
d18 7
a24 1
EXTRACT_ONLY=	${DISTNAME}${EXTRACT_SUFX} ${DISTNAME}-refman.html${EXTRACT_SUFX}
a26 1
#USE_GMAKE=	yes
d30 3
a32 1
PLIST=		${PKGDIR}/PLIST.noprof
d39 7
a45 1
CONFIGURE_ENV=	PREFIX=${PREFIX} X11BASE=${X11BASE} BATCH=${BATCH}
@


1.13
log
@Convert to the PORTNAME - PORTVERSION syntax.
@
text
@d5 1
a5 1
# $FreeBSD: ports/lang/ocaml/Makefile,v 1.12 2000/03/26 06:02:58 kris Exp $
d13 1
a13 1
DISTFILES=	${PORTNAME}${PORTVERSION}.tar.gz ${DOCFILES}
@


1.12
log
@Comply with the license terms and install the license file.

Obtained from:	OpenBSD
@
text
@a1 1
# Version required:	2.04
d5 1
a5 1
# $FreeBSD: ports/lang/ocaml/Makefile,v 1.11 2000/02/28 15:44:19 imura Exp $
d8 2
a9 1
DISTNAME=	ocaml-2.04
d13 1
a13 1
DISTFILES=	${DISTNAME}.tar.gz ${DOCFILES}
@


1.11
log
@Update to version 2.04.

PR:		16656
Submitted by:	Ronald Kuehn <kuehn@@rz.tu-clausthal.de>
Approved by:	maintainer
@
text
@d6 1
a6 1
# $FreeBSD: ports/lang/ocaml/Makefile,v 1.10 1999/08/25 06:35:06 obrien Exp $
d38 2
@


1.10
log
@Change Id->FreeBSD.
@
text
@d2 1
a2 1
# Version required:	1.07
d6 1
a6 1
# $FreeBSD$
d9 1
a9 1
DISTNAME=	ocaml-2.02
@


1.9
log
@awk -> ${AWK}
basename -> ${BASENAME}
cat -> ${CAT}
cp -> ${CP}
ldconfig -> ${LDCONFIG}
mkdir -> ${MKDIR}
@
text
@d6 1
a6 1
# $Id: Makefile,v 1.8 1999/05/31 05:14:39 steve Exp $
@


1.8
log
@Anyone up for a little ocaml on their Alpha box?
@
text
@d6 1
a6 1
# $Id: Makefile,v 1.7 1999/05/09 16:39:54 steve Exp $
d41 1
a41 1
	@@cp ${DISTDIR}/${DISTNAME}-refman.ps.gz ${PREFIX}/share/doc/ocaml
@


1.7
log
@Fix profiling on ELF systems.

PR:		11566
Submitted by:	Ronald Kuehn <rk@@ronald.org>
@
text
@d6 1
a6 1
# $Id: Makefile,v 1.6 1999/03/27 22:15:53 asami Exp $
d22 4
@


1.6
log
@portlint
@
text
@d6 1
a6 1
# $Id: Makefile,v 1.5 1999/03/24 17:52:16 steve Exp $
d20 2
a21 3
USE_GMAKE=	yes
ALL_TARGET=	world bootstrap opt
# targets not yet working (due to Elf) ==> ocamlc.opt ocamlopt.opt
d24 2
a25 2
		ocamlopt.1 ocamlprof.1 ocamlrun.1 ocamlyacc.1 ocamlmktop.1
# manpages not yet installing (due to Elf) ==> ocamlc.opt.1 ocamlopt.opt.1
@


1.5
log
@Update to version 2.02.

PR:		10718
Submitted by:	Daniel Ortmann <ortmann@@sparc.isl.net>
@
text
@d6 1
a6 1
# $Id: Makefile,v 1.4 1998/11/28 09:07:13 asami Exp $
a13 1
EXTRACT_ONLY=	${DISTNAME}${EXTRACT_SUFX} ${DISTNAME}-refman.html${EXTRACT_SUFX}
d17 1
@


1.4
log
@A few more USE_XLIBs.
@
text
@d6 1
a6 1
# $Id: Makefile,v 1.3 1998/02/21 15:46:28 steve Exp $
d9 1
a9 1
DISTNAME=	ocaml-1.07
d11 2
a12 2
MASTER_SITES=	ftp://ftp.kurims.kyoto-u.ac.jp/pub/lang/caml-light/ \
		ftp://ftp.inria.fr/lang/caml-light/
d14 1
d16 1
a16 1
MAINTAINER=	kiri@@kiri.toba-cmt.ac.jp
d22 2
d25 2
a26 1
		ocamlopt.1 ocamlprof.1 ocamlrun.1 ocamlyacc.1
d31 1
a31 1
DOCFILES=	${DISTNAME}-refman.html.tar.gz
d38 1
@


1.3
log
@Update to version 1.07.

PR:		5252, 5375
Submitted by:	maintainer
@
text
@d6 1
a6 1
# $Id: Makefile,v 1.2 1997/11/18 12:31:08 tg Exp $
d17 1
@


1.2
log
@Install reference manuals.

PR:		4667
Submitted by:	Ian Vaudrey <i.vaudrey@@cableinet.co.uk>
@
text
@d2 1
a2 1
# Version required:	1.03
d6 1
a6 1
# $Id: Makefile,v 1.1.1.1 1997/01/03 11:25:46 asami Exp $
d9 1
a9 1
DISTNAME=	ocaml-1.03
d23 2
d31 2
a32 2
	${MKDIR} ${PREFIX}/share/doc/ocaml/html
	cd ${WRKDIR}/htmlman; ${INSTALL_DATA} * ${PREFIX}/share/doc/ocaml/html
@


1.1
log
@Initial revision
@
text
@d6 1
a6 1
# $Id$
d13 1
d21 5
a25 1
		ocamlopt.1 ocamlprof.1 ocamlrun.1 ocamlyacc.1 
d28 4
@


1.1.1.1
log
@Objective Caml.

Submitted by:	(Kiriyama Kazuhiko) <kiri@@kiri.toba-cmt.ac.jp>
@
text
@@
