]> https://gitweb.dealii.org/ - candi.git/commitdiff
linux-devel-suite: new project for genereal development tools on linux
authorUwe Köcher <koecher@hsu-hamburg.de>
Mon, 22 Jun 2015 12:20:35 +0000 (14:20 +0200)
committerUwe Köcher <koecher@hsu-hamburg.de>
Mon, 22 Jun 2015 12:20:35 +0000 (14:20 +0200)
linux-devel-suite/packages/bzip2.package [new file with mode: 0644]
linux-devel-suite/packages/gmp.package [new file with mode: 0644]
linux-devel-suite/packages/linux-devel-suite.package [new file with mode: 0644]
linux-devel-suite/packages/mpc.package [new file with mode: 0644]
linux-devel-suite/packages/mpfr.package [new file with mode: 0644]
linux-devel-suite/packages/zlib.package [new file with mode: 0644]
linux-devel-suite/patches/bzip2-1.0.6.patch [new file with mode: 0644]
linux-devel-suite/platforms/supported/rhel7.platform [new file with mode: 0644]
project-linux-devel-suite.cfg [new file with mode: 0644]

diff --git a/linux-devel-suite/packages/bzip2.package b/linux-devel-suite/packages/bzip2.package
new file mode 100644 (file)
index 0000000..1106b46
--- /dev/null
@@ -0,0 +1,21 @@
+NAME=bzip2-1.0.6
+SOURCE=http://www.bzip.org/1.0.6/
+PACKING=.tar.gz
+DOWNLOADER=curl
+CHECKSUM=00b516f4704d4a7cb50a1d97e6e8e15b
+BUILDCHAIN=custom
+
+package_specific_build () {
+    cp -rf ${UNPACK_PATH}/${NAME}/* .
+  
+    # patch the Makefile 
+    patch -p1 --forward < ${ORIG_DIR}/${PROJECT}/patches/bzip2-1.0.6.patch || true
+    
+    # compile bzip2
+    make install
+}
+
+package_specific_register () {
+    export BZIP2_INCLUDE=${INSTALL_PATH}/include
+    export BZIP2_LIBPATH=${INSTALL_PATH}/lib
+}
diff --git a/linux-devel-suite/packages/gmp.package b/linux-devel-suite/packages/gmp.package
new file mode 100644 (file)
index 0000000..9080a7e
--- /dev/null
@@ -0,0 +1,7 @@
+VERSION=6.0.0a
+NAME=gmp-${VERSION}
+EXTRACTSTO=gmp-6.0.0
+PACKING=.tar.bz2
+SOURCE=https://gmplib.org/download/gmp/
+CHECKSUM=b7ff2d88cae7f8085bd5006096eed470
+BUILDCHAIN=autotools
diff --git a/linux-devel-suite/packages/linux-devel-suite.package b/linux-devel-suite/packages/linux-devel-suite.package
new file mode 100644 (file)
index 0000000..d6d0c30
--- /dev/null
@@ -0,0 +1,48 @@
+NAME=linux-devel-suite
+VERSION=1.0.0
+BUILDCHAIN=ignore
+
+MODULEFILE_PATH=${INSTALL_PATH}/share/modulefiles/${NAME}/
+CONFIG_FILE=${MODULEFILE_PATH}/${VERSION}
+CURRENT_MODULES=$(echo ${LOADEDMODULES} | sed 's/:/\ /')
+
+# **********************************************************************************
+package_specific_conf() {
+    # Generate modulefile
+
+    mkdir -p ${MODULEFILE_PATH}
+    rm -f $CONFIG_FILE
+    echo "#%Module 1.0
+#
+#  linux-devel-suite module for use with 'environment-modules' package:
+#
+
+#module load ${CURRENT_MODULES}
+
+# Define prefix so PATH and MANPATH can be updated.
+setenv        INSTALL_PATH      ${INSTALL_PATH}
+prepend-path  PATH               ${INSTALL_PATH}/bin
+prepend-path  LD_LIBRARY_PATH    ${INSTALL_PATH}/lib
+prepend-path  DYLD_LIBRARY_PATH  ${INSTALL_PATH}/lib
+prepend-path  MANPATH            ${INSTALL_PATH}/share/man
+prepend-path  CPLUS_INCLUDE_PATH ${INSTALL_PATH}/include
+" >> $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
+    
+    echo "To update your environment variables, run the following command:"
+    echo
+    cecho ${GOOD} "    source $CONFIG_FILE"
+    echo
+    echo "For future reference, we recommend that you add this command to your"
+    echo "configuration (.bashrc, .profile or similar)."
+    echo
+}
diff --git a/linux-devel-suite/packages/mpc.package b/linux-devel-suite/packages/mpc.package
new file mode 100644 (file)
index 0000000..b75dd65
--- /dev/null
@@ -0,0 +1,7 @@
+VERSION=1.0.3
+NAME=mpc-${VERSION}
+PACKING=.tar.gz
+DOWNLOADER=curl
+SOURCE=ftp://ftp.gnu.org/gnu/mpc/
+CHECKSUM=d6a1d5f8ddea3abd2cc3e98f58352d26
+BUILDCHAIN=autotools
diff --git a/linux-devel-suite/packages/mpfr.package b/linux-devel-suite/packages/mpfr.package
new file mode 100644 (file)
index 0000000..a37087d
--- /dev/null
@@ -0,0 +1,6 @@
+VERSION=3.1.3
+NAME=mpfr-${VERSION}
+PACKING=.tar.bz2
+SOURCE=http://www.mpfr.org/mpfr-current/
+CHECKSUM=5fdfa3cfa5c86514ee4a241a1affa138
+BUILDCHAIN=autotools
diff --git a/linux-devel-suite/packages/zlib.package b/linux-devel-suite/packages/zlib.package
new file mode 100644 (file)
index 0000000..e3dd47d
--- /dev/null
@@ -0,0 +1,16 @@
+VERSION=1.2.8
+NAME=zlib-${VERSION}
+SOURCE=http://zlib.net/
+PACKING=.tar.gz
+CHECKSUM=44d667c142d7cda120332623eab69f40
+BUILDCHAIN=custom
+
+package_specific_build () {
+    cp -rf ${UNPACK_PATH}/${NAME}/* .
+    ./configure --prefix=${INSTALL_PATH}
+    make install
+}
+
+package_specific_register () {
+    export ZLIB_DIR=${INSTALL_PATH}
+}
diff --git a/linux-devel-suite/patches/bzip2-1.0.6.patch b/linux-devel-suite/patches/bzip2-1.0.6.patch
new file mode 100644 (file)
index 0000000..6257c72
--- /dev/null
@@ -0,0 +1,32 @@
+diff -u -r -N bzip2-1.0.6-origin/Makefile bzip2-1.0.6/Makefile
+--- bzip2-1.0.6-origin/Makefile        2015-06-11 10:00:55.410362529 +0200
++++ bzip2-1.0.6/Makefile       2015-06-22 12:52:50.882578523 +0200
+@@ -11,20 +11,25 @@
+ # This program is released under the terms of the license contained
+ # in the file LICENSE.
+ # ------------------------------------------------------------------
++# 
++# This file has been modified by Bruno Turcksin to be used by candi (2015).
++# This file has been modified by Uwe Köcher to be used by candi (2015).
++#
+ SHELL=/bin/sh
+ # To assist in cross-compiling
+-CC=gcc
++#CC=gcc
+ AR=ar
+ RANLIB=ranlib
+-LDFLAGS=
++#LDFLAGS=
+ BIGFILES=-D_FILE_OFFSET_BITS=64
+ CFLAGS=-Wall -Winline -O2 -g $(BIGFILES)
+ # Where you want it installed when you do 'make install'
+-PREFIX=/usr/local
++#PREFIX=/usr/local
++PREFIX=${INSTALL_PATH}
+ OBJS= blocksort.o  \
diff --git a/linux-devel-suite/platforms/supported/rhel7.platform b/linux-devel-suite/platforms/supported/rhel7.platform
new file mode 100644 (file)
index 0000000..76e41a9
--- /dev/null
@@ -0,0 +1,28 @@
+# RHEL 7
+
+# Install common packages for linux clusters.
+# This build script assumes that you have several packages already
+# installed via RHEL's yum using the following command:
+#
+# su -c 'yum install -y \
+# @development-tools gcc-c++ \
+# glibc glibc-devel '
+# 
+# Provided packages:
+#  bzip2
+#  gmp, mpfr, mpc
+#  
+# gzip
+#
+##
+
+# Define the packages this platform needs
+PACKAGES=(
+once:bzip2
+once:zlib
+once:gmp
+once:mpfr
+once:mpc
+skip:linux-devel-suite
+)
+
diff --git a/project-linux-devel-suite.cfg b/project-linux-devel-suite.cfg
new file mode 100644 (file)
index 0000000..331df72
--- /dev/null
@@ -0,0 +1,24 @@
+# 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=linux-devel-suite
+
+# How many processes would you like to build using?
+PROCS=1
+
+PREFIX_PATH=~/apps/candi
+
+# 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=${PREFIX_PATH}/${PROJECT}-build
+
+# Where do you want the compiled software installed?
+INSTALL_PATH=${PREFIX_PATH}/${PROJECT}

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.