pkgsrc/devel/ocaml-findlib/buildlink3.mk
jaapb 38cf60170e Updated package to latest version, 1.7.3. Apart from a pkgsrc patch that
allows for installation of .cmxs files, changes include:

1.7.3:
Fix regarding num-top: this library is now also optional, as num.

1.7.2:
Trying to protect against failures when several package installs are done in
parallel.

New subpackage "findlib.top" for the toploop (Jeremie Dimino).

The "num" library is now optional.

Shell scripts are started via "sh" command when there is no /bin/sh (ygrek)
2017-07-11 09:57:11 +00:00

34 lines
1.1 KiB
Makefile

# $NetBSD: buildlink3.mk,v 1.7 2017/07/11 09:57:11 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.7.3
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