math/m4ri: Improve port

* Don't detect CPU features from build host, rely on CPUTYPE provided by
  framework
* Adjust Makefile to closer follow Porters Handbook

PR:		284367
Approved by:	portmgr (maintainer timeout, 2 weeks)
This commit is contained in:
Daniel Engberg 2025-02-08 12:34:30 +01:00
parent 8b6c49f551
commit f11a2a6eb6
3 changed files with 17 additions and 5 deletions

View File

@ -1,6 +1,6 @@
PORTNAME= M4RI
PORTVERSION= 20240729
DISTVERSIONPREFIX= release-
DISTVERSION= 20240729
CATEGORIES= math
MAINTAINER= thierry@FreeBSD.org
@ -15,10 +15,11 @@ USE_GITHUB= yes
GH_ACCOUNT= malb
GH_PROJECT= ${PORTNAME:tl}
USES= autoreconf libtool localbase pkgconfig
USES= autoreconf libtool:ldflags localbase pathfix pkgconfig
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
INSTALL_TARGET= install-strip
.if defined(MAINTAINER_MODE)

View File

@ -0,0 +1,11 @@
--- configure.ac.orig 2025-01-26 11:45:07 UTC
+++ configure.ac
@@ -39,7 +39,7 @@ AS_IF([test "x$enable_sse2" != "xno"], [
if test "$m4ri_wrapword" = "yes"; then
AC_MSG_ERROR([SSE2 cannot be supported when wrapping word in a C++ class.])
fi
- AX_EXT()
+# AX_EXT()
])
if test x"$ax_cv_have_sse2_ext" = x"yes"; then
M4RI_HAVE_SSE2=1

View File

@ -1,8 +1,8 @@
--- m4ri.pc.in.orig 2024-07-29 12:30:45 UTC
--- m4ri.pc.in.orig 2025-01-26 11:44:34 UTC
+++ m4ri.pc.in
@@ -8,4 +8,4 @@ Libs: -L${libdir} -lm4ri @RAW_LIBPNG@ @LIBM@ @LIBPNG_L
Version: @PACKAGE_VERSION@
Requires: @M4RI_USE_PNG_PC@
Libs: -L${libdir} -lm4ri @RAW_LIBPNG@ @LIBM@ @LIBPNG_LIBADD@
-Cflags: -I${includedir} @SIMD_CFLAGS@ @OPENMP_CFLAGS@ @LIBPNG_CFLAGS@
+Cflags: -I${includedir} @SIMD_FLAGS@ @OPENMP_CFLAGS@ @LIBPNG_CFLAGS@
+Cflags: -I${includedir} @OPENMP_CFLAGS@ @LIBPNG_CFLAGS@