1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-22 00:35:15 +00:00
freebsd-ports/math/gotoblas/files/patch-Makefile
Maho Nakata 4280e7ca3a Update LAPACK part to 3.4.0.
Discussed with: bf@ and Eijiro Shibusawa <ej-sib@ac.auone-net.jp>
2012-02-13 04:27:53 +00:00

128 lines
5.1 KiB
Plaintext

--- Makefile.orig 2010-01-21 05:54:38.000000000 +0900
+++ Makefile 2012-01-24 17:17:35.000000000 +0900
@@ -23,7 +23,7 @@
@echo " GotoBLAS build complete."
@echo
@echo " OS ... $(OSNAME) "
- @echo " Architecture ... $(ARCH) "
+ @echo " Architecture ... $(ARCH_) "
ifndef BINARY64
@echo " BINARY ... 32bit "
else
@@ -142,46 +142,41 @@
fi; \
done
-netlib : lapack-3.1.1 patch.for_lapack-3.1.1 lapack-3.1.1/make.inc
+netlib : lapack-%%LAPACKVER%% lapack-%%LAPACKVER%%/make.inc #patch.for_lapack-%%LAPACKVER%%
ifndef NOFORTRAN
- -@$(MAKE) -C lapack-3.1.1 lapacklib
+ -@$(MAKE) -C lapack-%%LAPACKVER%% lapacklib
endif
-prof_lapack : lapack-3.1.1 lapack-3.1.1/make.inc
- -@$(MAKE) -C lapack-3.1.1 lapack_prof
+prof_lapack : lapack-%%LAPACKVER%% lapack-%%LAPACKVER%%/make.inc
+ -@$(MAKE) -C lapack-%%LAPACKVER%% lapack_prof
-lapack-3.1.1/make.inc :
+lapack-%%LAPACKVER%%/make.inc :
ifndef NOFORTRAN
- -@echo "FORTRAN = $(FC)" > lapack-3.1.1/make.inc
- -@echo "OPTS = $(FFLAGS)" >> lapack-3.1.1/make.inc
- -@echo "POPTS = $(FPFLAGS)" >> lapack-3.1.1/make.inc
- -@echo "NOOPT = $(FFLAGS) -O0" >> lapack-3.1.1/make.inc
- -@echo "PNOOPT = $(FPFLAGS) -O0" >> lapack-3.1.1/make.inc
- -@echo "LOADOPTS = $(FFLAGS) $(EXTRALIB)" >> lapack-3.1.1/make.inc
- -@echo "ARCH = $(AR)" >> lapack-3.1.1/make.inc
- -@echo "RANLIB = $(RANLIB)" >> lapack-3.1.1/make.inc
- -@echo "LAPACKLIB = ../$(LIBNAME)" >> lapack-3.1.1/make.inc
- -@echo "LAPACKLIB_P = ../$(LIBNAME_P)" >> lapack-3.1.1/make.inc
- -@echo "SUFFIX = $(SUFFIX)" >> lapack-3.1.1/make.inc
- -@echo "PSUFFIX = $(PSUFFIX)" >> lapack-3.1.1/make.inc
-# -@echo "CEXTRALIB = $(CEXTRALIB)" >> lapack-3.1.1/make.inc
- -@cat make.inc >> lapack-3.1.1/make.inc
+ -@echo "FORTRAN = $(FC)" > lapack-%%LAPACKVER%%/make.inc
+ -@echo "OPTS = $(FFLAGS)" >> lapack-%%LAPACKVER%%/make.inc
+ -@echo "POPTS = $(FPFLAGS)" >> lapack-%%LAPACKVER%%/make.inc
+ -@echo "NOOPT = $(FFLAGS) -O0" >> lapack-%%LAPACKVER%%/make.inc
+ -@echo "PNOOPT = $(FPFLAGS) -O0" >> lapack-%%LAPACKVER%%/make.inc
+ -@echo "LOADOPTS = $(FFLAGS) $(EXTRALIB)" >> lapack-%%LAPACKVER%%/make.inc
+ -@echo "ARCH_ = $(AR)" >> lapack-%%LAPACKVER%%/make.inc
+ -@echo "RANLIB = $(RANLIB)" >> lapack-%%LAPACKVER%%/make.inc
+ -@echo "LAPACKLIB = ../$(LIBNAME)" >> lapack-%%LAPACKVER%%/make.inc
+ -@echo "LAPACKLIB_P = ../$(LIBNAME_P)" >> lapack-%%LAPACKVER%%/make.inc
+ -@echo "SUFFIX = $(SUFFIX)" >> lapack-%%LAPACKVER%%/make.inc
+ -@echo "PSUFFIX = $(PSUFFIX)" >> lapack-%%LAPACKVER%%/make.inc
+# -@echo "CEXTRALIB = $(CEXTRALIB)" >> lapack-%%LAPACKVER%%/make.inc
+ -@cat make.inc >> lapack-%%LAPACKVER%%/make.inc
endif
-lapack-3.1.1 : lapack-3.1.1.tgz
+lapack-%%LAPACKVER%% : lapack-%%LAPACKVER%%.tgz
ifndef NOFORTRAN
- @if test `$(MD5SUM) lapack-3.1.1.tgz | $(AWK) '{print $$1}'` = 00b21551a899bcfbaa7b8443e1faeef9; then \
echo $(TAR) zxf $< ;\
- $(TAR) zxf $< && (cd lapack-3.1.1; $(PATCH) -p1 < ../patch.for_lapack-3.1.1) ;\
- else \
- echo " lapack-3.1.1.tgz check sum is wrong (Please use orignal)." ;\
- rm -rf lapack-3.1.1 ;\
- fi
+ $(TAR) zxf $< && (cd lapack-%%LAPACKVER%%; $(PATCH) -p1 < ../patch.for_lapack-%%LAPACKVER%%)
endif
-lapack-3.1.1.tgz :
+lapack-%%LAPACKVER%%.tgz :
ifndef NOFORTRAN
- -wget http://www.netlib.org/lapack/lapack-3.1.1.tgz
+ -wget http://www.netlib.org/lapack/lapack-%%LAPACKVER%%.tgz
endif
large.tgz :
@@ -194,21 +189,21 @@
-wget http://www.netlib.org/lapack/timing/timing.tgz
endif
-lapack-timing : lapack-3.1.1 large.tgz timing.tgz
+lapack-timing : lapack-%%LAPACKVER%% large.tgz timing.tgz
ifndef NOFORTRAN
- (cd lapack-3.1.1; $(TAR) zxf ../timing.tgz TIMING)
- (cd lapack-3.1.1/TIMING; $(TAR) zxf ../../large.tgz )
- make -C lapack-3.1.1 tmglib
- make -C lapack-3.1.1/TIMING
+ (cd lapack-%%LAPACKVER%%; $(TAR) zxf ../timing.tgz TIMING)
+ (cd lapack-%%LAPACKVER%%/TIMING; $(TAR) zxf ../../large.tgz )
+ make -C lapack-%%LAPACKVER%% tmglib
+ make -C lapack-%%LAPACKVER%%/TIMING
endif
lapack-test :
- $(MAKE) -C lapack-3.1.1 tmglib
- $(MAKE) -C lapack-3.1.1/TESTING xeigtstc xeigtstd xeigtsts xeigtstz xlintstc xlintstd xlintstds xlintsts xlintstz xlintstzc
- @rm -f lapack-3.1.1/TESTING/*.out
- $(MAKE) -j 1 -C lapack-3.1.1/TESTING
- $(GREP) failed lapack-3.1.1/TESTING/*.out
+ $(MAKE) -C lapack-%%LAPACKVER%% tmglib
+ $(MAKE) -C lapack-%%LAPACKVER%%/TESTING xeigtstc xeigtstd xeigtsts xeigtstz xlintstc xlintstd xlintstds xlintsts xlintstz xlintstzc
+ @rm -f lapack-%%LAPACKVER%%/TESTING/*.out
+ $(MAKE) -j 1 -C lapack-%%LAPACKVER%%/TESTING
+ $(GREP) failed lapack-%%LAPACKVER%%/TESTING/*.out
dummy :
@@ -223,8 +218,8 @@
endif
@rm -f *.$(LIBSUFFIX) *.so *~ *.exe getarch getarch_2nd *.dll *.lib *.$(SUFFIX) *.dwf libgoto2.$(LIBSUFFIX) libgoto2_p.$(LIBSUFFIX) *.lnk myconfig.h
@rm -f Makefile.conf config.h Makefile_kernel.conf config_kernel.h st* *.dylib
- @if test -d lapack-3.1.1; then \
- echo deleting lapack-3.1.1; \
- rm -rf lapack-3.1.1 ;\
+ @if test -d lapack-%%LAPACKVER%%; then \
+ echo deleting lapack-%%LAPACKVER%%; \
+ rm -rf lapack-%%LAPACKVER%% ;\
fi
- @echo Done.
\ No newline at end of file
+ @echo Done.