head	1.12;
access;
symbols
	RELEASE_8_3_0:1.10
	RELEASE_9_0_0:1.10
	RELEASE_7_4_0:1.8
	RELEASE_8_2_0:1.8
	RELEASE_6_EOL:1.8
	RELEASE_8_1_0:1.8
	RELEASE_7_3_0:1.8
	RELEASE_8_0_0:1.8
	RELEASE_7_2_0:1.8
	RELEASE_7_1_0:1.7
	RELEASE_6_4_0:1.7
	RELEASE_5_EOL:1.7
	RELEASE_7_0_0:1.7
	RELEASE_6_3_0:1.7
	PRE_XORG_7:1.4
	RELEASE_4_EOL:1.2
	RELEASE_6_2_0:1.2;
locks; strict;
comment	@# @;


1.12
date	2012.11.17.05.58.53;	author svnexp;	state Exp;
branches;
next	1.11;

1.11
date	2012.04.19.04.10.34;	author bf;	state Exp;
branches;
next	1.10;

1.10
date	2011.10.24.03.33.10;	author stas;	state Exp;
branches;
next	1.9;

1.9
date	2011.04.05.22.23.31;	author stas;	state Exp;
branches;
next	1.8;

1.8
date	2009.01.08.16.12.38;	author stas;	state Exp;
branches;
next	1.7;

1.7
date	2007.10.04.05.55.26;	author edwin;	state Exp;
branches;
next	1.6;

1.6
date	2007.10.04.01.25.17;	author edwin;	state Exp;
branches;
next	1.5;

1.5
date	2007.05.19.20.13.48;	author flz;	state Exp;
branches;
next	1.4;

1.4
date	2007.03.27.22.11.59;	author stas;	state Exp;
branches;
next	1.3;

1.3
date	2007.03.14.04.12.24;	author linimon;	state Exp;
branches;
next	1.2;

1.2
date	2006.09.13.16.39.47;	author shaun;	state Exp;
branches;
next	1.1;

1.1
date	2006.09.04.15.27.12;	author itetcu;	state Exp;
branches;
next	;


desc
@@


1.12
log
@Switch exporter over
@
text
@# New ports collection makefile for:	camlidl
# Date created:		2006-07-31
# Whom:			Stanislav Sedov <ssedov@@mbsd.msk.ru>
#
# $MBSDlabs$
# $FreeBSD: head/lang/ocaml-camlidl/Makefile 300896 2012-07-14 13:54:48Z beat $
#

PORTNAME=	camlidl
PORTVERSION=	1.05
PORTREVISION=	2
CATEGORIES=	lang
MASTER_SITES=	http://caml.inria.fr/distrib/bazar-ocaml/
PKGNAMEPREFIX=	ocaml-
DISTFILES=	${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX} \
		${PORTNAME}-${PORTVERSION}.doc.html.tar.gz
EXTRACT_ONLY=	${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}

MAINTAINER=	ports@@FreeBSD.org
COMMENT=	A stub code generator for using C/C++ libraries from ocaml

USE_OCAML=	yes

MAKE_JOBS_UNSAFE=	yes

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

.include <bsd.port.pre.mk>

post-extract:
	@@${REINPLACE_CMD} -e "s,^\(OCAMLLIB=\).*,\1${PREFIX}/lib/ocaml,g" \
		-e "s,^\(BINDIR=\).*,\1${PREFIX}/bin,g" \
		-e "s,^CFLAGS=.*,#\&,g" \
		-e "s,^\(CPP=\).*,\1/usr/bin/cpp,g" \
		${WRKSRC}/config/Makefile.unix

	@@${REINPLACE_CMD} -e \
		"/^install/,/^$$/s,\([ \t]*\)cp,\1${INSTALL_SCRIPT},g" \
		${WRKSRC}/compiler/Makefile

	@@${REINPLACE_CMD} -e \
		"/^install/,/^$$/s,\([ \t]*\)cp,\1${INSTALL_DATA},g" \
		${WRKSRC}/lib/Makefile ${WRKSRC}/runtime/Makefile.unix

	@@${LN} -sf ${WRKSRC}/config/Makefile.unix ${WRKSRC}/config/Makefile

