all buildblocks moved one level up
This commit is contained in:
70
Compiler/root/build
Executable file
70
Compiler/root/build
Executable file
@@ -0,0 +1,70 @@
|
||||
#!/usr/bin/env modbuild
|
||||
|
||||
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
|
||||
|
||||
pbuild::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
|
||||
}
|
||||
|
||||
pbuild::build() {
|
||||
make -j 4
|
||||
}
|
||||
|
||||
pbuild::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}"
|
||||
}
|
||||
|
||||
pbuild::add_to_group 'Compiler'
|
||||
pbuild::set_runtime_dependencies "${COMPILER}"
|
||||
pbuild::set_build_dependencies "${COMPILER}"
|
||||
pbuild::make_all
|
||||
16
Compiler/root/modulefile
Normal file
16
Compiler/root/modulefile
Normal file
@@ -0,0 +1,16 @@
|
||||
#%Module1.0
|
||||
|
||||
set whatis "CERN root"
|
||||
set url "http://root.cern.ch/"
|
||||
set license "GNU LGPL v2"
|
||||
set maintainer "Achim Gsell <achim.gsell@psi.ch>"
|
||||
set help "
|
||||
ROOT is an object-oriented framework aimed at solving the data analysis
|
||||
challenges of high-energy physics. There are two key words in this
|
||||
definition, object oriented and framework. First, we explain what we
|
||||
mean by a framework and then why it is an object-oriented framework.
|
||||
"
|
||||
|
||||
source $env(PSI_LIBMODULES)
|
||||
|
||||
setenv ROOTSYS $PREFIX
|
||||
Reference in New Issue
Block a user