Changeset View
Changeset View
Standalone View
Standalone View
Mk/bsd.ocaml.mk
Context not available. | |||||
# USE_OCAML_FINDLIB - Set if your port uses ocamlfind to install | # USE_OCAML_FINDLIB - Set if your port uses ocamlfind to install | ||||
# packages. Package direcories will be | # packages. Package direcories will be | ||||
# automatically deleted. | # 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 | # USE_OCAML_LDCONFIG - Set if your port installs shared libraries | ||||
# into ocaml site-lib dir. OCaml ld.conf file | # into ocaml site-lib dir. OCaml ld.conf file | ||||
# will be automatically processed. | # will be automatically processed. | ||||
Context not available. | |||||
OCAMLC_OPT?= ${LOCALBASE}/bin/ocamlc.opt | OCAMLC_OPT?= ${LOCALBASE}/bin/ocamlc.opt | ||||
OCAMLCP?= ${LOCALBASE}/bin/ocamlcp | OCAMLCP?= ${LOCALBASE}/bin/ocamlcp | ||||
OCAMLFIND?= ${LOCALBASE}/bin/ocamlfind | OCAMLFIND?= ${LOCALBASE}/bin/ocamlfind | ||||
CAMLP4?= ${LOCALBASE}/bin/camlp4 | |||||
OCAMLTK?= ${LOCALBASE}/bin/labltk | |||||
# | # | ||||
# OCaml library directory | # OCaml library directory | ||||
Context not available. | |||||
OCAMLFIND_DEPEND?= ${OCAMLFIND}:${OCAMLFIND_PORT} | 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 | # Common OCaml examples and documents location | ||||
# | # | ||||
OCAML_DOCSDIR= ${PREFIX}/share/doc/ocaml | OCAML_DOCSDIR= ${PREFIX}/share/doc/ocaml | ||||
Context not available. | |||||
. endif | . endif | ||||
.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) | .if defined(USE_OCAML_LDCONFIG) | ||||
# | # | ||||
# Directories under PREFIX for appending to ld.conf | # Directories under PREFIX for appending to ld.conf | ||||
Context not available. |