pre-install:
.if !exists(${PREFIX}/lib/ocaml/caml)
	${MKDIR} ${PREFIX}/lib/ocaml/caml
.endif

post-install:
.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
	${GZCAT} ${_DISTDIR}/${PORTNAME}-${PORTVERSION}.doc.html.tar.gz \
		| ${TAR} -C ${DOCSDIR} -xf -
	${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
	${FIND} ${DOCSDIR}/ -type f -exec ${CHMOD} ${SHAREMODE} {} \;
.endif

test:
	@@${ECHO_CMD} "Testing IDL library"
	@@${REINPLACE_CMD} -e "s,^\(CCPP=\).*,\1${CXX},g" \
		${WRKSRC}/tests/Makefile
	cd ${WRKSRC}/tests && ${SETENV} ${MAKE_ENV} ${MAKE} all

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


1.11
log
@mark MAKE_JOBS_UNSAFE

PR:		166675
Submitted by:	M. Dzham
@
text
@d6 1
a6 1
# $FreeBSD$
@


1.10
log
@- Return my ports back to the pool.  I was unable to make any fixes to
  my ports in the past 3 weeks while ports were broken on any 10.x
  machines, which means I'm unable to maintain them.  So let people know
  that there's no available support for them until things are back to
  normal (which also means that anyone with spare time will be able
  to fix them without getting approval).
@
text
@d24 2
@


1.9
log
@- Bump portrevisions on all ocaml libraries, as it appears that compiled
  interface files (.cmi) are not backward compatible with a newer ocaml
  version.

PR:		ports/156195
Suggested by:	mandree
@
text
@d19 1
a19 1
MAINTAINER=	stas@@FreeBSD.org
@


1.8
log
@- OCAMLWASH is not needed. In fact, it was not really used as the proper
  name of variable is OCAML_WASH.

Spotted by:	pav
@
text
@d11 1
a11 1
PORTREVISION=	1
@


1.7
log
@bsd.port.port.mk -> bsd.port.post.mk
Pointy hat to: moi
@
text
@a22 1
USE_OCAMLWASH=	yes
@


1.6
log
@Remove always-false/true conditions based on OSVERSION 500000
@
text
@d66 1
a66 1
.include <bsd.port.port.mk>
@


1.5
log
@- Welcome X.org 7.2 \o/.
- Set X11BASE to ${LOCALBASE} for recent ${OSVERSION}.
- Bump PORTREVISION for ports intalling files in ${X11BASE}.
@
text
@a28 4
.if ${OSVERSION} < 500000
USE_GMAKE=	yes
.endif

d66 1
a66 1
.include <bsd.port.post.mk>
@


1.4
log
@- Change my email.

Suggested by:	skv
@
text
@d11 1
@


1.3
log
@Switch to using new files Mk/bsd.ocaml.mk [1] and Mk/bsd.xfce.mk [2].

PR:	101029 [1], 108862 [2]

Submitted by:	Stanislav Sedov <ssedov at mbsd dot msk dot ru> [1], oliver [2]
@
text
@d18 1
a18 1
MAINTAINER=	ssedov@@mbsd.msk.ru
@


1.2
log
@Fix build/install on 4.x by using gmake+gunzip.

PR:		ports/103216
Submitted by:	Stanislav Sedov <ssedov@@mbsd.msk.ru>
@
text
@a26 1
.include "${PORTSDIR}/lang/ocaml/bsd.ocaml.mk"
@


1.1
log
@CamlIDL is a stub code generator and COM binding for Objective Caml.

CamlIDL comprises two parts:

	* A stub code generator that generates the C stub code required for the
Caml/C interface, based on an MIDL specification. (MIDL stands for Microsoft's
Interface Description Language; it looks like C header files with some extras
annotations, plus a notion of object interfaces that look like C++ classess
without inheritance.)

	* A (currently small) library of functions and tools to import COM
components in Caml applications, and export Caml code as COM components.

WWW:	http://caml.inria.fr/pub/old_caml_site/camlidl/

PR:		ports/101100
Submitted by:	Stanislav Sedov <ssedov at mbsd.msk.ru>
@
text
@d29 4
d58 2
a59 2
	${TAR} -C ${DOCSDIR} -xf \
		${_DISTDIR}/${PORTNAME}-${PORTVERSION}.doc.html.tar.gz
@

