[BACK]Return to buildlink3.mk CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / devel / ocaml-findlib

File: [cvs.NetBSD.org] / pkgsrc / devel / ocaml-findlib / buildlink3.mk (download)

Revision 1.17, Thu Mar 18 08:30:43 2021 UTC (7 months ago) by jaapb
Branch: MAIN
CVS Tags: pkgsrc-2021Q3-base, pkgsrc-2021Q3, pkgsrc-2021Q2-base, pkgsrc-2021Q2, pkgsrc-2021Q1-base, pkgsrc-2021Q1, HEAD
Changes since 1.16: +2 -2 lines

Updated devel/ocaml-findlib to version 1.9.1.

Changes are mostly incremental (compatibility issues, bugfixes).

# $NetBSD: buildlink3.mk,v 1.17 2021/03/18 08:30:43 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.9.1
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