forked from alisw/alidist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
flpsuitedevenv.sh
46 lines (43 loc) · 905 Bytes
/
flpsuitedevenv.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
40
41
42
43
44
45
46
package: FLPSuiteDevEnv
version: "1.0.0"
tag: "FLPSuiteDevEnv-1.0.0"
requires:
- abseil
- alibuild-recipe-tools
- autotools
- bz2
- capstone
- CMake
- defaults-release
- double-conversion
- flatbuffers
- FreeType
- GMP
- googlebenchmark
- googletest
- libffi
- MPFR
- ms_gsl
- O2-customization
- OpenSSL
- Python-modules-list
- RapidJSON
- re2
- sqlite
valid_defaults:
- o2
- o2-dataflow
---
# Modulefile
MODULEDIR="$INSTALLROOT/etc/modulefiles"
MODULEFILE="$MODULEDIR/$PKGNAME"
mkdir -p etc/modulefiles
alibuild-generate-module --bin --lib > etc/modulefiles/$PKGNAME
cat << EOF >> etc/modulefiles/$PKGNAME
prepend-path ROOT_INCLUDE_PATH \$PKG_ROOT/include
EOF
mkdir -p $INSTALLROOT/etc/modulefiles && rsync -a --delete etc/modulefiles/ $INSTALLROOT/etc/modulefiles
# External RPM dependencies
cat > $INSTALLROOT/.rpm-extra-deps <<EoF
freeglut-devel
EoF