diff --git a/devel/ocaml-lacaml/Makefile b/devel/ocaml-lacaml/Makefile index 0d510ebf80af..4766d5191116 100644 --- a/devel/ocaml-lacaml/Makefile +++ b/devel/ocaml-lacaml/Makefile @@ -1,35 +1,36 @@ PORTNAME= lacaml DISTVERSION= 11.0.10 +PORTREVISION= 1 CATEGORIES= devel PKGNAMEPREFIX= ocaml- MAINTAINER= freebsd@dev.thsi.be COMMENT= OCaml interface to BLAS and LAPACK libraries WWW= https://mmottl.github.io/lacaml/ LICENSE= LGPL21 LICENSE_FILE= ${WRKSRC}/LICENSE.md USES= blaslapack fortran ocaml:dune,ldconfig USE_GITHUB= yes GH_ACCOUNT= mmottl MAKE_ENV+= LACAML_LIBS="-L${LOCALBASE}/lib ${BLASLIB} ${LAPACKLIB}" DOCSDIR= ${OCAML_DOCSDIR}/${PORTNAME} EXAMPLESDIR= ${OCAML_EXAMPLESDIR}/${PORTNAME} PORTDOCS= CHANGES.md LICENSE.md README.md PORTEXAMPLES= * OPTIONS_DEFINE= DOCS EXAMPLES post-install: @${STRIP_CMD} ${STAGEDIR}${PREFIX}/${OCAML_SITELIBDIR}/lacaml/*.cmxs @${STRIP_CMD} ${STAGEDIR}${PREFIX}/${OCAML_SITELIBDIR}/lacaml/*.so post-install-EXAMPLES-on: (cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . \ ${STAGEDIR}${EXAMPLESDIR}) .include diff --git a/devel/ocaml-lacaml/files/patch-src_config_discover.ml b/devel/ocaml-lacaml/files/patch-src_config_discover.ml new file mode 100644 index 000000000000..bbdbac121671 --- /dev/null +++ b/devel/ocaml-lacaml/files/patch-src_config_discover.ml @@ -0,0 +1,11 @@ +--- src/config/discover.ml.orig 2024-12-26 19:34:31 UTC ++++ src/config/discover.ml +@@ -46,7 +46,7 @@ let () = + (* -march=native is not supported on Apple ARM64 yet. + Its support was introduced in clang >= 15.0.0 *) + match maybe_system, maybe_arch with +- | Some "macosx", Some "arm64" ++ | Some "bsd_elf", _ + | _, (None | Some ("ppc64" | "ppc64le" | "unknown")) -> shared + | _ -> "-march=native" :: shared + in