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 -