head	1.19;
access;
symbols
	RELEASE_8_3_0:1.15
	RELEASE_9_0_0:1.15
	RELEASE_7_4_0:1.12
	RELEASE_8_2_0:1.12
	RELEASE_6_EOL:1.12
	RELEASE_8_1_0:1.12
	RELEASE_7_3_0:1.12
	RELEASE_8_0_0:1.11
	RELEASE_7_2_0:1.11
	RELEASE_7_1_0:1.10
	RELEASE_6_4_0:1.10
	RELEASE_5_EOL:1.9
	RELEASE_7_0_0:1.8
	RELEASE_6_3_0:1.8
	PRE_XORG_7:1.7
	RELEASE_4_EOL:1.5
	RELEASE_6_2_0:1.5
	RELEASE_6_1_0:1.2
	RELEASE_5_5_0:1.2
	RELEASE_6_0_0:1.1;
locks; strict;
comment	@# @;


1.19
date	2012.12.10.19.24.02;	author svnexp;	state Exp;
branches;
next	1.18;

1.18
date	2012.11.17.05.58.48;	author svnexp;	state Exp;
branches;
next	1.17;

1.17
date	2012.07.29.11.17.02;	author cs;	state Exp;
branches;
next	1.16;

1.16
date	2012.06.28.16.12.21;	author johans;	state Exp;
branches;
next	1.15;

1.15
date	2011.10.30.17.39.05;	author johans;	state Exp;
branches;
next	1.14;

1.14
date	2011.06.02.08.59.02;	author johans;	state Exp;
branches;
next	1.13;

1.13
date	2011.04.11.22.37.45;	author johans;	state Exp;
branches;
next	1.12;

1.12
date	2010.02.23.18.05.57;	author johans;	state Exp;
branches;
next	1.11;

1.11
date	2009.04.11.13.23.04;	author stas;	state Exp;
branches;
next	1.10;

1.10
date	2008.06.10.13.31.25;	author johans;	state Exp;
branches;
next	1.9;

1.9
date	2008.04.11.09.02.01;	author johans;	state Exp;
branches;
next	1.8;

1.8
date	2007.05.19.20.13.32;	author flz;	state Exp;
branches;
next	1.7;

1.7
date	2007.03.11.19.41.32;	author krion;	state Exp;
branches;
next	1.6;

1.6
date	2007.02.27.21.19.11;	author miwi;	state Exp;
branches;
next	1.5;

1.5
date	2006.07.27.13.12.18;	author thierry;	state Exp;
branches;
next	1.4;

1.4
date	2006.07.19.22.49.03;	author thierry;	state Exp;
branches;
next	1.3;

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

1.2
date	2006.01.20.00.06.33;	author kris;	state Exp;
branches;
next	1.1;

1.1
date	2005.06.19.14.38.51;	author thierry;	state Exp;
branches;
next	;


desc
@@


1.19
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/308630
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r308630 | mm | 2012-12-10 19:11:11 +0000 (Mon, 10 Dec 2012) | 4 lines
## SVN ##
## SVN ## Update PCRE to 8.32
## SVN ## Introduces the UTF-32 library pcre32
## SVN ## Bump PORTREVISION in dependent ports
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@# New ports collection makefile for:   cduce
# Date created:        Jun 9, 2005
# Whom:                Marwan Burelle <marwan.burelle@@lri.fr>
#
# $FreeBSD: head/lang/cduce/Makefile 308630 2012-12-10 19:11:11Z mm $

PORTNAME=	cduce
PORTVERSION=	0.5.5
PORTREVISION=	1
CATEGORIES=	lang
MASTER_SITES=	http://www.cduce.org/download/ \
		ftp://ftp.stack.nl/pub/users/johans/cduce/

MAINTAINER=	johans@@FreeBSD.org
COMMENT=	Efficient XML centric functional programming language

LIB_DEPENDS=	pcre:${PORTSDIR}/devel/pcre
BUILD_DEPENDS=	${SITELIBDIR}/ulex/ulexing.a:${PORTSDIR}/devel/ocaml-ulex \
		${SITELIBDIR}/pcre/pcre.a:${PORTSDIR}/devel/ocaml-pcre \
		${SITELIBDIR}/netstring/netstring.a:${PORTSDIR}/www/ocaml-net

USE_OCAML=	true
USE_OCAML_FINDLIB=	true
USE_OCAML_LDCONFIG=	true

