aboutsummaryrefslogtreecommitdiff
path: root/Mk/bsd.ocaml.mk
diff options
context:
space:
mode:
authorGuido Falsi <madpilot@FreeBSD.org>2015-05-04 15:46:51 +0000
committerGuido Falsi <madpilot@FreeBSD.org>2015-05-04 15:46:51 +0000
commit2c44e6acd06e2874b82746cb9dcdc785097b4203 (patch)
treeaa391452ea6a289ee70b33bcbec2503509a494d2 /Mk/bsd.ocaml.mk
parentcb214a8a7bdc497f794275b729a70ec66437e2a7 (diff)
downloadports-2c44e6acd06e2874b82746cb9dcdc785097b4203.tar.gz
ports-2c44e6acd06e2874b82746cb9dcdc785097b4203.zip
- Add USE_OCAML_CAMLP4 and USE_OCAML_TK to bsd.ocaml.mk which add
depends on the camlp4 language and labltk ocaml modules, which are now in separate ports. - Update x11-toolkits/ocaml-lablgtk2 to 2.18.3 - Update graphics/ocaml-lablgl to 1.05 - Make unison ports use USE_OCAML - Convert ports to the new flags where needed - Bump PORTREVISION on ports depending on ocaml-lablgtk2, those need to be rebuilt PR: 199845 Submitted by: jbeich@ Differential Revision: https://reviews.freebsd.org/D2434 Approved by: portmgr (mat)
Notes
Notes: svn path=/head/; revision=385413
Diffstat (limited to 'Mk/bsd.ocaml.mk')
-rw-r--r--Mk/bsd.ocaml.mk33
1 files changed, 33 insertions, 0 deletions
diff --git a/Mk/bsd.ocaml.mk b/Mk/bsd.ocaml.mk
index 2a5fdbe7dc03..59ec309b915c 100644
--- a/Mk/bsd.ocaml.mk
+++ b/Mk/bsd.ocaml.mk
@@ -17,6 +17,10 @@
# USE_OCAML_FINDLIB - Set if your port uses ocamlfind to install
# packages. Package direcories will be
# automatically deleted.
+# USE_OCAML_CAMLP4 - Set if your port uses camlp4 to build.
+# USE_OCAML_TK - Set if you port needs ocaml-labltk.
+# NO_OCAMLTK_BUILDDEPENDS - Don't add labltk to BUILD|EXTRACT|PATCH_DEPENDS.
+# NO_OCAMLTK_RUNDEPENDS - Don't add labltk to RUN_DEPENDS.
# USE_OCAML_LDCONFIG - Set if your port installs shared libraries
# into ocaml site-lib dir. OCaml ld.conf file
# will be automatically processed.
@@ -44,6 +48,8 @@ OCAMLC?= ${LOCALBASE}/bin/ocamlc
OCAMLC_OPT?= ${LOCALBASE}/bin/ocamlc.opt
OCAMLCP?= ${LOCALBASE}/bin/ocamlcp
OCAMLFIND?= ${LOCALBASE}/bin/ocamlfind
+CAMLP4?= ${LOCALBASE}/bin/camlp4
+OCAMLTK?= ${LOCALBASE}/bin/labltk
#
# OCaml library directory
@@ -68,6 +74,18 @@ OCAMLFIND_PORT?= ${PORTSDIR}/devel/ocaml-findlib
OCAMLFIND_DEPEND?= ${OCAMLFIND}:${OCAMLFIND_PORT}
#
+# OCaml camlp4 port dependency
+#
+CAMLP4_PORT?= ${PORTSDIR}/devel/ocaml-camlp4
+CAMLP4_DEPEND?= ${CAMLP4}:${CAMLP4_PORT}
+
+#
+# OCaml TK bindings dependency
+#
+OCAMLTK_PORT?= ${PORTSDIR}/x11-toolkits/ocaml-labltk
+OCAMLTK_DEPENDS?= ${OCAMLTK}:${OCAMLTK_PORT}
+
+#
# Common OCaml examples and documents location
#
OCAML_DOCSDIR= ${PREFIX}/share/doc/ocaml
@@ -136,6 +154,21 @@ ocaml-findlib:
. endif
.endif
+.if defined(USE_OCAML_CAMLP4)
+BUILD_DEPENDS+= ${CAMLP4_DEPEND}
+.endif
+
+.if defined(USE_OCAML_TK)
+. if !defined(NO_OCAMLTK_BUILDDEPENDS)
+EXTRACT_DEPENDS+= ${OCAMLTK_DEPENDS}
+PATCH_DEPENDS+= ${OCAMLTK_DEPENDS}
+BUILD_DEPENDS+= ${OCAMLTK_DEPENDS}
+. endif
+. if !defined(NO_OCAMLTK_RUNDEPENDS)
+RUN_DEPENDS+= ${OCAMLTK_DEPENDS}
+. endif
+.endif
+
.if defined(USE_OCAML_LDCONFIG)
#
# Directories under PREFIX for appending to ld.conf