diff options
author | Thierry Thomas <thierry@FreeBSD.org> | 2004-11-21 20:56:57 +0000 |
---|---|---|
committer | Thierry Thomas <thierry@FreeBSD.org> | 2004-11-21 20:56:57 +0000 |
commit | 3c83758fd227515c5d49daa1ece66c0951946595 (patch) | |
tree | 1b3205f53c4de3fc490089504c573c8b6c6bfc80 /math/petsc/files/patch-makefile | |
parent | It's unclear why removing LDFLAGS="${LDFLAGS}" from CONFIGURE_ENV (diff) |
Add petsc 2.2.1, portable, Extensible Toolkit for Scientific
computation.
Notes
Notes:
svn path=/head/; revision=122097
Diffstat (limited to 'math/petsc/files/patch-makefile')
-rw-r--r-- | math/petsc/files/patch-makefile | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/math/petsc/files/patch-makefile b/math/petsc/files/patch-makefile new file mode 100644 index 000000000000..29cc50265d3e --- /dev/null +++ b/math/petsc/files/patch-makefile @@ -0,0 +1,58 @@ +--- makefile.orig Wed Sep 22 02:57:28 2004 ++++ makefile Sun Oct 3 00:26:00 2004 +@@ -6,6 +6,7 @@ + ALL: all + LOCDIR = . + DIRS = src include ++DOCS_DIR = ${INSTALL_DIR}/../share/doc/petsc + + include ${PETSC_DIR}/bmake/common/base + include ${PETSC_DIR}/bmake/common/test +@@ -224,7 +225,7 @@ + echo "BOPT=$$BOPT" > ${PETSC_DIR}/bmake/common/bopt_ ;\ + fi + install: +- -@if [ "${INSTALL_DIR}" == "${PETSC_DIR}" ]; then \ ++ -@if [ "${INSTALL_DIR}" = "${PETSC_DIR}" ]; then \ + echo "Install directory is current directory; nothing needs to be done";\ + else \ + echo Installing PETSc at ${INSTALL_DIR};\ +@@ -258,11 +259,11 @@ + done;\ + echo "sh/bash: PETSC_DIR="${INSTALL_DIR}"; export PETSC_DIR";\ + echo "csh/tcsh: setenv PETSC_DIR "${INSTALL_DIR} ;\ +- echo "The do make test to verify correct install";\ ++ echo "Then do make test to verify correct install";\ + fi; + + install_src: +- -@if [ "${INSTALL_DIR}" == "${PETSC_DIR}" ]; then \ ++ -@if [ "${INSTALL_DIR}" = "${PETSC_DIR}" ]; then \ + echo "You did not set a directory to install to";\ + else \ + echo Installing PETSc source at ${INSTALL_DIR};\ +@@ -276,17 +277,17 @@ + fi; + + install_docs: +- -@if [ "${INSTALL_DIR}" == "${PETSC_DIR}" ]; then \ ++ -@if [ "${INSTALL_DIR}" = "${PETSC_DIR}" ]; then \ + echo "You did not set a directory to install to";\ + else \ +- echo Installing PETSc documentation at ${INSTALL_DIR};\ +- if [ ! -d `dirname ${INSTALL_DIR}` ]; then \ +- ${MKDIR} `dirname ${INSTALL_DIR}` ; \ ++ echo Installing PETSc documentation at ${DOCS_DIR};\ ++ if [ ! -d `dirname ${DOCS_DIR}` ]; then \ ++ ${MKDIR} `dirname ${DOCS_DIR}` ; \ + fi;\ +- if [ ! -d ${INSTALL_DIR} ]; then \ +- ${MKDIR} ${INSTALL_DIR} ; \ ++ if [ ! -d ${DOCS_DIR} ]; then \ ++ ${MKDIR} ${DOCS_DIR} ; \ + fi;\ +- cp -fr docs ${INSTALL_DIR};\ ++ cp -fr docs/* ${DOCS_DIR};\ + ${RM} -fr docs/tex;\ + fi; + # ------------------------------------------------------------------ |