OPTIONS_DEFINE=	OCURL OCAML_EXPAT MLIFACE
OPTIONS_DEFAULT=MLIFACE
OCURL_DESC=		Enable url support via ftp/ocaml-ocurl
OCAML_EXPAT_DESC=	Enable support for the Expat XML parser
MLIFACE_DESC=		Enable building OCaml/CDuce interface

USE_GMAKE=	yes
ALL_TARGET=	all
INSTALL_TARGET=	install_bin install_lib
HAS_CONFIGURE=	yes
CONFIGURE_ARGS=	--prefix=${PREFIX} --with-ocamlopt --without-cgi --without-netclient --without-pxp_wlex --docdir=${DOCSDIR}
SITELIBDIR=	${LOCALBASE}/${OCAML_SITELIBDIR}

MAN1=		cduce.1 cduce_mktop.1 dtd2cduce.1

PLIST_FILES=	bin/cduce

.include <bsd.port.options.mk>

# Support for url via ftp/ocaml-ocurl
.if ${PORT_OPTIONS:MOCURL}
BUILD_DEPENDS+=	${SITELIBDIR}/curl/curl.cmi:${PORTSDIR}/ftp/ocaml-ocurl
.else
CONFIGURE_ARGS+=	--without-curl
.endif

# Support for the PXP XML parser
.if ${PORT_OPTIONS:MOCAML_EXPAT}
CONFIGURE_ARGS+=	--with-expat --without-pxp
BUILD_DEPENDS+=		${SITELIBDIR}/expat/expat.cmi:${PORTSDIR}/textproc/ocaml-expat
.else
CONFIGURE_ARGS+=	--without-expat --with-pxp
BUILD_DEPENDS+=		${SITELIBDIR}/pxp-engine/pxp_engine.cma:${PORTSDIR}/textproc/ocaml-pxp
.endif

# Support for OCaml/CDuce interface
.if ${PORT_OPTIONS:MMLIFACE}
PLIST_FILES+=	bin/cduce_mktop
BUILD_DEPENDS+=	${NONEXISTENT}:${PORTSDIR}/lang/ocaml:patch
CONFIGURE_ARGS+=	--mliface=`cd ${PORTSDIR}/lang/ocaml; ${MAKE} -V WRKSRC`
.endif

.if ${PORT_OPTIONS:MDOCS}
ALL_TARGET+=		doc
INSTALL_TARGET+=	install_doc
PORTDOCS=		*
.endif

post-patch:
	${REINPLACE_CMD} 's/-linkpkg/& -thread/' \
		${WRKSRC}/Makefile ${WRKSRC}/configure.ml

post-install:
.if ${PORT_OPTIONS:MOCAML_EXPAT}
	@@${ECHO_CMD} "****************************************************************"
	@@${ECHO_CMD} "* You choose Expat as XML parser, you may encounter some error *"
	@@${ECHO_CMD} "* when loading XML files with external DTD.                    *"
	@@${ECHO_CMD} "****************************************************************"
.endif
.if empty(PORT_OPTIONS:MDOCS)
. for i in ${MAN1}
	${INSTALL_MAN} ${WRKSRC}/doc/${i} ${MANPREFIX}/man/man${i:E}/
. endfor
.endif

.include <bsd.port.mk>
@


1.18
log
@Switch exporter over
@
text
@d5 1
a5 1
# $FreeBSD: head/lang/cduce/Makefile 301684 2012-07-29 11:17:02Z cs $
d9 1
@


1.17
log
@SVN rev 301684 on 2012-07-29 11:17:02Z by cs

Fix typos in COMMENT

Approved by:	portmgr@@ (implicit)
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.16
log
@Convert to new options framework
@
text
@d14 1
a14 1
COMMENT=	An efficient XML centric functionnal programming language
@


1.15
log
@Update cduce to 0.5.5
@
text
@d25 5
a29 3
OPTIONS=	OCURL		"Enable url support via ftp/ocaml-ocurl" Off \
		OCAML_EXPAT	"Enable support for the Expat XML parser" Off \
		MLIFACE		"Enable building OCaml/CDuce interface" On
d42 1
a42 1
.include <bsd.port.pre.mk>
d45 1
a45 1
.if defined(WITH_OCURL)
d47 2
d52 1
a52 1
.if defined(WITH_OCAML_EXPAT)
a59 6
# Be sure to not build ocurl support if WITH_OCURL is not defined,
# even if ocurl is present.
.if !defined(WITH_OCURL)
CONFIGURE_ARGS+=	--without-curl
.endif

