forked from alisw/alidist
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcppzmq.sh
More file actions
30 lines (29 loc) · 720 Bytes
/
cppzmq.sh
File metadata and controls
30 lines (29 loc) · 720 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
package: cppzmq
version: v4.7.1
source: https://github.com/zeromq/cppzmq
requires:
- "GCC-Toolchain:(?!osx)"
- ZeroMQ
build_requires:
- "CMake"
- ninja
- alibuild-recipe-tools
---
#!/bin/sh
cd $BUILDDIR
case $ARCHITECTURE in
osx*)
[[ ! $ZEROMQ_ROOT ]] && ZEROMQ_ROOT=`brew --prefix zeromq`
;;
esac
cmake $SOURCEDIR \
-G Ninja \
-DZeroMQ_ROOT=$ZEROMQ_ROOT \
-DCPPZMQ_BUILD_TESTS=OFF \
-DCMAKE_INSTALL_PREFIX=$INSTALLROOT
ninja ${JOBS+-j $JOBS} install
# Modulefile
MODULEDIR="$INSTALLROOT/etc/modulefiles"
MODULEFILE="$MODULEDIR/$PKGNAME"
mkdir -p "$MODULEDIR"
alibuild-generate-module --lib > $MODULEFILE