pkgsrc/devel/ocaml-findlib/buildlink3.mk
jaapb 0c40f15117 Updated package to latest version, 1.6.1. Changes include:
- 1.6.1: Just an important doc fix.
- 1.6.0: Adding support for dynamically loading packages (François Bobot):
  new "plugin" variable, new Fl_dynload module.
  New command "ocamlfind lint" for checking META files (François Bobot).
  Also support MSYS_NT on Windows. Permit spaces in install paths
  (Christophe Troestler).
  Allow to query the location of the META file of a package:
  "ocamlfind query -format '%m'" (Gerd Stolpmann).
  Get the install path for the META file of packages:
  "ocamlfind printconf metapath" (Gerd Stolpmann).
- 1.5.6: for MSVC build fixing bad filename suffix (Dmitry Bely).
  The switch -only-show did not work as described.
  (Error report from Bob Atkey.)</p>
  Also support mingw64 as system type (Matthieu Dubuget).

Also some changes to wrapper scripts, needed for lang/coq.
2016-02-02 11:41:45 +00:00

34 lines
1.1 KiB
Makefile

# $NetBSD: buildlink3.mk,v 1.6 2016/02/02 11:41:45 jaapb Exp $
BUILDLINK_TREE+= ocaml-findlib
.if !defined(OCAML_FINDLIB_BUILDLINK3_MK)
OCAML_FINDLIB_BUILDLINK3_MK:=
BUILDLINK_API_DEPENDS.ocaml-findlib+=ocaml-findlib>=1.2
BUILDLINK_ABI_DEPENDS.ocaml-findlib+=ocaml-findlib>=1.6
BUILDLINK_PKGSRCDIR.ocaml-findlib?= ../../devel/ocaml-findlib
BUILDLINK_TARGETS+= ocaml-findlib-wrappers ocaml-findlib-ldconf
.PHONY: ocaml-findlib-wrappers
ocaml-findlib-wrappers:
${RUN} \
${SED} -e 's|@SH@|'${SH:Q}'|g' \
-e 's|@DESTDIR@|${DESTDIR}|g' \
-e 's|@OCAML_FINDLIB_PREFIX@|${BUILDLINK_PREFIX.ocaml-findlib}|g' \
-e 's|@BUILDLINK_DIR@|${BUILDLINK_DIR}|g' \
< ${.CURDIR}/../../devel/ocaml-findlib/files/ocamlfind.sh \
> ${BUILDLINK_DIR}/bin/ocamlfind; \
${CHMOD} +x ${BUILDLINK_DIR}/bin/ocamlfind
.PHONY: ocaml-findlib-ldconf
ocaml-findlib-ldconf:
${RUN} \
${CP} ${BUILDLINK_PREFIX.ocaml}/lib/ocaml/ld.conf \
${BUILDLINK_DIR}/lib/ocaml
INSTALLATION_DIRS+= lib/ocaml/site-lib
.endif # OCAML_FINDLIB_BUILDLINK3_MK
BUILDLINK_TREE+= -ocaml-findlib