d61 1
a61 1
.if !defined(WITHOUT_MLIFACE)
d67 1
a67 1
.if !defined(NOPORTDOCS)
d78 1
a78 1
.if defined(WITH_OCAML_EXPAT)
d84 1
a84 1
.if defined(NOPORTDOCS)
d90 1
a90 1
.include <bsd.port.post.mk>
@


1.14
log
@Update cduce to 0.5.4
@
text
@d8 1
a8 1
PORTVERSION=	0.5.4
@


1.13
log
@- Fix cduce to work with new ocaml-net version
- Don't build CGI, as netcgi1 is no longer supported
  and cduce doesn't work with netcgi2
- Bump PORTREVISION

Reported by:	pointyhat via pav
@
text
@d8 1
a8 2
PORTVERSION=	0.5.3
PORTREVISION=	1
@


1.12
log
@Update my mail address to @@FreeBSD.org

Feature safe:   yes
@
text
@d9 1
a9 1
PORTREVISION=	0
d34 1
a34 1
CONFIGURE_ARGS=	--prefix=${PREFIX} --with-ocamlopt --with-cgi --without-netclient --without-pxp_wlex --docdir=${DOCSDIR}
d39 1
a39 1
PLIST_FILES=	bin/cduce bin/dtd2cduce
d76 4
@


1.11
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
@d14 1
a14 1
MAINTAINER=	johans@@stack.nl
@


1.10
log
@- Fix NOPORTDOCS logic

Reported by:	itetcu
@
text
@d8 2
a9 2
PORTVERSION=	0.5.2.1
PORTREVISION=	1
a35 1
WRKSRC=		${WRKDIR}/${DISTNAME:R}
@


1.9
log
@- Update to 0.5.2.1; fixes build with new ocaml libraries
- Use bsd.ocaml.mk features
- Use OPTIONS
- Grab maintainership
@
text
@d9 1
d32 1
a32 1
INSTALL_TARGET=	install
d34 1
a34 1
CONFIGURE_ARGS=	--prefix=${PREFIX} --with-ocamlopt --with-cgi --without-netclient --without-pxp_wlex
a71 1
CONFIGURE_ARGS+=	--docdir=${PREFIX}/share/doc/${PORTNAME}
d84 5
@


1.8
log
@- Welcome X.org 7.2 \o/.
- Set X11BASE to ${LOCALBASE} for recent ${OSVERSION}.
- Bump PORTREVISION for ports intalling files in ${X11BASE}.
@
text
@d8 1
a8 2
PORTVERSION=	0.4.1
PORTREVISION=	2
d10 2
a11 1
MASTER_SITES=	http://www.cduce.org/download/
d13 1
a13 1
MAINTAINER=	ports@@FreeBSD.org
d17 25
a41 6
BUILD_DEPENDS=	ocamlc:${PORTSDIR}/lang/ocaml \
		ocamlfind:${PORTSDIR}/devel/ocaml-findlib \
		${LOCALBASE}/lib/ocaml/site-lib/ulex/ulexing.a:${PORTSDIR}/devel/ocaml-ulex \
		${LOCALBASE}/lib/ocaml/site-lib/pcre/pcre.a:${PORTSDIR}/devel/ocaml-pcre \
		${LOCALBASE}/lib/ocaml/site-lib/netstring/netstring.a:${PORTSDIR}/www/ocaml-net
RUN_DEPENDS=	ocamlfind:${PORTSDIR}/devel/ocaml-findlib
d45 1
a45 2
BROKEN=		error while linking curl.cma - please do not enable Curl support until fixed.
BUILD_DEPENDS+=	${LOCALBASE}/lib/ocaml/site-lib/curl/curl.cmi:${PORTSDIR}/ftp/ocaml-ocurl
d50 2
a51 1
BUILD_DEPENDS+=	${LOCALBASE}/lib/ocaml/site-lib/expat/expat.cmi:${PORTSDIR}/textproc/ocaml-expat
d53 2
a54 1
BUILD_DEPENDS+=	${LOCALBASE}/lib/ocaml/site-lib/pxp-engine/pxp_engine.cma:${PORTSDIR}/textproc/ocaml-pxp
a56 4
# Configure : use ocamlopt and don't look for netclient or pxp_wlex
HAS_CONFIGURE=	yes
CONFIGURE_ARGS=	--prefix=${PREFIX} --with-ocamlopt --without-netclient --without-pxp_wlex

a62 7
# Be sure to build with PXP or expat but not both.
.if defined(WITH_OCAML_EXPAT)
CONFIGURE_ARGS+=	--with-expat --without-pxp
.else
CONFIGURE_ARGS+=	--without-expat --with-pxp
.endif

d65 1
a69 8
USE_GMAKE=	yes

