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


1.8
date	2012.11.17.06.02.43;	author svnexp;	state Exp;
branches;
next	1.7;

1.7
date	2011.08.14.23.11.06;	author bapt;	state Exp;
branches;
next	1.6;

1.6
date	2009.01.30.04.56.00;	author beech;	state Exp;
branches;
next	1.5;

1.5
date	2008.12.19.22.00.32;	author pav;	state Exp;
branches;
next	1.4;

1.4
date	2008.04.30.06.31.46;	author pav;	state Exp;
branches;
next	1.3;

1.3
date	2008.04.06.22.51.21;	author pav;	state Exp;
branches;
next	1.2;

1.2
date	2007.05.19.20.25.18;	author flz;	state Exp;
branches;
next	1.1;

1.1
date	2007.04.23.10.06.57;	author miwi;	state Exp;
branches;
next	;


desc
@@


1.8
log
@Switch exporter over
@
text
@# New ports collection makefile for: ocsigen
# Date created: March 14, 2007
# Whom: Jaap Boender <jaapb@@kerguelen.org>
#
# $FreeBSD: head/www/ocsigen/Makefile 300897 2012-07-14 14:29:18Z beat $

PORTNAME=	ocsigen
PORTVERSION=	1.1.0
PORTREVISION=	1
CATEGORIES=	www
MASTER_SITES=	http://www.ocsigen.org/download/

MAINTAINER=	jaapb@@kerguelen.org
COMMENT=	Web programming framework for OCaml

BUILD_DEPENDS=	ocaml-net>=2:${PORTSDIR}/www/ocaml-net \
		${SA_DIR}/ssl/ssl.a:${PORTSDIR}/security/ocaml-ssl \
		${SA_DIR}/lwt/lwt.a:${PORTSDIR}/devel/ocaml-lwt \
		${SA_DIR}/cryptokit/cryptokit.a:${PORTSDIR}/security/ocaml-cryptokit
RUN_DEPENDS=	ocaml-net>=2:${PORTSDIR}/www/ocaml-net \
		${SA_DIR}/ssl/ssl.a:${PORTSDIR}/security/ocaml-ssl \
		${SA_DIR}/lwt/lwt.a:${PORTSDIR}/devel/ocaml-lwt \
		${SA_DIR}/cryptokit/cryptokit.a:${PORTSDIR}/security/ocaml-cryptokit

USE_OCAML=		yes
USE_OCAML_FINDLIB=	yes
USE_OCAMLFIND_PLIST=	yes
USE_OCAML_LDCONFIG=	yes

SA_DIR=		${PREFIX}/${OCAML_SITELIBDIR}

OPTIONS=	SQLITE "Use sqlite as a database backend" OFF \
		CAMLZIP "Use camlzip for compression" ON

USE_GMAKE=	yes
HAS_CONFIGURE=	yes
CONFIGURE_ARGS=	--name ${PORTNAME} \
		--disable-nativecode \
		--disable-debug \
		--ocsigen-user ${WWWOWN} \
		--ocsigen-group ${WWWGRP} \
		--bindir ${PREFIX}/bin \
		--mandir ${PREFIX}/man/man1 \
		--libdir ${SA_DIR} \
		--docdir ${DOCSDIR} \
		--sysconfdir ${PREFIX}/etc \
		--staticpagesdir ${PREFIX}/share/ocsigen/www \
		--uploaddir /tmp \
		--disable-ocamlduce

ALL_TARGET=	depend all
INSTALL_TARGET=	installnodoc
.if !defined(NOPORTDOCS)
INSTALL_TARGET+=	docinstall
PORTDOCS=		*
.endif

MAN1=		ocsigen.1

.include <bsd.port.pre.mk>

.if defined(WITH_SQLITE)
BUILD_DEPENDS+=	${SA_DIR}/sqlite3/sqlite3.a:${PORTSDIR}/databases/ocaml-sqlite3
RUN_DEPENDS+=	${SA_DIR}/sqlite3/sqlite3.a:${PORTSDIR}/databases/ocaml-sqlite3
CONFIGURE_ARGS+=	--enable-sqlite
PLIST_FILES+=	lib/ocsigen/extensions/ocsipersist-sqlite.cma
.else
CONFIGURE_ARGS+=	--disable-sqlite
.endif

