git: 98869c9e1e8d - main - math/slicot: upgrade to v5.9

From: Thierry Thomas <thierry_at_FreeBSD.org>
Date: Wed, 05 Jun 2024 16:39:13 UTC
The branch main has been updated by thierry:

URL: https://cgit.FreeBSD.org/ports/commit/?id=98869c9e1e8d4b3a8b69d25e12a4508ac177396b

commit 98869c9e1e8d4b3a8b69d25e12a4508ac177396b
Author:     Thierry Thomas <thierry@FreeBSD.org>
AuthorDate: 2024-06-05 15:58:58 +0000
Commit:     Thierry Thomas <thierry@FreeBSD.org>
CommitDate: 2024-06-05 16:39:09 +0000

    math/slicot:  upgrade to v5.9
---
 math/slicot/Makefile                            | 38 ++++------
 math/slicot/distinfo                            |  6 +-
 math/slicot/files/patch-examples_makefile       | 99 -------------------------
 math/slicot/files/patch-examples_makefile__Unix | 30 ++++++++
 math/slicot/files/patch-make__Unix.inc          | 26 +++++++
 math/slicot/files/patch-src_makefile            | 14 ----
 math/slicot/pkg-plist                           |  1 +
 7 files changed, 76 insertions(+), 138 deletions(-)

diff --git a/math/slicot/Makefile b/math/slicot/Makefile
index d36160230967..f1c1bb39f7f0 100644
--- a/math/slicot/Makefile
+++ b/math/slicot/Makefile
@@ -1,12 +1,11 @@
 PORTNAME=	SLICOT
-PORTVERSION=	5.8
+PORTVERSION=	5.9
 DISTVERSIONPREFIX=	v
-PORTREVISION=	3
 CATEGORIES=	math
 
 MAINTAINER=	thierry@FreeBSD.org
 COMMENT=	Fortran subroutines library for systems and control
-WWW=		http://slicot.org/
+WWW=		https://slicot.org/
 
 LICENSE=	BSD3CLAUSE
 
@@ -15,11 +14,13 @@ GH_PROJECT=	SLICOT-Reference
 
 USES=		blaslapack:openblas fortran
 
-WRKSRC_SUBDIR=	src
-PATCH_WRKSRC=	${WRKDIR}/${GH_PROJECT}-${PORTVERSION}
-MAKEFILE=	makefile
+BINARY_ALIAS=	gfortran=${FC}
+FFLAGS+=	-I${LOCALBASE}/include
+LDFLAGS+=	-L${LOCALBASE}/lib
+MAKEFILE=	makefile_Unix
 MAKE_ENV=	FORTRAN=${FC} OPTS="${FFLAGS} -fPIC" LOADER=${FC}	\
-		LOADOPTS="../src/libslicot.a ${FFLAGS} ${BLASLIB} ${LAPACKLIB}"
+		LOADOPTS="${WRKSRC}/slicot.a ${WRKSRC}/lpkaux.a ${LDFLAGS} ${BLASLIB} ${LAPACKLIB}"
+MAKE_JOBS_UNSAFE=yes
 USE_LDCONFIG=	yes
 
 OPTIONS_DEFINE=	DOCS EXAMPLES
