git: a052b3a8aa32 - main - math/octave-forge-control: Tidy up build.

From: Stephen Montgomery-Smith <stephen_at_FreeBSD.org>
Date: Mon, 15 Jan 2024 03:44:08 UTC
The branch main has been updated by stephen:

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

commit a052b3a8aa3290e51a8e2d0dcb7ed769881079cd
Author:     Stephen Montgomery-Smith <stephen@FreeBSD.org>
AuthorDate: 2024-01-15 03:43:22 +0000
Commit:     Stephen Montgomery-Smith <stephen@FreeBSD.org>
CommitDate: 2024-01-15 03:43:22 +0000

    math/octave-forge-control: Tidy up build.
---
 math/octave-forge-control/Makefile             |  3 +++
 math/octave-forge-control/files/patch-Makefile | 10 ----------
 2 files changed, 3 insertions(+), 10 deletions(-)

diff --git a/math/octave-forge-control/Makefile b/math/octave-forge-control/Makefile
index 6511331aa477..a892cb65e261 100644
--- a/math/octave-forge-control/Makefile
+++ b/math/octave-forge-control/Makefile
@@ -21,6 +21,9 @@ OCTAVE_SRC=	${GH_PROJECT}-control-${DISTVERSION}
 
 GNU_CONFIGURE=	yes
 
+post-patch:
+	${MV} ${WRKSRC}/TG04BX.f ${WRKSRC_slicot}/src
+
 pre-configure:
 	${REINPLACE_CMD} -e '/SC_SRC.*\:\=/s+slicot+${WRKSRC_slicot}'+ ${WRKSRC}/Makefile
 
diff --git a/math/octave-forge-control/files/patch-Makefile b/math/octave-forge-control/files/patch-Makefile
deleted file mode 100644
index 2320098580c2..000000000000
--- a/math/octave-forge-control/files/patch-Makefile
+++ /dev/null
@@ -1,10 +0,0 @@
---- Makefile.orig	2024-01-11 01:31:30 UTC
-+++ Makefile
-@@ -30,6 +30,7 @@ all: __control_slicot_functions__.oct \
- # uppressing warnings on indexing errors
- #
- slicotlibrary.a: slicot
-+	cp TG04BX.f $(SC_SRC)
- 	cd $(SC_SRC) && $(MKOCTFILE) -w -c MA02ID.f; mv MA02ID.f x && $(MKOCTFILE) -c *.f && mv x MA02ID.f
- 	$(AR) -rc slicotlibrary.a $(SC_SRC)/*.o
-