Files
daniel c1dc5fd3b9 update findlib to 1.9.8 for ocaml 5 support
ok avsm@ (MAINTAINER)
2026-06-10 22:54:34 +00:00

43 lines
999 B
Makefile

COMMENT= OCaml package manager
CATEGORIES= sysutils
DISTNAME= findlib-1.9.8
SITES= http://download.camlcity.org/download/
MAINTAINER= Anil Madhavapeddy <avsm@openbsd.org>
HOMEPAGE= http://projects.camlcity.org/projects/findlib.html
# MIT/X11
PERMIT_PACKAGE= Yes
MODULES= lang/ocaml
WANTLIB = c m pthread
CONFIGURE_STYLE=simple
CONFIGURE_ARGS= -no-custom \
-sitelib "${PREFIX}/lib/ocaml" \
-config ${SYSCONFDIR}/findlib.conf
USE_GMAKE= Yes
NO_TEST= Yes
.include <bsd.port.arch.mk>
.if ${PROPERTIES:Mocaml_native}
ALL_TARGET = all opt
.endif
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/findlib
mv \
${WRKINST}${SYSCONFDIR}/findlib.conf \
${PREFIX}/share/examples/findlib/
# Since our OCaml is >=4.03, declare uchar availability according to
# D. Bünzli's compatibility package. https://github.com/ocaml/uchar.
${INSTALL_DATA_DIR} ${PREFIX}/lib/ocaml/uchar
${INSTALL_DATA} \
${FILESDIR}/META.uchar \
${PREFIX}/lib/ocaml/uchar/META
.include <bsd.port.mk>