forked from alisw/alidist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
acts.sh
39 lines (35 loc) · 1.19 KB
/
acts.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package: ACTS
version: v23.4.0
requires:
- ROOT
- pythia
build_requires:
- "GCC-Toolchain:(?!osx)"
- CMake
- boost
- Eigen3
- alibuild-recipe-tools
source: https://github.com/acts-project/acts.git
---
#!/bin/bash -ex
cmake $SOURCEDIR -DCMAKE_INSTALL_PREFIX=$INSTALLROOT \
-DCMAKE_BUILD_TYPE=$CMAKE_BUILD_TYPE \
-DCMAKE_SKIP_RPATH=TRUE \
-DACTS_BUILD_FATRAS=ON \
-DACTS_BUILD_EXAMPLES=ON \
-DACTS_BUILD_EXAMPLES_PYTHON_BINDINGS=ON \
-DACTS_BUILD_EXAMPLES_PYTHIA8=ON \
-DCMAKE_PREFIX_PATH=${PYTHIA_ROOT}
cmake --build . -- ${JOBS:+-j$JOBS} install
[[ -d $INSTALLROOT/lib64 ]] && [[ ! -d $INSTALLROOT/lib ]] && ln -sf ${INSTALLROOT}/lib64 $INSTALLROOT/lib
#ModuleFile
MODULEDIR="${INSTALLROOT}/etc/modulefiles"
MODULEFILE="${MODULEDIR}/${PKGNAME}"
mkdir -p ${MODULEDIR}
alibuild-generate-module --bin --lib > "${MODULEFILE}"
# extra environment
cat >> ${MODULEFILE} <<EOF
set ACTS_ROOT \$::env(BASEDIR)/$PKGNAME/\$version
setenv ACTS_ROOT \$ACTS_ROOT
prepend-path ROOT_INCLUDE_PATH \$ACTS_ROOT/include
EOF