@@ -27,19 +28,12 @@ PORTDOCS=	*
 
 post-build:
 	(cd ${WRKSRC} &&	\
-	${AR} ${ARFLAGS} libslicot.a *.o &&	\
+	${CP} slicot.a libslicot.a &&	\
 	${FC} ${LDFLAGS} -shared -Wl,-soname=libslicot.so.0	\
-		-o libslicot.so.0.0 *.o ${BLASLIB} ${LAPACKLIB} &&	\
+		-o libslicot.so.0.0 src/*.o ${BLASLIB} ${LAPACKLIB} &&	\
 	${LN} -sf libslicot.so.0.0 libslicot.so.0 &&	\
 	${LN} -sf libslicot.so.0.0 libslicot.so)
 
-pre-configure-EXAMPLES-on:
-	${REINPLACE_CMD} -e 's|\\src\\|/src/|;s|\.obj|.o|g;s|\-exe:|-o |;s|exe;  T|exe;  ./T|'	\
-		${WRKSRC}/../examples/${MAKEFILE}
-
-post-build-EXAMPLES-on:
-	(cd ${WRKSRC}/../examples && ${DO_MAKE_BUILD} ${ALL_TARGET})
-
 do-install:
 	${MKDIR} ${STAGEDIR}${PREFIX}/lib
 	${INSTALL_DATA} ${WRKSRC}/libslicot.a ${STAGEDIR}${PREFIX}/lib
@@ -52,17 +46,17 @@ do-install:
 do-install-DOCS-on:
 	${MKDIR} ${STAGEDIR}${DOCSDIR}
 .for f in README.md libindex.html
-	${INSTALL_DATA} ${WRKSRC}/../${f} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
 .endfor
-	cd ${WRKSRC}/.. && ${COPYTREE_SHARE} doc ${STAGEDIR}${DOCSDIR}
+	cd ${WRKSRC} && ${COPYTREE_SHARE} doc ${STAGEDIR}${DOCSDIR}
 
 do-install-EXAMPLES-on:
-	${FIND} ${WRKSRC}/../examples -name "T*" -a ! -name "*\.*" |	\
+	${FIND} ${WRKSRC}/examples -name "T*" -a ! -name "*\.*" |	\
 		${XARGS} ${STRIP_CMD}
-	${RM} ${WRKSRC}/../examples/*.o ${WRKSRC}/../examples/makefile.bak	\
-		${WRKSRC}/../examples/makefile.orig
+	${RM} ${WRKSRC}/examples/*.o ${WRKSRC}/../examples/makefile.bak	\
+		${WRKSRC}/examples/makefile.orig
 	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
-	cd ${WRKSRC}/../examples &&	\
+	cd ${WRKSRC}/examples &&	\
 		${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}
 
 .include <bsd.port.mk>
diff --git a/math/slicot/distinfo b/math/slicot/distinfo
index 55722b27f68c..bbbb6bcde50d 100644
--- a/math/slicot/distinfo
+++ b/math/slicot/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1669888985
-SHA256 (SLICOT-SLICOT-Reference-v5.8_GH0.tar.gz) = 381f90cb09ab4f0f4ed2bd6bd29b3c8897d79a20d3857da15fe6098ed1ecec20
-SIZE (SLICOT-SLICOT-Reference-v5.8_GH0.tar.gz) = 2843103
+TIMESTAMP = 1709474279
+SHA256 (SLICOT-SLICOT-Reference-v5.9_GH0.tar.gz) = af5dc4773bf76e6f137d3c1dbc4838fbb360a134b5a09afce90b9ce690363b7b
+SIZE (SLICOT-SLICOT-Reference-v5.9_GH0.tar.gz) = 2939308
diff --git a/math/slicot/files/patch-examples_makefile b/math/slicot/files/patch-examples_makefile
deleted file mode 100644
index c09a1807a1f6..000000000000
--- a/math/slicot/files/patch-examples_makefile
+++ /dev/null
@@ -1,99 +0,0 @@
---- examples/makefile.orig	2022-05-27 14:40:35 UTC
-+++ examples/makefile
-@@ -70,11 +70,11 @@ all: AB01MD.exa AB01ND.exa AB01OD.exa AB04MD.exa AB05M
-      TG01DD.exa TG01ED.exa TG01FD.exa TG01HD.exa TG01ID.exa TG01JD.exa \
-      TG01JY.exa UD01BD.exa UD01CD.exa UD01DD.exa UD01MD.exa UD01ND.exa \
-      MB03TD.exa MB03XD.exa MB03XP.exa MB03ZD.exa MB04DD.exa MB04DP.exa \
--     MB4DPZ.exa MB04DL.exa MB4DLZ.exa MB04DS.exa MB04PB.exa MB04PU.exa \
-+     MB04DL.exa MB04DS.exa MB04PB.exa MB04PU.exa \
-      MB04TB.exa MB04TS.exa AB08NZ.exa AG08BZ.exa TB01IZ.exa TG01AZ.exa \
-      TG01FZ.exa MB03BD.exa MB03KD.exa MB03LD.exa MB04AD.exa MB04BD.exa \
--     MB03BZ.exa MB03FZ.exa MB03LF.exa MB03LZ.exa MB03XZ.exa \
--     MB04AZ.exa MB04BZ.exa MB04DZ.exa MB04ED.exa MB04FD.exa \
-+     MB03LF.exa \
-+     MB04ED.exa MB04FD.exa \
-      MC01XD.exa SG02ND.exa \
-      AB08NW.exa MB03QG.exa TB01PX.exa TB01UY.exa TB01WX.exa TG01GD.exa \
-      TG01LD.exa TG01MD.exa TG01ND.exa TG01PD.exa TG01QD.exa
-@@ -281,9 +281,7 @@ MB03XP.exa: MB03XP.dat TMB03XP.exe;  TMB03XP <MB03XP.d
- MB03ZD.exa: MB03ZD.dat TMB03ZD.exe;  TMB03ZD <MB03ZD.dat >MB03ZD.exa
- MB04DD.exa: MB04DD.dat TMB04DD.exe;  TMB04DD <MB04DD.dat >MB04DD.exa
- MB04DP.exa: MB04DP.dat TMB04DP.exe;  TMB04DP <MB04DP.dat >MB04DP.exa
--MB4DPZ.exa: MB4DPZ.dat TMB4DPZ.exe;  TMB4DPZ <MB4DPZ.dat >MB4DPZ.exa
- MB04DL.exa: MB04DL.dat TMB04DL.exe;  TMB04DL <MB04DL.dat >MB04DL.exa
--MB4DLZ.exa: MB4DLZ.dat TMB4DLZ.exe;  TMB4DLZ <MB4DLZ.dat >MB4DLZ.exa
- MB04DS.exa: MB04DS.dat TMB04DS.exe;  TMB04DS <MB04DS.dat >MB04DS.exa
- MB04PB.exa: MB04PB.dat TMB04PB.exe;  TMB04PB <MB04PB.dat >MB04PB.exa
- MB04PU.exa: MB04PU.dat TMB04PU.exe;  TMB04PU <MB04PU.dat >MB04PU.exa
-@@ -299,14 +297,7 @@ MB03KD.exa: MB03KD.dat TMB03KD.exe;  TMB03KD <MB03KD.d
- MB03LD.exa: MB03LD.dat TMB03LD.exe;  TMB03LD <MB03LD.dat >MB03LD.exa
- MB04AD.exa: MB04AD.dat TMB04AD.exe;  TMB04AD <MB04AD.dat >MB04AD.exa
- MB04BD.exa: MB04BD.dat TMB04BD.exe;  TMB04BD <MB04BD.dat >MB04BD.exa
--MB03BZ.exa: MB03BZ.dat TMB03BZ.exe;  TMB03BZ <MB03BZ.dat >MB03BZ.exa
--MB03FZ.exa: MB03FZ.dat TMB03FZ.exe;  TMB03FZ <MB03FZ.dat >MB03FZ.exa
- MB03LF.exa: MB03LF.dat TMB03LF.exe;  TMB03LF <MB03LF.dat >MB03LF.exa
--MB03LZ.exa: MB03LZ.dat TMB03LZ.exe;  TMB03LZ <MB03LZ.dat >MB03LZ.exa
--MB03XZ.exa: MB03XZ.dat TMB03XZ.exe;  TMB03XZ <MB03XZ.dat >MB03XZ.exa
--MB04AZ.exa: MB04AZ.dat TMB04AZ.exe;  TMB04AZ <MB04AZ.dat >MB04AZ.exa
--MB04BZ.exa: MB04BZ.dat TMB04BZ.exe;  TMB04BZ <MB04BZ.dat >MB04BZ.exa
--MB04DZ.exa: MB04DZ.dat TMB04DZ.exe;  TMB04DZ <MB04DZ.dat >MB04DZ.exa
- MB04ED.exa: MB04ED.dat TMB04ED.exe;  TMB04ED <MB04ED.dat >MB04ED.exa
- MB04FD.exa: MB04FD.dat TMB04FD.exe;  TMB04FD <MB04FD.dat >MB04FD.exa
- MC01XD.exa: MC01XD.dat TMC01XD.exe;  TMC01XD <MC01XD.dat >MC01XD.exa
-@@ -524,9 +515,7 @@ TMB03XP.exe:  TMB03XP.obj ; $(LOADER) -exe:TMB03XP TMB
- TMB03ZD.exe:  TMB03ZD.obj ; $(LOADER) -exe:TMB03ZD TMB03ZD.obj $(LOADOPTS)
- TMB04DD.exe:  TMB04DD.obj ; $(LOADER) -exe:TMB04DD TMB04DD.obj $(LOADOPTS)
- TMB04DP.exe:  TMB04DP.obj ; $(LOADER) -exe:TMB04DP TMB04DP.obj $(LOADOPTS)
--TMB4DPZ.exe:  TMB4DPZ.obj ; $(LOADER) -exe:TMB4DPZ TMB4DPZ.obj $(LOADOPTS)
- TMB04DL.exe:  TMB04DL.obj ; $(LOADER) -exe:TMB04DL TMB04DL.obj $(LOADOPTS)
--TMB4DLZ.exe:  TMB4DLZ.obj ; $(LOADER) -exe:TMB4DLZ TMB4DLZ.obj $(LOADOPTS)
- TMB04DS.exe:  TMB04DS.obj ; $(LOADER) -exe:TMB04DS TMB04DS.obj $(LOADOPTS)
- TMB04PB.exe:  TMB04PB.obj ; $(LOADER) -exe:TMB04PB TMB04PB.obj $(LOADOPTS)
- TMB04PU.exe:  TMB04PU.obj ; $(LOADER) -exe:TMB04PU TMB04PU.obj $(LOADOPTS)
-@@ -542,14 +531,7 @@ TMB03KD.exe:  TMB03KD.obj ; $(LOADER) -exe:TMB03KD TMB
- TMB03LD.exe:  TMB03LD.obj ; $(LOADER) -exe:TMB03LD TMB03LD.obj $(LOADOPTS)
- TMB04AD.exe:  TMB04AD.obj ; $(LOADER) -exe:TMB04AD TMB04AD.obj $(LOADOPTS)
- TMB04BD.exe:  TMB04BD.obj ; $(LOADER) -exe:TMB04BD TMB04BD.obj $(LOADOPTS)
--TMB03BZ.exe:  TMB03BZ.obj ; $(LOADER) -exe:TMB03BZ TMB03BZ.obj $(LOADOPTS)
--TMB03FZ.exe:  TMB03FZ.obj ; $(LOADER) -exe:TMB03FZ TMB03FZ.obj $(LOADOPTS)
- TMB03LF.exe:  TMB03LF.obj ; $(LOADER) -exe:TMB03LF TMB03LF.obj $(LOADOPTS)
--TMB03LZ.exe:  TMB03LZ.obj ; $(LOADER) -exe:TMB03LZ TMB03LZ.obj $(LOADOPTS)
--TMB03XZ.exe:  TMB03XZ.obj ; $(LOADER) -exe:TMB03XZ TMB03XZ.obj $(LOADOPTS)
--TMB04AZ.exe:  TMB04AZ.obj ; $(LOADER) -exe:TMB04AZ TMB04AZ.obj $(LOADOPTS)
--TMB04BZ.exe:  TMB04BZ.obj ; $(LOADER) -exe:TMB04BZ TMB04BZ.obj $(LOADOPTS)
--TMB04DZ.exe:  TMB04DZ.obj ; $(LOADER) -exe:TMB04DZ TMB04DZ.obj $(LOADOPTS)
- TMB04ED.exe:  TMB04ED.obj ; $(LOADER) -exe:TMB04ED TMB04ED.obj $(LOADOPTS)
- TMB04FD.exe:  TMB04FD.obj ; $(LOADER) -exe:TMB04FD TMB04FD.obj $(LOADOPTS)
- TMC01XD.exe:  TMC01XD.obj ; $(LOADER) -exe:TMC01XD TMC01XD.obj $(LOADOPTS)
-@@ -773,9 +755,7 @@ TMB03XP.obj: ..\src\MB03XP.f TMB03XP.f ; $(FORTRAN) $(
- TMB03ZD.obj: ..\src\MB03ZD.f TMB03ZD.f ; $(FORTRAN) $(OPTS) -c TMB03ZD.f
- TMB04DD.obj: ..\src\MB04DD.f TMB04DD.f ; $(FORTRAN) $(OPTS) -c TMB04DD.f
- TMB04DP.obj: ..\src\MB04DP.f TMB04DP.f ; $(FORTRAN) $(OPTS) -c TMB04DP.f
--TMB4DPZ.obj: ..\src\MB4DPZ.f TMB4DPZ.f ; $(FORTRAN) $(OPTS) -c TMB4DPZ.f
- TMB04DL.obj: ..\src\MB04DL.f TMB04DL.f ; $(FORTRAN) $(OPTS) -c TMB04DL.f
--TMB4DLZ.obj: ..\src\MB4DLZ.f TMB4DLZ.f ; $(FORTRAN) $(OPTS) -c TMB4DLZ.f
- TMB04DS.obj: ..\src\MB04DS.f TMB04DS.f ; $(FORTRAN) $(OPTS) -c TMB04DS.f
- TMB04PB.obj: ..\src\MB04PB.f TMB04PB.f ; $(FORTRAN) $(OPTS) -c TMB04PB.f
- TMB04PU.obj: ..\src\MB04PU.f TMB04PU.f ; $(FORTRAN) $(OPTS) -c TMB04PU.f
-@@ -791,14 +771,7 @@ TMB03KD.obj: ..\src\MB03KD.f TMB03KD.f ; $(FORTRAN) $(
- TMB03LD.obj: ..\src\MB03LD.f TMB03LD.f ; $(FORTRAN) $(OPTS) -c TMB03LD.f
- TMB04AD.obj: ..\src\MB04AD.f TMB04AD.f ; $(FORTRAN) $(OPTS) -c TMB04AD.f
- TMB04BD.obj: ..\src\MB04BD.f TMB04BD.f ; $(FORTRAN) $(OPTS) -c TMB04BD.f
--TMB03BZ.obj: ..\src\MB03BZ.f TMB03BZ.f ; $(FORTRAN) $(OPTS) -c TMB03BZ.f
--TMB03FZ.obj: ..\src\MB03FZ.f TMB03FZ.f ; $(FORTRAN) $(OPTS) -c TMB03FZ.f
- TMB03LF.obj: ..\src\MB03LF.f TMB03LF.f ; $(FORTRAN) $(OPTS) -c TMB03LF.f
--TMB03LZ.obj: ..\src\MB03LZ.f TMB03LZ.f ; $(FORTRAN) $(OPTS) -c TMB03LZ.f
--TMB03XZ.obj: ..\src\MB03XZ.f TMB03XZ.f ; $(FORTRAN) $(OPTS) -c TMB03XZ.f
--TMB04AZ.obj: ..\src\MB04AZ.f TMB04AZ.f ; $(FORTRAN) $(OPTS) -c TMB04AZ.f
--TMB04BZ.obj: ..\src\MB04BZ.f TMB04BZ.f ; $(FORTRAN) $(OPTS) -c TMB04BZ.f
--TMB04DZ.obj: ..\src\MB04DZ.f TMB04DZ.f ; $(FORTRAN) $(OPTS) -c TMB04DZ.f
- TMB04ED.obj: ..\src\MB04ED.f TMB04ED.f ; $(FORTRAN) $(OPTS) -c TMB04ED.f
- TMB04FD.obj: ..\src\MB04FD.f TMB04FD.f ; $(FORTRAN) $(OPTS) -c TMB04FD.f
- TMC01XD.obj: ..\src\MC01XD.f TMC01XD.f ; $(FORTRAN) $(OPTS) -c TMC01XD.f
-@@ -814,4 +787,5 @@ TTG01ND.obj: ..\src\TG01ND.f TTG01ND.f ; $(FORTRAN) $(
- TTG01PD.obj: ..\src\TG01PD.f TTG01PD.f ; $(FORTRAN) $(OPTS) -c TTG01PD.f
- TTG01QD.obj: ..\src\TG01QD.f TTG01QD.f ; $(FORTRAN) $(OPTS) -c TTG01QD.f
- 
--.f.obj: ; $(FORTRAN) $(OPTS) -c $<
-+.f.obj:
-+	$(FORTRAN) $(OPTS) -c $<
diff --git a/math/slicot/files/patch-examples_makefile__Unix b/math/slicot/files/patch-examples_makefile__Unix
new file mode 100644
index 000000000000..ba134d924e1e
--- /dev/null
+++ b/math/slicot/files/patch-examples_makefile__Unix
@@ -0,0 +1,30 @@
+--- examples/makefile_Unix.orig	2024-02-05 12:03:37 UTC
++++ examples/makefile_Unix
+@@ -40,6 +40,8 @@ include ../make_Unix.inc
+ 
+ include ../make_Unix.inc
+ 
++# MB03BZ.exa removed - see https://github.com/SLICOT/SLICOT-Reference/issues/16
++# Same for MB03FZ, MB03LZ, MB03XZ, MB04AZ, MB04BZ, MB4DLZ, MB4DPZ, MB04DZ
+ all: AB01MD.exa AB01ND.exa AB01OD.exa AB04MD.exa AB05MD.exa AB05ND.exa \
+      AB05OD.exa AB05PD.exa AB05QD.exa AB05RD.exa AB07MD.exa AB07ND.exa \
+      AB08ND.exa AB08NW.exa AB08NZ.exa AB09AD.exa AB09BD.exa AB09CD.exa \
+@@ -54,13 +56,13 @@ all: AB01MD.exa AB01ND.exa AB01OD.exa AB04MD.exa AB05M
+      IB01AD.exa IB01BD.exa IB01CD.exa IB03AD.exa IB03BD.exa \
+      MB01TD.exa MB02CD.exa MB02DD.exa MB02ED.exa MB02FD.exa MB02GD.exa \
+      MB02HD.exa MB02ID.exa MB02JD.exa MB02JX.exa MB02KD.exa MB02MD.exa \
+-     MB02ND.exa MB02QD.exa MB02SD.exa MB02VD.exa MB03BD.exa MB03BZ.exa \
+-     MB03FZ.exa MB03KD.exa MB03LD.exa MB03LF.exa MB03LZ.exa MB03MD.exa \
++     MB02ND.exa MB02QD.exa MB02SD.exa MB02VD.exa MB03BD.exa \
++     MB03KD.exa MB03LD.exa MB03LF.exa MB03MD.exa \
+      MB03ND.exa MB03OD.exa MB03PD.exa MB03QD.exa MB03QG.exa MB03RD.exa \
+      MB03SD.exa MB03TD.exa MB03UD.exa MB03VD.exa MB03WD.exa MB03XD.exa \
+-     MB03XP.exa MB03XZ.exa MB03ZD.exa MB04AD.exa MB04AZ.exa MB04BD.exa \
+-     MB04BZ.exa MB04DD.exa MB04DL.exa MB4DLZ.exa MB04DP.exa MB4DPZ.exa \
+-     MB04DS.exa MB04DY.exa MB04DZ.exa MB04ED.exa MB04FD.exa MB04GD.exa \
++     MB03XP.exa MB03ZD.exa MB04AD.exa MB04BD.exa \
++     MB04DD.exa MB04DL.exa MB04DP.exa \
++     MB04DS.exa MB04DY.exa MB04ED.exa MB04FD.exa MB04GD.exa \
+      MB04MD.exa MB04OD.exa MB04PB.exa MB04PU.exa MB04TB.exa MB04TS.exa \
+      MB04UD.exa MB04VD.exa MB04XD.exa MB04YD.exa MB04ZD.exa MB05MD.exa \
+      MB05ND.exa MB05OD.exa MC01MD.exa MC01ND.exa MC01OD.exa MC01PD.exa \
diff --git a/math/slicot/files/patch-make__Unix.inc b/math/slicot/files/patch-make__Unix.inc
new file mode 100644
index 000000000000..5fff92918818
--- /dev/null
+++ b/math/slicot/files/patch-make__Unix.inc
@@ -0,0 +1,26 @@
+--- make_Unix.inc.orig	2024-02-05 12:03:37 UTC
++++ make_Unix.inc
+@@ -14,7 +14,7 @@ FORTRAN = gfortran
+ #  the compiler options desired when NO OPTIMIZATION is selected.
+ #
+ FORTRAN = gfortran
+-OPTS = -O2 -fPIC -fdefault-integer-8
++#OPTS = -O2 -fPIC -fdefault-integer-8
+ OPTS_NOOPT = -O0
+ 
+ #  Define LDFLAGS to the desired linker options for your machine.
+@@ -30,13 +30,11 @@ ARCHFLAGS = cr
+ # ARCHFLAGS= r
+ # RANLIB   = ranlib
+ 
+-LOADOPTS = $(SLICOTLIB) $(LPKAUXLIB) $(LAPACKLIB) $(BLASLIB)
++#LOADOPTS = $(SLICOTLIB) $(LPKAUXLIB) $(LAPACKLIB) $(BLASLIB)
+ #
+ #  The location of the libraries to which you will link.  (The
+ #  machine-specific, optimized BLAS library should be used whenever
+ #  possible.)
+ #
+-BLASLIB      = ../libs/blas.a
+-LAPACKLIB    = ../libs/lapack.a
+ LPKAUXLIB    = ../lpkaux.a
+ SLICOTLIB    = ../slicot.a
diff --git a/math/slicot/files/patch-src_makefile b/math/slicot/files/patch-src_makefile
deleted file mode 100644
index 1b2c8e6aad36..000000000000
--- a/math/slicot/files/patch-src_makefile
+++ /dev/null
@@ -1,14 +0,0 @@
---- src/makefile.orig	2022-05-27 14:40:35 UTC
-+++ src/makefile
-@@ -119,9 +119,9 @@ DSLSRC = \
-     MB04DB.obj MB4DBZ.obj MB04DL.obj MB4DLZ.obj MB04DP.obj MB4DPZ.obj MB03AF.obj \
-     MB03AG.obj MB03BF.obj MB03BG.obj MB01OD.obj MB01OE.obj MB01OH.obj MB01OO.obj \
-     MB01OS.obj MB01OT.obj MB01RH.obj MB01RT.obj SG02CV.obj MB03AB.obj MB03AE.obj \
--    MB03AH.obj MB03AI.obj 
-+    MB03AH.obj MB03AI.obj MB01UY.obj SG03BR.obj
- 
--all: double
-+all: $(DSLSRC)
- 
- double: $(DSLSRC)
- 	$(ARCH) $(ARCHFLAGS):$(SLICOTLIB) $(DSLSRC)
diff --git a/math/slicot/pkg-plist b/math/slicot/pkg-plist
index b858a0bd5f2d..a1c971a765cb 100644
--- a/math/slicot/pkg-plist
+++ b/math/slicot/pkg-plist
@@ -1197,4 +1197,5 @@ lib/libslicot.so.0.0
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/UD01ND.exa
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/UD01ND.res
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/makefile
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/makefile_Unix
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/readme