.if defined(WITHOUT_CAMLZIP)
CONFIGURE_ARGS+=	--disable-camlzip
.else
CONFIGURE_ARGS+=	--enable-camlzip
BUILD_DEPENDS+=	ocaml-zip>=1.03_2:${PORTSDIR}/archivers/ocaml-zip
RUN_DEPENDS+=	ocaml-zip>=1.03_2:${PORTSDIR}/archivers/ocaml-zip
PLIST_FILES+=	lib/ocsigen/extensions/deflatemod.cmo
.endif

post-install:
	@@if [ ! -f ${PREFIX}/etc/${PORTNAME}/ocsigen.conf ]; then \
	  ${CP} -p ${PREFIX}/etc/${PORTNAME}/ocsigen.conf.sample \
	    ${PREFIX}/etc/${PORTNAME}/ocsigen.conf; \
	fi

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


1.7
log
@Remove the optionnal ocamlduce dependency
Bump portrevision as it was on by default
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.6
log
@- Update to 1.1.0

- Changelog at http://www.ocsigen.org/install/ocsigen

PR:		ports/130508
Submitted by:	Jaap Boender <jaapb@@kerguelen.org> (maintainer)
@
text
@d9 1
d32 1
a32 2
OPTIONS=	OCAMLDUCE "Use OCamlDuce support" ON \
		SQLITE "Use sqlite as a database backend" OFF \
d48 2
a49 1
		--uploaddir /tmp
a61 10
.if defined(WITHOUT_OCAMLDUCE)
CONFIGURE_ARGS+=	--disable-ocamlduce
.else
BUILD_DEPENDS+=	${SA_DIR}/ocamlduce/ocamlduce.a:${PORTSDIR}/lang/ocamlduce
RUN_DEPENDS+=	${SA_DIR}/ocamlduce/ocamlduce.a:${PORTSDIR}/lang/ocamlduce
CONFIGURE_ARGS+=	--enable-ocamlduce
PLIST_FILES+=	lib/ocsigen/examples/exampleduce.cmo \
		lib/ocsigen/extensions/eliom_duce.cma
.endif

@


1.5
log
@- Set for expiration in one month: has been broken for more than 6 months
@
text
@d8 1
a8 2
PORTVERSION=	0.6.0
PORTREVISION=	1
d15 8
a22 8
BUILD_DEPENDS=	ocaml-net<2:${PORTSDIR}/www/ocaml-net \
		${SA_DIR}/ssl/ssl.a:${PORTSDIR}/security/ocaml-ssl
RUN_DEPENDS=	ocaml-net<2:${PORTSDIR}/www/ocaml-net \
		${SA_DIR}/ssl/ssl.a:${PORTSDIR}/security/ocaml-ssl

BROKEN=		unsatisfiable dependency line
DEPRECATED=	has been broken for more than 6 months
EXPIRATION_DATE=2009-01-19
d24 1
a24 1
USE_OCAML=	yes
d26 1
d29 1
a29 1
SA_DIR=		${LOCALBASE}/${OCAML_SITELIBDIR}
d31 3
a33 1
OPTIONS=	OCAMLDUCE "Use OCamlDuce support" ON
a37 1
		--disable-newocamlnet \
d44 2
a45 2
		--libdir ${PREFIX}/share/examples \
		--docdir ${PREFIX}/share/doc \
d50 2
a51 1
INSTALL_TARGET=	fullinstall
d54 1
d67 2
a68 3
PLIST_FILES+=	${OCAML_SITELIBDIR}/ocsigen/ocsigenduce.cma \
		${OCAML_SITELIBDIR}/ocsigen/ocsigenduce.cmi \
		share/examples/ocsigen/exampleduce.cmo
d71 24
@


1.4
log
@- Mark BROKEN

Reported by:	pointyhat
@
text
@d22 2
@


1.3
log
@- Attempt to unbreak INDEX, bsd.ocaml.mk moved to Mk/

Pointy hat to:	stas
@
text
@d21 2
@


1.2
log
@- Welcome X.org 7.2 \o/.
- Set X11BASE to ${LOCALBASE} for recent ${OSVERSION}.
- Bump PORTREVISION for ports intalling files in ${X11BASE}.
@
text
@a52 1
.include "${PORTSDIR}/lang/ocaml/bsd.ocaml.mk"
@


1.1
log
@Ocsigen is a web programming framework for OCaml. It can be used as a web
server, serving static pages, but it is also possible to implement entire
web sites as OCaml modules.

WWW: http://www.ocsigen.org

PR:		ports/111759
Submitted by:	Jaap Boender <jaapb at kerguelen.org>
@
text
@d9 1
@

