]> https://gitweb.dealii.org/ - candi.git/commitdiff
Project CMAKE: added initial support for rhel7
authorUwe Köcher <koecher@hsu-hamburg.de>
Wed, 29 Oct 2014 20:43:57 +0000 (21:43 +0100)
committerUwe Köcher <koecher@hsu-hamburg.de>
Wed, 29 Oct 2014 20:43:57 +0000 (21:43 +0100)
 Changes to be committed:
new file:   cmake/packages/cmake.package
new file:   cmake/platforms/supported/rhel7.platform
new file:   project-cmake.cfg

cmake/packages/cmake.package [new file with mode: 0644]
cmake/platforms/supported/rhel7.platform [new file with mode: 0644]
project-cmake.cfg [new file with mode: 0644]

diff --git a/cmake/packages/cmake.package b/cmake/packages/cmake.package
new file mode 100644 (file)
index 0000000..6acb148
--- /dev/null
@@ -0,0 +1,38 @@
+VERSION=${CMAKEVERSION}
+NAME=cmake-${VERSION}
+SOURCE=http://www.cmake.org/files/v2.8/
+PACKING=.tar.gz
+BUILDCHAIN=cmake
+CHECKSUM=ignore
+if [ ${VERSION} = 2.8.12.2 ]; then
+    CHECKSUM=17c6513483d23590cbce6957ec6d1e66
+fi
+
+MODULEFILE_PATH=${INSTALL_PATH}/conf/modulefiles/cmake
+CONFIG_FILE=${MODULEFILE_PATH}/${VERSION}
+
+# **********************************************************************************
+package_specific_conf() {
+    # Generate modulefile
+    mkdir -p ${MODULEFILE_PATH}
+    rm -f $CONFIG_FILE
+    echo "#%Module 1.0
+#
+# ${NAME}
+#
+conflict cmake
+
+prepend-path           PATH            ${INSTALL_PATH}/bin
+" >> $CONFIG_FILE
+
+    echo
+    echo "${NAME} has now been installed in"
+    echo
+    cecho ${GOOD} "    ${INSTALL_PATH}"
+    echo
+    echo "To update your environment variables, use the created modulefile:"
+    echo
+    cecho ${GOOD} "    $CONFIG_FILE"
+    echo
+}
+
diff --git a/cmake/platforms/supported/rhel7.platform b/cmake/platforms/supported/rhel7.platform
new file mode 100644 (file)
index 0000000..6d114ff
--- /dev/null
@@ -0,0 +1,22 @@
+# RHEL 7
+
+# This build script assumes that you have several packages already
+# installed via CentOS's yum using the following commands:
+#
+# su -c 'yum groupinstall -y "Development Tools"'
+# 
+# su -c 'yum install -y cmake gcc-c++'
+# 
+# Set the compiler
+#   export CC=/usr/bin/gcc
+#   export CXX=/usr/bin/g++
+#   export FC=/usr/bin/gfortran
+#   export FF=/usr/bin/gfortran
+##
+
+#
+# Define the packages this platform needs
+PACKAGES=(
+once:cmake
+)
+
diff --git a/project-cmake.cfg b/project-cmake.cfg
new file mode 100644 (file)
index 0000000..caea508
--- /dev/null
@@ -0,0 +1,27 @@
+# Global configuration variables go here. You will want to tweak this
+# file to suit your needs. If you want to keep local changes that are
+# not overwritten by repository updates, those can be written
+# to local.cfg instead (entries there will override those in this file).
+
+# Meta-project to build
+PROJECT=cmake
+
+# for cmake 2.8 so far...
+CMAKEVERSION=2.8.12.2
+
+# How many processes would you like to build using?
+PROCS=1
+
+PREFIX_PATH=~/apps/candi
+
+# Where do you want the compiled software installed?
+INSTALL_PATH=${PREFIX_PATH}/${PROJECT}/${CMAKEVERSION}
+
+# Where do you want the downloaded source files to go?
+DOWNLOAD_PATH=${PREFIX_PATH}/src
+
+# Where do you want to unpack source files to go?
+UNPACK_PATH=${PREFIX_PATH}/unpack
+
+# Where do you want the build files to go?
+BUILD_PATH=${INSTALL_PATH}-build

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.