ALL_TARGET=	all

INSTALL_TARGET=	install

MAKE_ENV=	OCAMLFIND_DESTDIR="${PREFIX}/lib/ocaml/site-lib"

a76 11
MAN1=		cduce.1 cduce_mktop.1 dtd2cduce.1

PKGDEINSTALL=	${PKGINSTALL}
FINDLIB_PKGNAME=${PORTNAME}

PLIST_FILES=	bin/cduce bin/dtd2cduce

.if !defined(WITHOUT_MLIFACE)
PLIST_FILES+=	bin/cduce_mktop
.endif

a77 5
	@@${FIND} ${PREFIX}/lib/ocaml/site-lib/${FINDLIB_PKGNAME} -type f | \
		${SED} "s,^${PREFIX}/,," >> ${TMPPLIST}
	@@${ECHO_CMD} "@@dirrm lib/ocaml/site-lib/${FINDLIB_PKGNAME}" >> ${TMPPLIST}
	@@${ECHO_CMD} "@@unexec ocamlfind remove ${FINDLIB_PKGNAME} 2>/dev/null || true" >> ${TMPPLIST}
	@@${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
d85 1
a85 10
pre-everything::
	@@${ECHO} ""
	@@${ECHO} "You may define the following build options:"
	@@${ECHO} ""
	@@${ECHO} "	WITH_CURL		Enable url support via ftp/ocaml-ocurl (=> no url support by default)"
	@@${ECHO} "	WITH_OCAML_EXPAT	Enable support for the Expat XML parser."
	@@${ECHO} "	WITHOUT_MLIFACE		Disable building OCaml/CDuce interface."
	@@${ECHO} ""

.include <bsd.port.mk>
@


1.7
log
@Remove devel/pcre-utf8 and enable UTF8 support in devel/pcre by
default.

Bump PORTREVISION on all dependent ports.
@
text
@d9 1
a9 1
PORTREVISION=	1
@


1.6
log
@- Update to 0.4.1

PR:             109317
Submitted by:   Marcelo Araujo <araujo@@bsdmail.org>
@
text
@d9 1
d16 1
a16 1
LIB_DEPENDS=	pcre:${PORTSDIR}/devel/pcre-utf8
@


1.5
log
@Add a missing run dependence on ocamlfind.
@
text
@d8 1
a8 1
PORTVERSION=	0.4.0
@


1.4
log
@- Chase ocaml upgrade by upgrading to 0.4.0 and unbreak;

- Disable ocurl by default and since I don't know how to fix it mark
  broken if enabled.

Changelog at <http://www.cduce.org/CHANGES>.
@
text
@d21 1
@


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

Hat:		portmgr
@
text
@d8 1
a8 1
PORTVERSION=	0.3.2
a21 2
BROKEN=		Does not compile

d23 2
a24 1
.if !defined(WITHOUT_OCURL)
d30 1
a30 1
BUILD_DEPENDS+=${LOCALBASE}/lib/ocaml/site-lib/expat/expat.cmi:${PORTSDIR}/textproc/ocaml-expat
d32 1
a32 1
BUILD_DEPENDS+=${LOCALBASE}/lib/ocaml/site-lib/pxp-engine/pxp_engine.cma:${PORTSDIR}/textproc/ocaml-pxp
d39 1
a39 1
# Be sure to not build ocurl support if WITHOUT_OCURL is defined,
d41 1
a41 1
.if defined(WITHOUT_OCURL)
d54 2
a55 1
CONFIGURE_ARGS+=	--mliface=${LOCALBASE}/lib/ocaml/compiler-lib
d73 1
a73 1
MAN1=		cduce.1 cdo2ml.1 cduce_mktop.1
d78 1
a78 1
PLIST_FILES=	bin/cduce
d81 1
a81 1
PLIST_FILES+=	bin/cdo2ml bin/mlcduce_wrapper bin/cduce_mktop
d101 1
a101 1
	@@${ECHO} "	WITHOUT_CURL		Disable url support via ftp/ocaml-ocurl (=> no url support)"
@


1.2
log
@BROKEN: Does not compile
@
text
@d12 1
a12 1
MAINTAINER=	marwan.burelle@@lri.fr
@


1.1
log
@Add cduce 0.3.2.

CDuce is an XML centric programming language result of a joint research
project on XML, semantic subtyping, databases and efficient tree automata.

Despite its XML orientation, it is also generalist.

PR:		82117
Submitted by:	Marwan Burelle <marwan.burelle (at) lri.fr>
@
text
@d22 2
@

