pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/math/py-scipy



Module Name:    pkgsrc
Committed By:   thor
Date:           Sun Jun  1 21:46:47 UTC 2025

Modified Files:
        pkgsrc/math/py-scipy: Makefile
Added Files:
        pkgsrc/math/py-scipy: options.mk

Log Message:
math/py-scipy: make suitesparse available for scikits as option


To generate a diff of this commit:
cvs rdiff -u -r1.96 -r1.97 pkgsrc/math/py-scipy/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/math/py-scipy/options.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/math/py-scipy/Makefile
diff -u pkgsrc/math/py-scipy/Makefile:1.96 pkgsrc/math/py-scipy/Makefile:1.97
--- pkgsrc/math/py-scipy/Makefile:1.96  Wed May 14 11:19:30 2025
+++ pkgsrc/math/py-scipy/Makefile       Sun Jun  1 21:46:47 2025
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.96 2025/05/14 11:19:30 adam Exp $
+# $NetBSD: Makefile,v 1.97 2025/06/01 21:46:47 thor Exp $
 
 DISTNAME=      scipy-1.15.3
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
@@ -58,6 +58,8 @@ PYSETUPBUILDARGS+=    --fcompiler=gnu95
 BROKEN=                        "Requires fortran 95"
 .endif
 
+.include "options.mk"
+
 CPPFLAGS+=     -D__STDC_FORMAT_MACROS
 FFLAGS+=       -fPIC
 

Added files:

Index: pkgsrc/math/py-scipy/options.mk
diff -u /dev/null pkgsrc/math/py-scipy/options.mk:1.1
--- /dev/null   Sun Jun  1 21:46:47 2025
+++ pkgsrc/math/py-scipy/options.mk     Sun Jun  1 21:46:47 2025
@@ -0,0 +1,20 @@
+# $NetBSD: options.mk,v 1.1 2025/06/01 21:46:47 thor Exp $
+
+# Not making that option dependent on python version. Would only
+# confuse, no?
+PKG_OPTIONS_VAR=       PKG_OPTIONS.scipy
+
+# Could be that we need BLAS directly here, too?
+
+PKG_SUPPORTED_OPTIONS=  suitesparse
+PKG_SUGGESTED_OPTIONS=
+.include "../../mk/bsd.options.mk"
+
+# The picture is blurry. It _seems_ that scipy itself does not actually
+# use suitesparse (at last UMFPACK), but add-on-packages named scikits
+# do. Wasn't the world complicated enough, already? I'll just ensure
+# that suitesparse is present for those add-ons and perhaps also
+# for parts of scipy itself (in future? now?).
+.if !empty(PKG_OPTIONS:Msuitesparse)
+.include "../../math/suitesparse/buildlink3.mk"
+.endif



Home | Main Index | Thread Index | Old Index