-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcppgsl.sh
More file actions
38 lines (34 loc) · 804 Bytes
/
cppgsl.sh
File metadata and controls
38 lines (34 loc) · 804 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
28
29
30
31
32
33
34
35
36
37
38
package: cppgsl
version: "%(tag_basename)s"
tag: "v3.1.0"
source: https://github.com/Microsoft/GSL.git
requires:
- "GCC-Toolchain:(?!osx)"
build_requires:
- bits-recipe-tools
- CMake
prefer_system: (?!slc5)
prefer_system_check:
---
#!/bin/bash -e
##############################
. $(bits-include CMakeRecipe)
##############################
MODULE_OPTIONS="--bin --lib"
##############################
function Prepare() {
rsync -av --delete --delete-excluded $SOURCEDIR/ ./
}
function Configure() {
mkdir build && cd build
cmake .. -DCMAKE_INSTALL_PREFIX=$INSTALLROOT -DGSL_TEST=OFF
}
function Make() {
cmake --build . -- ${CMAKE_OPTIONS} ${JOBS:+-j$JOBS}
}
function MakeInstall() {
cmake --install .
}
function PostInstall() {
echo "setenv CPPGSL_ROOT \$PKG_ROOT" >> $MODULEFILE
}