forked from alisw/alidist
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfmt.sh
More file actions
27 lines (24 loc) · 644 Bytes
/
fmt.sh
File metadata and controls
27 lines (24 loc) · 644 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: fmt
version: "%(tag_basename)s"
tag: 9.1.0
source: https://github.com/fmtlib/fmt
requires:
- "GCC-Toolchain:(?!osx)"
build_requires:
- CMake
- alibuild-recipe-tools
prepend_path:
ROOT_INCLUDE_PATH: "$FMT_ROOT/include"
---
#!/bin/bash -e
cmake $SOURCEDIR -DCMAKE_INSTALL_PREFIX=$INSTALLROOT -DFMT_TEST=OFF -DCMAKE_INSTALL_LIBDIR=lib -DBUILD_SHARED_LIBS=ON
make ${JOBS+-j $JOBS}
make install
# Modulefile
MODULEDIR="$INSTALLROOT/etc/modulefiles"
MODULEFILE="$MODULEDIR/$PKGNAME"
mkdir -p "$MODULEDIR"
alibuild-generate-module --lib > $MODULEFILE
cat << EOF >> $MODULEFILE
prepend-path ROOT_INCLUDE_PATH \$PKG_ROOT/include
EOF