pkgsrc/math/djbfft/patches/patch-Makefile

103 lines
3.2 KiB
Text

$NetBSD: patch-Makefile,v 1.1 2020/06/30 17:24:56 schmonz Exp $
DESTDIR support.
--- Makefile.orig 1999-09-30 20:25:58.000000000 +0000
+++ Makefile
@@ -569,8 +569,8 @@ compile 8v5.c pre8.c fftc8.h complex8.h
./compile 8v5.c
accuracy: \
-load accuracy.o djbfft.a math.lib
- ./load accuracy djbfft.a `cat math.lib`
+load accuracy.o libdjbfft.a math.lib
+ ./load accuracy libdjbfft.a `cat math.lib`
accuracy.o: \
compile accuracy.c fftc4.h complex4.h real4.h fftc8.h complex8.h \
@@ -578,8 +578,8 @@ real8.h fftr4.h real4.h fftr8.h real8.h
./compile accuracy.c
accuracy2: \
-load accuracy2.o djbfft.a math.lib
- ./load accuracy2 djbfft.a `cat math.lib`
+load accuracy2.o libdjbfft.a math.lib
+ ./load accuracy2 libdjbfft.a `cat math.lib`
accuracy2.o: \
compile accuracy2.c fftc4.h complex4.h real4.h fftc8.h complex8.h \
@@ -601,6 +601,14 @@ trycpp.c compilebase
&& echo -malign-double || exit 0 ) > auto_align
rm -f trycpp.o
+auto_destdir.c: \
+auto-str conf-destdir
+ ./auto-str auto_home `head -1 conf-destdir` > auto_destdir.c
+
+auto_destdir.o: \
+compile auto_destdir.c
+ ./compile auto_destdir.c
+
auto_home.c: \
auto-str conf-home
./auto-str auto_home `head -1 conf-home` > auto_home.c
@@ -649,7 +657,7 @@ warn-auto.sh conf-cc
) > compilebase
chmod 755 compilebase
-djbfft.a: \
+libdjbfft.a: \
makelib 8sc.o 8u5.o 8u4.o 8u3.o 8u2.o 8u1.o 8u0.o 8mc.o 8c0.o 8c1.o \
8c2.o 8c3.o 8c4.o 8c5.o 8d0.o 8d1.o 8d2.o 8d3.o 8d4.o 8d5.o 8v5.o \
8v4.o 8v3.o 8v2.o 8v1.o 8v0.o 8mr.o 8r0.o 8r1.o 8r2.o 8r3.o 8r4.o \
@@ -657,7 +665,7 @@ makelib 8sc.o 8u5.o 8u4.o 8u3.o 8u2.o 8u
4c1.o 4c2.o 4c3.o 4c4.o 4c5.o 4d0.o 4d1.o 4d2.o 4d3.o 4d4.o 4d5.o \
4v5.o 4v4.o 4v3.o 4v2.o 4v1.o 4v0.o 4mr.o 4r0.o 4r1.o 4r2.o 4r3.o \
4r4.o 4r5.o 4sr.o fftfreq.o
- ./makelib djbfft.a 8sc.o 8u5.o 8u4.o 8u3.o 8u2.o 8u1.o \
+ ./makelib libdjbfft.a 8sc.o 8u5.o 8u4.o 8u3.o 8u2.o 8u1.o \
8u0.o 8mc.o 8c0.o 8c1.o 8c2.o 8c3.o 8c4.o 8c5.o 8d0.o 8d1.o \
8d2.o 8d3.o 8d4.o 8d5.o 8v5.o 8v4.o 8v3.o 8v2.o 8v1.o 8v0.o \
8mr.o 8r0.o 8r1.o 8r2.o 8r3.o 8r4.o 8r5.o 8sr.o 4sc.o 4u5.o \
@@ -695,9 +703,9 @@ compile hier.c auto_home.h
./compile hier.c
install: \
-load install.o hier.o auto_home.o strerr.a substdio.a open.a error.a \
+load install.o hier.o auto_destdir.o strerr.a substdio.a open.a error.a \
str.a
- ./load install hier.o auto_home.o strerr.a substdio.a \
+ ./load install hier.o auto_destdir.o strerr.a substdio.a \
open.a error.a str.a
install.o: \
@@ -706,8 +714,8 @@ exit.h
./compile install.c
instcheck: \
-load instcheck.o hier.o auto_home.o strerr.a substdio.a error.a str.a
- ./load instcheck hier.o auto_home.o strerr.a substdio.a \
+load instcheck.o hier.o auto_destdir.o strerr.a substdio.a error.a str.a
+ ./load instcheck hier.o auto_destdir.o strerr.a substdio.a \
error.a str.a
instcheck.o: \
@@ -758,15 +766,15 @@ compile open_trunc.c open.h
./compile open_trunc.c
prog: \
-djbfft.a accuracy accuracy2 speed speed.out
+libdjbfft.a accuracy accuracy2 speed speed.out
setup: \
it install
./install
speed: \
-load speed.o djbfft.a math.lib
- ./load speed djbfft.a `cat math.lib`
+load speed.o libdjbfft.a math.lib
+ ./load speed libdjbfft.a `cat math.lib`
speed.o: \
compile speed.c fftr4.h real4.h fftr8.h real8.h fftc4.h complex4.h \