Changeset View
Changeset View
Standalone View
Standalone View
Mk/bsd.ocaml.mk
| Show First 20 Lines • Show All 76 Lines • ▼ Show 20 Lines | |||||
| # Location of OCaml ld.conf file | # Location of OCaml ld.conf file | ||||
| # | # | ||||
| OCAML_LDCONF?= ${OCAML_LIBDIR}/ld.conf | OCAML_LDCONF?= ${OCAML_LIBDIR}/ld.conf | ||||
| # ocaml-findlib-1.4.1_1 wants to edit our ld.conf file, which does not | # ocaml-findlib-1.4.1_1 wants to edit our ld.conf file, which does not | ||||
| # work well with staging. | # work well with staging. | ||||
| .if defined(USE_OCAML_LDCONFIG) | .if defined(USE_OCAML_LDCONFIG) | ||||
| . if !target(ocaml-ldconfig) | . if !target(ocaml-ldconfig) | ||||
| . if !defined(NO_STAGE) | |||||
| OCAMLFIND_LDCONF?= /dev/null | OCAMLFIND_LDCONF?= /dev/null | ||||
| . endif | . endif | ||||
| . endif | .endif | ||||
| .endif | |||||
| OCAMLFIND_DESTDIR?= ${PREFIX}/${OCAML_SITELIBDIR} | OCAMLFIND_DESTDIR?= ${PREFIX}/${OCAML_SITELIBDIR} | ||||
| OCAMLFIND_LDCONF?= ${PREFIX}/${OCAML_LDCONF} | OCAMLFIND_LDCONF?= ${PREFIX}/${OCAML_LDCONF} | ||||
| .if defined(USE_OCAML) | .if defined(USE_OCAML) | ||||
| . if !defined(NO_OCAML_BUILDDEPENDS) | . if !defined(NO_OCAML_BUILDDEPENDS) | ||||
| EXTRACT_DEPENDS+= ${OCAMLC_DEPEND} | EXTRACT_DEPENDS+= ${OCAMLC_DEPEND} | ||||
| PATCH_DEPENDS+= ${OCAMLC_DEPEND} | PATCH_DEPENDS+= ${OCAMLC_DEPEND} | ||||
| ▲ Show 20 Lines • Show All 44 Lines • ▼ Show 20 Lines | |||||
| .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 | ||||
| # | # | ||||
| OCAML_LDLIBS?= ${OCAML_SITELIBDIR}/${PORTNAME} | OCAML_LDLIBS?= ${OCAML_SITELIBDIR}/${PORTNAME} | ||||
| . if !target(ocaml-ldconfig) | . if !target(ocaml-ldconfig) | ||||
| ocaml-ldconfig: | ocaml-ldconfig: | ||||
| . for LIB in ${OCAML_LDLIBS} | . for LIB in ${OCAML_LDLIBS} | ||||
| . if defined(NO_STAGE) | |||||
| @${ECHO_CMD} "${PREFIX}/${LIB}" >> "${PREFIX}/${OCAML_LDCONF}" | |||||
| . endif | |||||
| @${ECHO_CMD} "@exec ${ECHO_CMD} "%D/${LIB}" >> %D/${OCAML_LDCONF}" \ | @${ECHO_CMD} "@exec ${ECHO_CMD} "%D/${LIB}" >> %D/${OCAML_LDCONF}" \ | ||||
| >> ${TMPPLIST} | >> ${TMPPLIST} | ||||
| @${ECHO_CMD} "@unexec ${SED} -i \"\" -e '/${LIB:S#/#\/#g}/d' %D/${OCAML_LDCONF}" >> ${TMPPLIST} | @${ECHO_CMD} "@unexec ${SED} -i \"\" -e '/${LIB:S#/#\/#g}/d' %D/${OCAML_LDCONF}" >> ${TMPPLIST} | ||||
| . endfor | . endfor | ||||
| . endif | . endif | ||||
| .endif | .endif | ||||
| .if defined(USE_OCAML_WASH) | .if defined(USE_OCAML_WASH) | ||||
| ▲ Show 20 Lines • Show All 59 Lines • Show Last 20 Lines | |||||