major reorganization; updates to versions; fixes
This commit is contained in:
@@ -1,13 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
source "$(dirname $0)/../../lib/libem.bash"
|
||||
|
||||
function em.configure() {
|
||||
"${MODULE_SRCDIR}"/configure \
|
||||
--prefix="${PREFIX}" \
|
||||
|| exit 1
|
||||
}
|
||||
|
||||
em.add_to_family 'System'
|
||||
em.set_build_dependencies "${COMPILER}"
|
||||
em.make_all
|
||||
@@ -1,48 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
source "$(dirname $0)/../lib/libem.bash"
|
||||
|
||||
# :TODO: detect compiler
|
||||
TOOLSET=gcc
|
||||
|
||||
function em.configure() {
|
||||
cd "${MODULE_SRCDIR}"
|
||||
"${MODULE_SRCDIR}"/bootstrap.sh \
|
||||
--prefix="${PREFIX}" \
|
||||
--with-toolset=${TOOLSET} \
|
||||
--with-libraries=all \
|
||||
--with-python-root="${PYTHON_PREFIX}" \
|
||||
|| exit 1
|
||||
}
|
||||
|
||||
function em.build() {
|
||||
cd "${MODULE_SRCDIR}"
|
||||
./b2 \
|
||||
--build-type=minimal \
|
||||
--build-dir="${MODULE_BUILDDIR}" \
|
||||
--layout=system \
|
||||
--without-mpi \
|
||||
variant=release \
|
||||
link=static \
|
||||
threading=multi \
|
||||
stage
|
||||
}
|
||||
|
||||
function em.install() {
|
||||
cd "${MODULE_SRCDIR}"
|
||||
./b2 \
|
||||
--build-type=minimal \
|
||||
--build-dir="${MODULE_BUILDDIR}" \
|
||||
--layout=system \
|
||||
--without-mpi \
|
||||
variant=release \
|
||||
link=static \
|
||||
threading=multi \
|
||||
install
|
||||
}
|
||||
|
||||
em.add_to_family 'Compiler'
|
||||
em.set_runtime_dependencies "${COMPILER}"
|
||||
em.set_build_dependencies "${COMPILER}" 'Python'
|
||||
em.make_all
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
source "$(dirname $0)/../lib/libem.bash"
|
||||
source "$(dirname $0)/../../../lib/libem.bash"
|
||||
|
||||
function em.configure() {
|
||||
"${MODULE_SRCDIR}"/configure \
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
source "$(dirname $0)/../lib/libem.bash"
|
||||
source "$(dirname $0)/../../../lib/libem.bash"
|
||||
|
||||
function em.configure() {
|
||||
:
|
||||
@@ -1,42 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
source "$(dirname $0)/../../lib/libem.bash"
|
||||
|
||||
function em.configure() {
|
||||
:
|
||||
}
|
||||
|
||||
function em.build() {
|
||||
case ${OS} in
|
||||
Linux )
|
||||
declare -x LDFLAGS="-lintl -liconv"
|
||||
;;
|
||||
Darwin )
|
||||
declare -x LDFLAGS="-lintl -liconv -framework CoreFoundation"
|
||||
;;
|
||||
esac
|
||||
|
||||
cd "${MODULE_SRCDIR}"
|
||||
make -e
|
||||
}
|
||||
|
||||
function em.install() {
|
||||
cd "${MODULE_SRCDIR}"
|
||||
declare -x DESTDIR="${PREFIX}"
|
||||
declare -x prefix=''
|
||||
make -e install
|
||||
}
|
||||
|
||||
function em.cleanup_build() {
|
||||
cd "${MODULE_SRCDIR}"
|
||||
make -e realclean
|
||||
}
|
||||
|
||||
em.add_to_family 'Tools'
|
||||
em.make_all
|
||||
|
||||
# Local Variables:
|
||||
# mode: sh
|
||||
# sh-basic-offset: 8
|
||||
# tab-width: 8
|
||||
# End:
|
||||
@@ -1,31 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
source "$(dirname $0)/../lib/libem.bash"
|
||||
|
||||
function em.configure() {
|
||||
"${MODULE_SRCDIR}"/configure \
|
||||
--prefix="${PREFIX}" \
|
||||
|| exit 1
|
||||
}
|
||||
|
||||
em.add_to_family 'Compiler'
|
||||
em.set_docfiles \
|
||||
'AUTHORS' \
|
||||
'BUGS' \
|
||||
'COPYING' \
|
||||
'ChangeLog' \
|
||||
'INSTALL' \
|
||||
'NEWS' \
|
||||
'README' \
|
||||
'THANKS' \
|
||||
'TODO'
|
||||
|
||||
em.set_runtime_dependencies "${COMPILER}"
|
||||
em.set_build_dependencies "${COMPILER}"
|
||||
em.make_all
|
||||
|
||||
# Local Variables:
|
||||
# mode: sh
|
||||
# sh-basic-offset: 8
|
||||
# tab-width: 8
|
||||
# End:
|
||||
@@ -1,33 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
source "$(dirname $0)/../lib/libem.bash"
|
||||
|
||||
function em.configure() {
|
||||
CC=$MPICC
|
||||
CXX=$MPICXX
|
||||
F77=$MPIF77
|
||||
F90=$MPIF90
|
||||
FC=$MPIFC
|
||||
FORTRAN=$MPIFORTRAN
|
||||
|
||||
"${MODULE_SRCDIR}"/configure \
|
||||
--prefix="${PREFIX}" \
|
||||
--enable-shared \
|
||||
--enable-parallel \
|
||||
--enable-cxx \
|
||||
--enable-unsupported \
|
||||
--with-pic \
|
||||
|| exit 1
|
||||
}
|
||||
|
||||
|
||||
em.add_to_family 'MPI'
|
||||
em.set_runtime_dependencies "${COMPILER}" "${MPI}"
|
||||
em.set_build_dependencies "${COMPILER}" "${MPI}"
|
||||
em.set_docfiles \
|
||||
ACKNOWLEDGMENTS \
|
||||
COPYING \
|
||||
MANIFEST \
|
||||
README.txt
|
||||
em.make_all
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
source "$(dirname $0)/../lib/libem.bash"
|
||||
|
||||
function em.configure() {
|
||||
"${MODULE_SRCDIR}"/configure \
|
||||
--prefix="${PREFIX}" \
|
||||
--enable-shared \
|
||||
--enable-cxx \
|
||||
--enable-unsupported \
|
||||
--with-pic \
|
||||
|| exit 1
|
||||
}
|
||||
|
||||
em.add_to_family 'Compiler'
|
||||
em.set_runtime_dependencies "${COMPILER}"
|
||||
em.set_build_dependencies "${COMPILER}"
|
||||
em.make_all
|
||||
|
||||
@@ -1,26 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
source "$(dirname $0)/../lib/libem.bash"
|
||||
|
||||
function em.configure() {
|
||||
CC=$MPICC
|
||||
CXX=$MPICXX
|
||||
F77=$MPIF77
|
||||
F90=$MPIF90
|
||||
FC=$MPIFC
|
||||
FORTRAN=$MPIFORTRAN
|
||||
|
||||
rm -f CMakeCache.txt
|
||||
cmake \
|
||||
-DCMAKE_BUILD_TYPE=RELEASE \
|
||||
-DCMAKE_INSTALL_PREFIX="${PREFIX}" \
|
||||
"${MODULE_SRCDIR}" \
|
||||
|| exit 1
|
||||
}
|
||||
|
||||
em.add_to_family 'MPI'
|
||||
em.set_runtime_dependencies "${COMPILER}" "${MPI}"
|
||||
em.set_build_dependencies 'cmake' "${COMPILER}" "${MPI}"
|
||||
em.set_docfiles LICENSE README
|
||||
em.make_all
|
||||
|
||||
@@ -1,50 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
source "$(dirname $0)/../lib/libem.bash"
|
||||
|
||||
function em.configure() {
|
||||
:
|
||||
}
|
||||
|
||||
function em.build() {
|
||||
cd "${MODULE_SRCDIR}"
|
||||
|
||||
|
||||
install -m 0755 -d "${PREFIX}/include"
|
||||
install -m 0755 -d "${PREFIX}/lib"
|
||||
install -m 0755 -d "${DOCDIR}/lapack"
|
||||
|
||||
(
|
||||
cp make.inc.blas BLAS/make.inc
|
||||
cd BLAS
|
||||
make -e -j3 || exit 1
|
||||
install -m 0644 libblas.a "${PREFIX}/lib" || exit 1
|
||||
) || exit 1
|
||||
|
||||
(
|
||||
cp make.inc.cblas CBLAS/Makefile.in
|
||||
cd CBLAS
|
||||
make -e || exit 1
|
||||
install -m 0644 include/* "${PREFIX}/include" || exit 1
|
||||
install -m 0644 lib/* "${PREFIX}/lib" || exit 1
|
||||
) || exit 1
|
||||
(
|
||||
cp make.inc.lapack lapack/make.inc
|
||||
cd lapack
|
||||
make -e -j3 || exit 1
|
||||
make -e -j3 lapackelib || exit 1
|
||||
install -m 0644 lapacke/include/* "${PREFIX}/include" || exit 1
|
||||
install -m 0644 lib*.a "${PREFIX}/lib" || exit 1
|
||||
install -m 0444 README LICENSE "${DOCDIR}/lapack"
|
||||
) || exit 1
|
||||
}
|
||||
|
||||
function em.install() {
|
||||
:
|
||||
}
|
||||
|
||||
em.add_to_family 'Compiler'
|
||||
em.set_runtime_dependencies "${COMPILER}"
|
||||
em.set_build_dependencies "${COMPILER}"
|
||||
em.make_all
|
||||
em.cleanup_src
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
source "$(dirname $0)/../lib/libem.bash"
|
||||
source "$(dirname $0)/../../../lib/libem.bash"
|
||||
|
||||
function em.configure() {
|
||||
cd "${MODULE_SRCDIR}"
|
||||
@@ -1,22 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
source "$(dirname $0)/../lib/libem.bash"
|
||||
|
||||
function em.configure() {
|
||||
"${MODULE_SRCDIR}"/configure \
|
||||
--prefix="${PREFIX}" \
|
||||
--enable-mpi-cxx \
|
||||
--enable-mpi-cxx-seek \
|
||||
--enable-mpi-f90 \
|
||||
--enable-mpi-profile \
|
||||
--enable-shared \
|
||||
--enable-smp-locks \
|
||||
|| exit 1
|
||||
}
|
||||
|
||||
|
||||
em.add_to_family 'Compiler'
|
||||
em.set_runtime_dependencies "${COMPILER}"
|
||||
em.set_build_dependencies "${COMPILER}"
|
||||
em.set_docfiles 'AUTHORS' 'LICENSE' 'NEWS' 'README'
|
||||
em.make_all
|
||||
@@ -1,20 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
source "$(dirname $0)/../lib/libem.bash"
|
||||
|
||||
module use unstable
|
||||
|
||||
# add -fopenmp to CC and CXX, if you want to compile with OpenMP
|
||||
function em.configure() {
|
||||
cmake \
|
||||
-DCMAKE_INSTALL_PREFIX="${PREFIX}" \
|
||||
-DCMAKE_BUILD_TYPE=RELEASE \
|
||||
"${MODULE_SRCDIR}"
|
||||
}
|
||||
|
||||
em.add_to_family 'MPI'
|
||||
em.set_runtime_dependencies "${COMPILER}" "${MPI}"
|
||||
em.set_build_dependencies 'cmake' "${COMPILER}" "${MPI}" 'boost' 'hdf5' 'H5hut' 'trilinos' 'ippl' 'gsl' 'boost' 'OPAL'
|
||||
em.set_supported_compilers 'gcc/4.7' 'gcc/4.8'
|
||||
em.make_all
|
||||
|
||||
@@ -1,53 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
source "$(dirname $0)/../lib/libem.bash"
|
||||
|
||||
function em.configure() {
|
||||
CC=$MPICC
|
||||
CXX=$MPICXX
|
||||
F77=$MPIF77
|
||||
F90=$MPIF90
|
||||
FC=$MPIFC
|
||||
FORTRAN=$MPIFORTRAN
|
||||
}
|
||||
|
||||
function em.build() {
|
||||
local -ri MAJOR_VERSION=${V%%.*}
|
||||
if (( MAJOR_VERSION == 3 )) ; then
|
||||
cd "${MODULE_SRCDIR}"
|
||||
make -e -j3 || exit 1
|
||||
|
||||
mkdir -p $PREFIX/include/metis
|
||||
mkdir -p $PREFIX/lib
|
||||
|
||||
cp *.h $PREFIX/include
|
||||
cp METISLib/*.h $PREFIX/include/metis
|
||||
cp lib*.a $PREFIX/lib
|
||||
elif (( MAJOR_VERSION == 4 )); then
|
||||
cd "${MODULE_SRCDIR}"
|
||||
make config prefix=$PREFIX || exit 1
|
||||
make -j3 || exit 1
|
||||
make install
|
||||
|
||||
LIBMETIS_A=$(find . -name libmetis.a)
|
||||
METIS_H=$(find . -name metis.h)
|
||||
|
||||
install -m 0644 $METIS_H $PREFIX/include
|
||||
install -m 0644 $LIBMETIS_A $PREFIX/lib
|
||||
else
|
||||
die 42 "Unsupported version: $V"
|
||||
fi
|
||||
}
|
||||
|
||||
function em.install() {
|
||||
:
|
||||
}
|
||||
|
||||
|
||||
em.add_to_family 'MPI'
|
||||
em.set_runtime_dependencies "${COMPILER}" "${MPI}"
|
||||
em.set_build_dependencies "${COMPILER}" "${MPI}"
|
||||
em.set_docfiles 'CHANGES' 'INSTALL' 'LICENSE.txt' 'README' 'VERSION'
|
||||
em.make_all
|
||||
em.cleanup_src
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
source "$(dirname $0)/../lib/libem.bash"
|
||||
source "$(dirname $0)/../../../lib/libem.bash"
|
||||
|
||||
function em.configure() {
|
||||
"${MODULE_SRCDIR}"/configure \
|
||||
@@ -1,72 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
source "$(dirname $0)/../lib/libem.bash"
|
||||
|
||||
case ${OS} in
|
||||
Darwin )
|
||||
# cocoa doesn't work with GCC!?
|
||||
#config_args='--enable-cocoa --disable-x11'
|
||||
config_args='--with-finkdir=/opt/X11 --disable-cocoa'
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
esac
|
||||
|
||||
function em.configure() {
|
||||
"${MODULE_SRCDIR}"/configure \
|
||||
--disable-ldap \
|
||||
--disable-mysql \
|
||||
--disable-opengl \
|
||||
--disable-python \
|
||||
--enable-fftw3 \
|
||||
--with-cc=${CC} \
|
||||
--with-cxx=${CXX} \
|
||||
--with-f77=${F77} \
|
||||
--with-ld=${CXX} \
|
||||
${config_args} \
|
||||
|| exit 1
|
||||
}
|
||||
|
||||
function em.build() {
|
||||
make -j 4
|
||||
}
|
||||
|
||||
function em.install() {
|
||||
make clean
|
||||
|
||||
rm -f Makefile
|
||||
rm -rf config.*
|
||||
rm -rf core
|
||||
rm -rf io
|
||||
rm -rf math
|
||||
rm -rf net
|
||||
rm -rf hist
|
||||
rm -rf tree
|
||||
rm -rf graf2d
|
||||
rm -rf graf3d
|
||||
rm -rf gui
|
||||
rm -rf html
|
||||
rm -rf montecarlo
|
||||
rm -rf geom
|
||||
rm -rf proof
|
||||
rm -rf sql
|
||||
rm -rf misc
|
||||
rm -rf test
|
||||
rm -rf tmva
|
||||
rm -rf tutorials
|
||||
rm -rf rootx
|
||||
|
||||
mkdir -p share
|
||||
mv man share
|
||||
|
||||
mkdir -p "${PREFIX}"
|
||||
cp -rv * "${PREFIX}"
|
||||
mkdir -p "${DOCDIR}"
|
||||
mv "${PREFIX}/LICENSE" "${DOCDIR}"
|
||||
mv "${PREFIX}/README" "${DOCDIR}"
|
||||
}
|
||||
|
||||
em.add_to_family 'Compiler'
|
||||
em.set_runtime_dependencies "${COMPILER}"
|
||||
em.set_build_dependencies "${COMPILER}"
|
||||
em.make_all
|
||||
@@ -1,71 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
source "$(dirname $0)/../lib/libem.bash"
|
||||
|
||||
declare -rx AR=ar
|
||||
|
||||
function em.configure() {
|
||||
BLAS_PREFIX=$OPENBLAS_PREFIX
|
||||
LAPACK_PREFIX=$OPENBLAS_PREFIX
|
||||
|
||||
PARMETIS_INCLUDE_DIRS=$PARMETIS_PREFIX/include
|
||||
PARMETIS_LIBRARIES=$PARMETIS_PREFIX/lib/libparmetis.a
|
||||
|
||||
METIS_INCLUDE_DIRS=$PARMETIS_PREFIX/include/metis
|
||||
METIS_LIBRARIES=$PARMETIS_PREFIX/lib/libmetis.a
|
||||
|
||||
BLAS_INCLUDE_DIRS="$BLAS_PREFIX/include"
|
||||
BLAS_LIBRARY_DIRS="$BLAS_PREFIX/lib"
|
||||
BLAS_LIBRARY_NAMES="openblas"
|
||||
|
||||
LAPACK_INCLUDE_DIRS="$LAPACK_PREFIX/include"
|
||||
LAPACK_LIBRARY_DIRS="$LAPACK_PREFIX/lib"
|
||||
LAPACK_LIBRARY_NAMES="openblas"
|
||||
|
||||
cmake \
|
||||
--prefix=$PREFIX \
|
||||
-DCMAKE_INSTALL_PREFIX:PATH=$PREFIX \
|
||||
-DCMAKE_CXX_FLAGS:STRING="-DMPICH_IGNORE_CXX_SEEK -fPIC -fpermissive" \
|
||||
-DCMAKE_C_FLAGS:STRING="-DMPICH_IGNORE_CXX_SEEK -fPIC" \
|
||||
-DCMAKE_Fortran_FLAGS:STRING="-fPIC" \
|
||||
-D CMAKE_BUILD_TYPE:STRING=DEBUG \
|
||||
-D TPL_ENABLE_QT:BOOL=OFF \
|
||||
-D TPL_ENABLE_MPI:BOOL=ON \
|
||||
-D TPL_ENABLE_BLAS:BOOL=ON \
|
||||
-D TPL_ENABLE_LAPACK:BOOL=ON \
|
||||
-D TPL_ENABLE_METIS:BOOL=ON \
|
||||
-D TPL_ENABLE_ParMETIS:BOOL=ON \
|
||||
-D BLAS_LIBRARY_DIRS:PATH="$BLAS_LIBRARY_DIRS" \
|
||||
-D BLAS_INCLUDE_DIRS:PATH="$BLAS_LIBRARY_DIRS" \
|
||||
-D BLAS_LIBRARY_NAMES:STRING="$BLAS_LIBRARY_NAMES" \
|
||||
-D LAPACK_LIBRARY_DIRS:PATH="$LAPACK_LIBRARY_DIRS" \
|
||||
-D LAPACK_INCLUDE_DIRS:PATH="$LAPACK_INCLUDE_DIRS" \
|
||||
-D LAPACK_LIBRARY_NAMES:STRING="$LAPACK_LIBRARY_NAMES" \
|
||||
-D TPL_METIS_INCLUDE_DIRS:PATH=$METIS_INCLUDE_DIRS \
|
||||
-D TPL_METIS_LIBRARIES:PATH=$METIS_LIBRARIES \
|
||||
-D TPL_ParMETIS_INCLUDE_DIRS:PATH=$PARMETIS_INCLUDE_DIRS \
|
||||
-D TPL_ParMETIS_LIBRARIES:PATH=$PARMETIS_LIBRARIES \
|
||||
-D Trilinos_ENABLE_Amesos:BOOL=ON \
|
||||
-D Trilinos_ENABLE_Amesos2:BOOL=ON \
|
||||
-D Trilinos_ENABLE_AztecOO:BOOL=ON \
|
||||
-D Trilinos_ENABLE_Belos:BOOL=ON \
|
||||
-D Trilinos_ENABLE_Epetra:BOOL=ON \
|
||||
-D Trilinos_ENABLE_EpetraExt:BOOL=ON \
|
||||
-D Trilinos_ENABLE_Galeri:BOOL=ON \
|
||||
-D Trilinos_ENABLE_Ifpack:BOOL=ON \
|
||||
-D Trilinos_ENABLE_Isorropia:BOOL=ON \
|
||||
-D Trilinos_ENABLE_ML:BOOL=ON \
|
||||
-D Trilinos_ENABLE_NOX:BOOL=ON \
|
||||
-D Trilinos_ENABLE_Optika:BOOL=OFF \
|
||||
-D Trilinos_ENABLE_Teuchos:BOOL=ON \
|
||||
-D Trilinos_ENABLE_Tpetra:BOOL=ON \
|
||||
-D Trilinos_ENABLE_TESTS:BOOL=OFF \
|
||||
"${MODULE_SRCDIR}" || exit 1
|
||||
}
|
||||
|
||||
em.add_to_family 'MPI'
|
||||
em.set_runtime_dependencies "${COMPILER}" "${MPI}" 'OpenBLAS' 'parmetis'
|
||||
em.set_build_dependencies 'cmake' "${COMPILER}" "${MPI}" 'OpenBLAS' 'parmetis'
|
||||
em.set_docfiles Copyright.txt LICENSE README RELEASE_NOTES
|
||||
em.make_all
|
||||
|
||||
@@ -1,33 +0,0 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Notes:
|
||||
# On Mac OS X VTK does not compile out of the box with self-compiled GCC.
|
||||
# grep vor "long-branch" and "pascal-string" in the cmake configuration
|
||||
# and remove these strings.
|
||||
#
|
||||
|
||||
source "$(dirname $0)/../lib/libem.bash"
|
||||
|
||||
case ${OS} in
|
||||
Darwin )
|
||||
em.pre_configure() {
|
||||
# for the time being: on Mac OS X we need GL/gl.h from MacPorts:
|
||||
append_path C_INLCUDE_PATH '/opt/local/include'
|
||||
append_path CPLUS_INCLUDE_PATH '/opt/local/include'
|
||||
}
|
||||
;;
|
||||
esac
|
||||
|
||||
function em.configure() {
|
||||
cmake -DCMAKE_INSTALL_PREFIX:PATH=$PREFIX \
|
||||
-DVTK_INSTALL_INCLUDE_DIR:PATH=include \
|
||||
-DVTK_INSTALL_LIB_DIR:PATH=lib \
|
||||
-DVTK_USE_COCOA:BOOL=OFF \
|
||||
"${MODULE_SRCDIR}"
|
||||
}
|
||||
|
||||
em.add_to_family 'Compiler'
|
||||
em.set_runtime_dependencies "${COMPILER}"
|
||||
em.set_build_dependencies 'cmake' "${COMPILER}"
|
||||
em.make_all
|
||||
|
||||
Reference in New Issue
Block a user