summaryrefslogtreecommitdiff
path: root/math/arpack++/files/patch-Makefile.inc
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2003-12-07 02:47:24 +0000
committerPav Lucistnik <pav@FreeBSD.org>2003-12-07 02:47:24 +0000
commit196470e8fcc688f1bc8658fdcef7e2c90f4efea6 (patch)
tree1a8ba59e7a7477ce614d5412fbca65e34cf27892 /math/arpack++/files/patch-Makefile.inc
parent- Update MASTER_SITES and WWW (diff)
Add arpack++, an object-oriented version of the ARPACK package.
It's just a collection of class templates, because templates are defined in header (.h) files PR: ports/58535 Submitted by: Thierry Thomas <thierry@pompo.net>
Diffstat (limited to 'math/arpack++/files/patch-Makefile.inc')
-rw-r--r--math/arpack++/files/patch-Makefile.inc82
1 files changed, 82 insertions, 0 deletions
diff --git a/math/arpack++/files/patch-Makefile.inc b/math/arpack++/files/patch-Makefile.inc
new file mode 100644
index 000000000000..13365323498c
--- /dev/null
+++ b/math/arpack++/files/patch-Makefile.inc
@@ -0,0 +1,82 @@
+--- Makefile.inc.orig Wed Apr 5 14:00:59 2000
++++ Makefile.inc Mon Oct 20 21:56:56 2003
+@@ -1,25 +1,27 @@
+-# ARPACK++ v1.2 2/18/2000
++# ARPACK++ v1.2 2/20/2000
++# $FreeBSD$
+ # c++ interface to ARPACK code.
+ # This file contains some definitions used to compile arpack++ examples
+-# with the g++ compiler under Sun Solaris.
++# with the g++ compiler under FreeBSD.
+
+
+ # Defining the machine.
+
+-PLAT = solaris
++PLAT = `uname -s`
+
+ # Defining the compiler.
+
+-CPP = g++
++CPP = $(CXX)
+
+ # Defining ARPACK++ directories.
+ # ARPACKPP_INC is the directory that contains all arpack++ header files.
+ # SUPERLU_DIR and UMFPACK_DIR must be set to ARPACKPP_INC.
+
+-ARPACKPP_DIR = $(HOME)/arpack++
+-ARPACKPP_INC = $(ARPACKPP_DIR)/include
+-SUPERLU_DIR = $(ARPACKPP_INC)
+-UMFPACK_DIR = $(ARPACKPP_INC)
++ARPACK_INC = %%LOCALBASE%%/include
++ARPACKPP_DIR = %%LOCALBASE%%
++ARPACKPP_INC = $(ARPACKPP_DIR)/include/ARPACK++
++SUPERLU_DIR = %%LOCALBASE%%/include/superlu
++UMFPACK_DIR = %%LOCALBASE%%/include/UMFPACK
+
+ # Defining ARPACK, LAPACK, UMFPACK, SUPERLU, BLAS and FORTRAN libraries.
+ # See the arpack++ manual or the README file for directions on how to
+@@ -33,31 +35,26 @@
+ # Other libraries should be defined if the user intends to compile
+ # arpack++ on another environment.
+
+-ARPACK_LIB = $(HOME)/lib/arpack_$(PLAT).a
+-LAPACK_LIB = /opt/LAPACK/lapack_$(PLAT).a
+-UMFPACK_LIB = $(HOME)/lib/umfpack_$(PLAT).a
+-SUPERLU_LIB = $(HOME)/lib/superlu_$(PLAT).a
+-BLAS_LIB = /opt/LAPACK/blas_$(PLAT).a
+-FORTRAN_LIBS = /opt/SUNWspro/SC4.0/lib/libF77.a \
+- /opt/SUNWspro/SC4.0/lib/libM77.a \
+- /opt/SUNWspro/SC4.0/lib/libsunmath.a
++ARPACK_LIB = %%LOCALBASE%%/lib/libarpack.a
++LAPACK_LIB = %%LOCALBASE%%/lib/liblapack.a
++UMFPACK_LIB = %%LOCALBASE%%/lib/libumfpack.a
++SUPERLU_LIB = %%LOCALBASE%%/lib/libsuperlu.a
++BLAS_LIB = %%LOCALBASE%%/lib/libf77blas.a %%LOCALBASE%%/lib/libatlas.a
++FORTRAN_LIBS = -lg2c
+
+ # Defining g++ flags and directories.
+
+-# CPP_WARNINGS = -fpermissive
+-CPP_WARNINGS = -Wall -ansi -pedantic-errors
++CPP_WARNINGS = -Wno-deprecated
+ CPP_DEBUG = -g
+-CPP_OPTIM = -O
+-CPP_LIBS =
+-CPP_INC = /usr/local/include/g++-3
++#CPP_OPTIM = -O
++CPP_LIBS = -lm
++CPP_INC = %%LOCALBASE%%/include
+
+-CPP_FLAGS = $(CPP_DEBUG) -D$(PLAT) -I$(ARPACKPP_INC) -I$(CPP_INC) \
+- $(CPP_WARNINGS)
++CPP_FLAGS = $(CXXFLAGS) $(CPP_WARNINGS) -D$(PLAT) -I$(ARPACKPP_INC) -I$(CPP_INC)
+
+ # Putting all libraries together.
+
+-ALL_LIBS = $(CPP_LIBS) $(ARPACK_LIB) $(LAPACK_LIB) \
+- $(BLAS_LIB) $(FORTRAN_LIBS)
++ALL_LIBS = $(ARPACK_LIB) $(LAPACK_LIB) $(BLAS_LIB) $(FORTRAN_LIBS) $(CPP_LIBS)
+
+ # defining paths.
+