-
Notifications
You must be signed in to change notification settings - Fork 183
Expand file tree
/
Copy pathgbl.sh
More file actions
27 lines (25 loc) · 788 Bytes
/
gbl.sh
File metadata and controls
27 lines (25 loc) · 788 Bytes
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
package: GBL
version: "%(tag_basename)s"
tag: "V03-01-04"
source: https://github.com/alisw/general-broken-lines.git
requires:
- Eigen3
- ROOT
license: GPL-3.0
build_requires:
- alibuild-recipe-tools
- CMake
---
#!/bin/bash -e
cmake -S "${SOURCEDIR}/cpp/" -B "$BUILDDIR" \
-DCMAKE_BUILD_TYPE="$CMAKE_BUILD_TYPE" \
-DCMAKE_INSTALL_PREFIX="$INSTALLROOT" \
-DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
-DEIGEN3_INCLUDE_DIR="$EIGEN3_ROOT/include/eigen3" \
-DSUPPORT_ROOT=ON
cmake --build . -- ${JOBS:+-j$JOBS}
cmake --install .
mkdir -p etc/modulefiles
alibuild-generate-module > etc/modulefiles/$PKGNAME
MODULEDIR="$INSTALLROOT/etc/modulefiles"
mkdir -p "$MODULEDIR" && rsync -a --delete etc/modulefiles/ "$MODULEDIR"