ports/devel/ocaml-lacaml/Makefile
Piotr Kubaj 8b99d6dd08 devel/ocaml-lacaml: unbreak build on powerpc* by removing -march=native
(cd _build/default/src/config && /usr/bin/cc -O2 -fno-strict-aliasing -fwrapv -pthread -fPIC -O2 -pipe -fno-strict-aliasing -D_FILE_OFFSET_BITS=64 -O2 -fno-strict-aliasing -fwrapv -pthread -fPIC -O2 -pipe -fno-strict-aliasing -DEXTERNAL_EXP10 -std=c99 -march=native -O3 -ffast-math -fPIC -DPIC -g -I /usr/local/lib/ocaml -o zdot_is_function_stubs.o -c zdot_is_function_stubs.c)
cc: error: unsupported option '-march=' for target 'powerpc64-unknown-freebsd14.2'
File "src/config/dune", line 24, characters 11-34:
24 |     (names zdot_is_procedure_stubs zdot_is_function_stubs)
                ^^^^^^^^^^^^^^^^^^^^^^^
          cc src/config/zdot_is_procedure_stubs.o (exit 1)
2024-12-31 14:59:45 +01:00

36 lines
880 B
Makefile

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 <bsd.port.mk>