diff options
author | miwi <miwi@FreeBSD.org> | 2007-04-23 18:06:57 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2007-04-23 18:06:57 +0800 |
commit | 4f67ad6d2547f500598a4588d6c422be40bc96c3 (patch) | |
tree | 86bbaedf180da265c2553f3cbd6463ba00fcacd7 /www/ocsigen/Makefile | |
parent | aec3e6e1c66da110fbc5cfc00832594d94411197 (diff) | |
download | freebsd-ports-gnome-4f67ad6d2547f500598a4588d6c422be40bc96c3.tar.gz freebsd-ports-gnome-4f67ad6d2547f500598a4588d6c422be40bc96c3.tar.zst freebsd-ports-gnome-4f67ad6d2547f500598a4588d6c422be40bc96c3.zip |
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>
Diffstat (limited to 'www/ocsigen/Makefile')
-rw-r--r-- | www/ocsigen/Makefile | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/www/ocsigen/Makefile b/www/ocsigen/Makefile new file mode 100644 index 000000000000..5dd2625387a1 --- /dev/null +++ b/www/ocsigen/Makefile @@ -0,0 +1,65 @@ +# New ports collection makefile for: ocsigen +# Date created: March 14, 2007 +# Whom: Jaap Boender <jaapb@kerguelen.org> +# +# $FreeBSD$ + +PORTNAME= ocsigen +PORTVERSION= 0.6.0 +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 +RUN_DEPENDS= ocaml-net<2:${PORTSDIR}/www/ocaml-net \ + ${SA_DIR}/ssl/ssl.a:${PORTSDIR}/security/ocaml-ssl + +USE_OCAML= yes +USE_OCAML_FINDLIB= yes +USE_OCAML_LDCONFIG= yes + +SA_DIR= ${LOCALBASE}/${OCAML_SITELIBDIR} + +OPTIONS= OCAMLDUCE "Use OCamlDuce support" ON + +USE_GMAKE= yes +HAS_CONFIGURE= yes +CONFIGURE_ARGS= --name ${PORTNAME} \ + --disable-newocamlnet \ + --disable-nativecode \ + --disable-debug \ + --ocsigen-user ${WWWOWN} \ + --ocsigen-group ${WWWGRP} \ + --bindir ${PREFIX}/bin \ + --mandir ${PREFIX}/man/man1 \ + --libdir ${PREFIX}/share/examples \ + --docdir ${PREFIX}/share/doc \ + --sysconfdir ${PREFIX}/etc \ + --staticpagesdir ${PREFIX}/share/ocsigen/www \ + --uploaddir /tmp + +INSTALL_TARGET= fullinstall +.if !defined(NOPORTDOCS) +INSTALL_TARGET+= docinstall +.endif + +MAN1= ocsigen.1 + +.include <bsd.port.pre.mk> +.include "${PORTSDIR}/lang/ocaml/bsd.ocaml.mk" + +.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+= ${OCAML_SITELIBDIR}/ocsigen/ocsigenduce.cma \ + ${OCAML_SITELIBDIR}/ocsigen/ocsigenduce.cmi \ + share/examples/ocsigen/exampleduce.cmo +.endif + +.include <bsd.port.post.mk> |