summaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--math/Makefile1
-rw-r--r--math/elan/Makefile2
-rw-r--r--math/fend/Makefile1
-rw-r--r--math/kalc/Makefile2
-rw-r--r--math/kalker/Makefile2
-rw-r--r--math/libmissing/Makefile85
-rw-r--r--math/libmissing/distinfo2
-rw-r--r--math/libmissing/pkg-descr7
-rw-r--r--math/nlopt/Makefile8
-rw-r--r--math/nlopt/files/patch-CMakeLists.txt11
-rw-r--r--math/nlopt/files/patch-CMakePresets.json11
-rw-r--r--math/nlopt/pkg-plist.full48
-rw-r--r--math/py-clarabel/Makefile2
-rw-r--r--math/py-narwhals/Makefile2
-rw-r--r--math/py-narwhals/distinfo6
-rw-r--r--math/py-pcodec/Makefile2
-rw-r--r--math/py-rustworkx/Makefile1
-rw-r--r--math/savage/Makefile2
18 files changed, 87 insertions, 108 deletions
diff --git a/math/Makefile b/math/Makefile
index 51402df09f03..838c2ecf9d6a 100644
--- a/math/Makefile
+++ b/math/Makefile
@@ -461,7 +461,6 @@
SUBDIR += libformfactor
SUBDIR += libhomfly
SUBDIR += libmesh
- SUBDIR += libmissing
SUBDIR += libnormaliz
SUBDIR += libocas
SUBDIR += liborigin
diff --git a/math/elan/Makefile b/math/elan/Makefile
index 16ecfff47107..fde287790f79 100644
--- a/math/elan/Makefile
+++ b/math/elan/Makefile
@@ -1,7 +1,7 @@
PORTNAME= elan
DISTVERSIONPREFIX= v
DISTVERSION= 4.0.1
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= math
MAINTAINER= yuri@FreeBSD.org
diff --git a/math/fend/Makefile b/math/fend/Makefile
index 27504d4954be..f381bc0a6dbd 100644
--- a/math/fend/Makefile
+++ b/math/fend/Makefile
@@ -1,6 +1,7 @@
PORTNAME= fend
DISTVERSIONPREFIX= v
DISTVERSION= 1.5.7
+PORTREVISION= 1
CATEGORIES= math
MAINTAINER= yuri@FreeBSD.org
diff --git a/math/kalc/Makefile b/math/kalc/Makefile
index aa559ab8f74e..283f792991c3 100644
--- a/math/kalc/Makefile
+++ b/math/kalc/Makefile
@@ -1,7 +1,7 @@
PORTNAME= kalc
DISTVERSIONPREFIX= v
DISTVERSION= 1.5.0
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= math
PKGNAMESUFFIX= -calculator
diff --git a/math/kalker/Makefile b/math/kalker/Makefile
index dadb36dd1168..46c3130be522 100644
--- a/math/kalker/Makefile
+++ b/math/kalker/Makefile
@@ -1,7 +1,7 @@
PORTNAME= kalker
DISTVERSIONPREFIX= v
DISTVERSION= 2.2.1
-PORTREVISION= 7
+PORTREVISION= 8
CATEGORIES= math
MAINTAINER= ashish@FreeBSD.org
diff --git a/math/libmissing/Makefile b/math/libmissing/Makefile
deleted file mode 100644
index cd0f0cc430f2..000000000000
--- a/math/libmissing/Makefile
+++ /dev/null
@@ -1,85 +0,0 @@
-PORTNAME= libmissing
-DISTVERSION= 20130815
-PORTREVISION= 5
-CATEGORIES= math
-MASTER_SITES= LOCAL/bf
-
-MAINTAINER= ports@FreeBSD.org
-COMMENT= Standard math functions missing from the FreeBSD libm
-
-LICENSE= BSD2CLAUSE
-
-DEPRECATED= Old. FreeBSD's libm improved since 2012 when this was imported
-EXPIRATION_DATE= 2025-09-01
-
-LIB_DEPENDS= libmpc.so:math/mpc
-
-USE_LDCONFIG= yes
-USES= tar:xz uidfix
-
-MAKE_ENV= LDADD=-lmpc LIB=missing SHLIB_MAJOR="${SHLIB_MAJOR}" \
- SRCCONF=/dev/null SRCS="${SRCS}"
-
-OPTIONS_DEFINE= PROFILE EXAMPLES
-
-PLIST_FILES= include/missing_complex.h \
- include/missing_math.h \
- lib/libmissing.a lib/libmissing.so \
- lib/libmissing.so.${SHLIB_MAJOR}
-
-SHLIB_MAJOR= 2
-SRCS= libmissing.c
-
-CFLAGS+= -fno-builtin -fno-math-errno -I. -I${LOCALBASE}/include
-LDFLAGS+= -L${LOCALBASE}/lib -Wl,-z,interpose
-PORTEXAMPLES= ${SRCS}
-
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MPROFILE}
-.if !exists(/usr/lib/libc_p.a)
-IGNORE= you have chosen WITH_PROFILE, but have not installed the\
-base system profiling libraries
-.endif
-PLIST_FILES+= lib/libmissing_p.a
-.else
-MAKE_ENV+= WITHOUT_PROFILE=yes
-.endif
-
-post-patch:
- @${PRINTF} "LIBDIR=\t${PREFIX}/lib\n.include <bsd.lib.mk>\n" > \
- ${WRKSRC}/Makefile
-.for t in d q s
- @cd ${WRKSRC}/c/common; ${CP} initseed.c maxtest.c ${WRKSRC}/c/${t}p/
-.endfor
- @${REINPLACE_CMD} -E \
- '/(XCFLAGS|XDEFINES|XINCLUDES|XLDFLAGS|XLIBS|XMFLAGS|XOPT)[[:blank:]]+=/d' \
- ${WRKSRC}/c/Makefile
- @${REINPLACE_CMD} -e \
- '/#include <math.h>/{x;s|^.*$$|#include "missing_math.h"|;H;x;}' \
- ${WRKSRC}/c/common/elefunt.h
- @${REINPLACE_CMD} -e '\|COMMONOBJS[[:blank:]]*=|s|../common/||g' \
- ${WRKSRC}/c/dp/Makefile \
- ${WRKSRC}/c/qp/Makefile \
- ${WRKSRC}/c/sp/Makefile
-
-do-test:
- @cd ${WRKSRC}/c; ${SETENVI} ${WRK_ENV} ${MAKE_ENV} \
- XCFLAGS="${CFLAGS} -frounding-math" XINCLUDES="-I${WRKSRC}" \
- XLDFLAGS="${LDFLAGS}" XLIBS="-L${WRKSRC} -lmissing" \
- LD_LIBRARY_PATH="/lib:/usr/lib:${LOCALBASE}/lib:${WRKSRC}" \
- ${MAKE_CMD} ${_MAKE_JOBS} ${MAKE_ARGS} all3
-.for t in d q s
- @${PRINTF} "\n\n\n\t\t%s\n\n\n" "REPORT OF ${t:tu}. PRECISION TEST RESULTS:"
- @${CAT} ${WRKSRC}/c/${t}p/tall${t}p.lst-xxx
-.endfor
-
-post-install:
- @cd ${WRKSRC}; ${INSTALL_DATA} missing_complex.h missing_math.h \
- ${STAGEDIR}${PREFIX}/include
-
-post-install-EXAMPLES-on:
- @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
- cd ${WRKSRC} && ${INSTALL_DATA} ${PORTEXAMPLES} ${STAGEDIR}${EXAMPLESDIR}
-
-.include <bsd.port.mk>
diff --git a/math/libmissing/distinfo b/math/libmissing/distinfo
deleted file mode 100644
index fdd4102ee8c7..000000000000
--- a/math/libmissing/distinfo
+++ /dev/null
@@ -1,2 +0,0 @@
-SHA256 (libmissing-20130815.tar.xz) = 44872006f607c34e0a85dd18a3c890d2f380fbcd87b885fdb5a17b46e1a3f422
-SIZE (libmissing-20130815.tar.xz) = 130232
diff --git a/math/libmissing/pkg-descr b/math/libmissing/pkg-descr
deleted file mode 100644
index b4f3fd16579e..000000000000
--- a/math/libmissing/pkg-descr
+++ /dev/null
@@ -1,7 +0,0 @@
-This is a collection of stopgap replacements for standard math
-functions missing from libm in various supported versions of
-FreeBSD. The functions are slower than the existing libm
-functions, but are more accurate than many naive replacements.
-Exceptions are largely ignored. N. Beebe's extended C version
-of the ELEFUNT package is used to provide regression tests for
-some of the real-valued functions.
diff --git a/math/nlopt/Makefile b/math/nlopt/Makefile
index 283559daa8db..dd4dc557a783 100644
--- a/math/nlopt/Makefile
+++ b/math/nlopt/Makefile
@@ -1,6 +1,7 @@
PORTNAME= nlopt
DISTVERSIONPREFIX= v
DISTVERSION= 2.10.0
+PORTREVISION= 1
CATEGORIES= math
MAINTAINER= rhurlin@FreeBSD.org
@@ -20,6 +21,7 @@ FLAVOR?= ${FLAVORS:[1]}
full_BUILD_DEPENDS= ${PYNUMPY} \
swig:devel/swig
+full_LIB_DEPENDS= liboctave.so:math/octave
full_RUN_DEPENDS= ${PYNUMPY}
full_CONFLICTS_INSTALL= ${PORTNAME}-minimal
minimal_PKGNAMESUFFIX= -minimal
@@ -34,16 +36,18 @@ USE_LDCONFIG= yes
CMAKE_TESTING_ON= NLOPT_TESTS
.if ${FLAVOR} == full
-USES+= guile:3.0,alias localbase pkgconfig python
+USES+= guile:3.0,alias localbase octave:env pkgconfig python
# Because guile-config-3.0 crashes, nlopt avoids this by using
# files/patch-cmake_FindGuile.cmake and setting GUILE_EXECUTABLE
# and GUILE_CONFIG_EXECUTABLE
MAKE_ENV+= GUILE_EXECUTABLE=${PREFIX}/bin/guile-3.0 \
GUILE_CONFIG_EXECUTABLE=${PREFIX}/bin/guile-config-3.0
CMAKE_OFF= NLOPT_JAVA
+GNU_HOST= ${ARCH}-portbld-freebsd${OSREL}
PLIST= ${PKGDIR}/pkg-plist.${FLAVOR}
+PLIST_SUB= GNU_HOST=${GNU_HOST} OCTAVE_VERSION=${OCTAVE_VERSION}
.elif ${FLAVOR} == minimal
-CMAKE_OFF= NLOPT_GUILE NLOPT_JAVA NLOPT_PYTHON NLOPT_SWIG
+CMAKE_OFF= NLOPT_GUILE NLOPT_JAVA NLOPT_OCTAVE NLOPT_PYTHON NLOPT_SWIG
.endif
.include <bsd.port.mk>
diff --git a/math/nlopt/files/patch-CMakeLists.txt b/math/nlopt/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..4cc24139004e
--- /dev/null
+++ b/math/nlopt/files/patch-CMakeLists.txt
@@ -0,0 +1,11 @@
+--- CMakeLists.txt.orig 2025-02-04 18:29:30 UTC
++++ CMakeLists.txt
+@@ -147,7 +147,7 @@ if (NLOPT_CXX OR NLOPT_PYTHON OR NLOPT_GUILE OR NLOPT_
+ if (NLOPT_CXX OR NLOPT_PYTHON OR NLOPT_GUILE OR NLOPT_OCTAVE OR NLOPT_JAVA)
+ check_cxx_symbol_exists (__cplusplus ciso646 SYSTEM_HAS_CXX)
+ if (SYSTEM_HAS_CXX)
+- set (CMAKE_CXX_STANDARD 11) # set the standard to C++11 but do not require it
++ set (CMAKE_CXX_STANDARD 17) # set the standard to C++17 but do not require it
+
+ if (NLOPT_CXX)
+ set (CMAKE_CXX_STANDARD_REQUIRED ON) # if we build C++ API, we do need C++11
diff --git a/math/nlopt/files/patch-CMakePresets.json b/math/nlopt/files/patch-CMakePresets.json
new file mode 100644
index 000000000000..e557968bc963
--- /dev/null
+++ b/math/nlopt/files/patch-CMakePresets.json
@@ -0,0 +1,11 @@
+--- CMakePresets.json.orig 2025-02-04 18:29:30 UTC
++++ CMakePresets.json
+@@ -8,7 +8,7 @@
+ "cacheVariables": {
+ "CMAKE_BUILD_TYPE": "RelWithDebInfo",
+ "CMAKE_C_FLAGS": "-Wall -Wextra -Wpedantic -Wshadow",
+- "CMAKE_CXX_FLAGS": "-Wall -Wextra -Wpedantic -Wshadow -D_GLIBCXX_ASSERTIONS -fno-inline",
++ "CMAKE_CXX_FLAGS": "-Wall -Wextra -Wpedantic -Wshadow -D_GLIBCXX_ASSERTIONS -fno-inline -std=c++17",
+ "CMAKE_INSTALL_PREFIX": "${sourceDir}/build/install",
+ "SWIG_COMPILE_FLAGS": "-O1 -Wno-unused-parameter -Wno-shadow"
+ }
diff --git a/math/nlopt/pkg-plist.full b/math/nlopt/pkg-plist.full
index 3a3a6db63e96..971a564dd944 100644
--- a/math/nlopt/pkg-plist.full
+++ b/math/nlopt/pkg-plist.full
@@ -1,4 +1,3 @@
-%%GUILE_SITE%%/nlopt.scm
include/nlopt.h
include/nlopt.hpp
lib/cmake/nlopt/NLoptConfig.cmake
@@ -9,10 +8,57 @@ lib/guile/%%GUILE_VER%%/extensions/nlopt_guile.so
lib/libnlopt.so
lib/libnlopt.so.1
lib/libnlopt.so.1.0.0
+lib/octave/%%OCTAVE_VERSION%%/site/oct/%%GNU_HOST%%/nlopt_optimize.oct
%%PYTHON_SITELIBDIR%%/_nlopt.so
%%PYTHON_SITELIBDIR%%/nlopt-2.10.0.dist-info/METADATA
%%PYTHON_SITELIBDIR%%/nlopt.py
libdata/pkgconfig/nlopt.pc
+%%GUILE_SITE%%/nlopt.scm
share/man/man3/nlopt.3.gz
share/man/man3/nlopt_minimize.3.gz
share/man/man3/nlopt_minimize_constrained.3.gz
+share/octave/%%OCTAVE_VERSION%%/site/m/NLOPT_AUGLAG.m
+share/octave/%%OCTAVE_VERSION%%/site/m/NLOPT_AUGLAG_EQ.m
+share/octave/%%OCTAVE_VERSION%%/site/m/NLOPT_GD_MLSL.m
+share/octave/%%OCTAVE_VERSION%%/site/m/NLOPT_GD_MLSL_LDS.m
+share/octave/%%OCTAVE_VERSION%%/site/m/NLOPT_GD_STOGO.m
+share/octave/%%OCTAVE_VERSION%%/site/m/NLOPT_GD_STOGO_RAND.m
+share/octave/%%OCTAVE_VERSION%%/site/m/NLOPT_GN_AGS.m
+share/octave/%%OCTAVE_VERSION%%/site/m/NLOPT_GN_CRS2_LM.m
+share/octave/%%OCTAVE_VERSION%%/site/m/NLOPT_GN_DIRECT.m
+share/octave/%%OCTAVE_VERSION%%/site/m/NLOPT_GN_DIRECT_L.m
+share/octave/%%OCTAVE_VERSION%%/site/m/NLOPT_GN_DIRECT_L_NOSCAL.m
+share/octave/%%OCTAVE_VERSION%%/site/m/NLOPT_GN_DIRECT_L_RAND.m
+share/octave/%%OCTAVE_VERSION%%/site/m/NLOPT_GN_DIRECT_L_RAND_NOSCAL.m
+share/octave/%%OCTAVE_VERSION%%/site/m/NLOPT_GN_DIRECT_NOSCAL.m
+share/octave/%%OCTAVE_VERSION%%/site/m/NLOPT_GN_ESCH.m
+share/octave/%%OCTAVE_VERSION%%/site/m/NLOPT_GN_ISRES.m
+share/octave/%%OCTAVE_VERSION%%/site/m/NLOPT_GN_MLSL.m
+share/octave/%%OCTAVE_VERSION%%/site/m/NLOPT_GN_MLSL_LDS.m
+share/octave/%%OCTAVE_VERSION%%/site/m/NLOPT_GN_ORIG_DIRECT.m
+share/octave/%%OCTAVE_VERSION%%/site/m/NLOPT_GN_ORIG_DIRECT_L.m
+share/octave/%%OCTAVE_VERSION%%/site/m/NLOPT_G_MLSL.m
+share/octave/%%OCTAVE_VERSION%%/site/m/NLOPT_G_MLSL_LDS.m
+share/octave/%%OCTAVE_VERSION%%/site/m/NLOPT_LD_AUGLAG.m
+share/octave/%%OCTAVE_VERSION%%/site/m/NLOPT_LD_AUGLAG_EQ.m
+share/octave/%%OCTAVE_VERSION%%/site/m/NLOPT_LD_CCSAQ.m
+share/octave/%%OCTAVE_VERSION%%/site/m/NLOPT_LD_LBFGS.m
+share/octave/%%OCTAVE_VERSION%%/site/m/NLOPT_LD_MMA.m
+share/octave/%%OCTAVE_VERSION%%/site/m/NLOPT_LD_SLSQP.m
+share/octave/%%OCTAVE_VERSION%%/site/m/NLOPT_LD_TNEWTON.m
+share/octave/%%OCTAVE_VERSION%%/site/m/NLOPT_LD_TNEWTON_PRECOND.m
+share/octave/%%OCTAVE_VERSION%%/site/m/NLOPT_LD_TNEWTON_PRECOND_RESTART.m
+share/octave/%%OCTAVE_VERSION%%/site/m/NLOPT_LD_TNEWTON_RESTART.m
+share/octave/%%OCTAVE_VERSION%%/site/m/NLOPT_LD_VAR1.m
+share/octave/%%OCTAVE_VERSION%%/site/m/NLOPT_LD_VAR2.m
+share/octave/%%OCTAVE_VERSION%%/site/m/NLOPT_LN_AUGLAG.m
+share/octave/%%OCTAVE_VERSION%%/site/m/NLOPT_LN_AUGLAG_EQ.m
+share/octave/%%OCTAVE_VERSION%%/site/m/NLOPT_LN_BOBYQA.m
+share/octave/%%OCTAVE_VERSION%%/site/m/NLOPT_LN_COBYLA.m
+share/octave/%%OCTAVE_VERSION%%/site/m/NLOPT_LN_NELDERMEAD.m
+share/octave/%%OCTAVE_VERSION%%/site/m/NLOPT_LN_NEWUOA.m
+share/octave/%%OCTAVE_VERSION%%/site/m/NLOPT_LN_NEWUOA_BOUND.m
+share/octave/%%OCTAVE_VERSION%%/site/m/NLOPT_LN_PRAXIS.m
+share/octave/%%OCTAVE_VERSION%%/site/m/NLOPT_LN_SBPLX.m
+share/octave/%%OCTAVE_VERSION%%/site/m/nlopt_minimize.m
+share/octave/%%OCTAVE_VERSION%%/site/m/nlopt_minimize_constrained.m
diff --git a/math/py-clarabel/Makefile b/math/py-clarabel/Makefile
index 7d8e9f5e14d7..421b79298308 100644
--- a/math/py-clarabel/Makefile
+++ b/math/py-clarabel/Makefile
@@ -1,7 +1,7 @@
PORTNAME= clarabel
DISTVERSIONPREFIX= v
DISTVERSION= 0.9.0
-PORTREVISION= 9
+PORTREVISION= 10
CATEGORIES= math python
#MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
diff --git a/math/py-narwhals/Makefile b/math/py-narwhals/Makefile
index 996dc336c9ae..ab28d85e5398 100644
--- a/math/py-narwhals/Makefile
+++ b/math/py-narwhals/Makefile
@@ -1,5 +1,5 @@
PORTNAME= narwhals
-PORTVERSION= 1.48.1
+PORTVERSION= 2.1.1
CATEGORIES= math python
MASTER_SITES= PYPI \
https://github.com/narwhals-dev/narwhals/releases/download/v${PORTVERSION}/
diff --git a/math/py-narwhals/distinfo b/math/py-narwhals/distinfo
index 61bcf19af018..8faf1ed4c142 100644
--- a/math/py-narwhals/distinfo
+++ b/math/py-narwhals/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1753796090
-SHA256 (narwhals-1.48.1.tar.gz) = b375cfdfc20b84b5ac0926f34c5c1373eb23ebea48d47bf75e282161cda63e34
-SIZE (narwhals-1.48.1.tar.gz) = 515882
+TIMESTAMP = 1755062570
+SHA256 (narwhals-2.1.1.tar.gz) = 308ec9d0e40616b66b61cd76ede4083a4232ae04942a3acef7e514d49641cb77
+SIZE (narwhals-2.1.1.tar.gz) = 529925
diff --git a/math/py-pcodec/Makefile b/math/py-pcodec/Makefile
index 5711ecccf91d..2460ea891064 100644
--- a/math/py-pcodec/Makefile
+++ b/math/py-pcodec/Makefile
@@ -1,6 +1,6 @@
PORTNAME= pcodec
PORTVERSION= 0.3.5
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= math python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
diff --git a/math/py-rustworkx/Makefile b/math/py-rustworkx/Makefile
index c1595e8b000d..b30f0fa69a0a 100644
--- a/math/py-rustworkx/Makefile
+++ b/math/py-rustworkx/Makefile
@@ -1,5 +1,6 @@
PORTNAME= rustworkx
DISTVERSION= 0.17.1
+PORTREVISION= 1
CATEGORIES= math python
#MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
diff --git a/math/savage/Makefile b/math/savage/Makefile
index 1bcf918ef259..5701c13df0a7 100644
--- a/math/savage/Makefile
+++ b/math/savage/Makefile
@@ -1,7 +1,7 @@
PORTNAME= savage
DISTVERSIONPREFIX= v
DISTVERSION= 0.2.0
-PORTREVISION= 31
+PORTREVISION= 32
CATEGORIES= math
MAINTAINER= ashish@FreeBSD.org