all buildblocks moved one level up

This commit is contained in:
2015-10-14 18:20:36 +02:00
parent 75832ca05a
commit 0a9fefd921
134 changed files with 0 additions and 0 deletions

26
Programming/gcc/build Executable file
View File

@@ -0,0 +1,26 @@
#!/usr/bin/env modbuild
pbuild::configure() {
"${MODULE_SRCDIR}"/configure \
--prefix="${PREFIX}" \
--enable-languages=c,c++,objc,obj-c++,lto,fortran \
--with-gmp="${GMP_PREFIX}" \
--with-mpfr="${MPFR_PREFIX}" \
--with-mpc="${MPC_PREFIX}" \
--enable-lto \
--disable-multilib \
--with-pkgversion="PSI Environment Module" \
|| exit 1
}
# use system gcc to compile
declare -rx CC=gcc
declare -rx CXX=g++
module use 'Libraries'
pbuild::add_to_group 'Programming'
pbuild::set_build_dependencies 'gmp' 'mpfr' 'mpc'
pbuild::set_docfiles 'COPYING' 'COPYING.LIB' 'COPYING.RUNTIME' 'COPYING3' 'COPYING3.LIB' 'NEWS' 'README'
pbuild::make_all

View File

@@ -0,0 +1,39 @@
#%Module1.0
set whatis "GNU Compiler Collection"
set url "http://gcc.gnu.org/"
set license "GNU GPL v2/v3"
set maintainer "Achim Gsell <achim.gsell@psi.ch>"
set help "
The GNU Compiler Collection includes front ends for C, C++, Objective-C,
Fortran, Java, Ada, and Go, as well as libraries for these languages
(libstdc++, libgcj,...). GCC was originally written as the compiler for
the GNU operating system.
This module includes compilers for
- C/C++
- Objective-C/Objective-C++
- Fortran
"
source $env(PSI_LIBMODULES)
set-family "Compiler"
setenv CC $PREFIX/bin/gcc
setenv CXX $PREFIX/bin/g++
setenv F77 $PREFIX/bin/gfortran
setenv F90 $PREFIX/bin/gfortran
setenv FC $PREFIX/bin/gfortran
setenv FORTRAN $PREFIX/bin/gfortran
# Ubuntu hack
if { [file exist "/usr/include/x86_64-linux-gnu"] } {
append-path C_INCLUDE_PATH "/usr/include/x86_64-linux-gnu"
append-path CPLUS_INCLUDE_PATH "/usr/include/x86_64-linux-gnu"
}
if { [file exist "/usr/lib/x86_64-linux-gnu"] } {
append-path LIBRARY_PATH "/usr/lib/x86_64-linux-gnu"
}

View File

@@ -0,0 +1,3 @@
gmp/6.0.0
mpfr/3.1.3
mpc/1.0.3