OILS / deps / source.medo / cmark / WEDGE View on Github | oilshell.org

44 lines, 30 significant
1# Wedge definition for cmark
2#
3# Loaded by deps/wedge.sh.
4
5set -o nounset
6set -o pipefail
7set -o errexit
8
9# sourced
10WEDGE_NAME='cmark'
11WEDGE_VERSION='0.29.0'
12WEDGE_IS_ABSOLUTE=1 # TODO: try relaxing
13
14wedge-make() {
15 local src_dir=$1
16 local build_dir=$2
17 local install_dir=$3
18
19 pushd $build_dir
20
21 time cmake -DCMAKE_INSTALL_PREFIX=$install_dir $src_dir
22
23 time make
24
25 # make test
26
27 popd
28}
29
30wedge-install() {
31 local build_dir=$1
32
33 pushd $build_dir
34
35 time make install
36
37 popd
38}
39
40wedge-smoke-test() {
41 local install_dir=$1
42
43 ldd $install_dir/lib/libcmark.so.$WEDGE_VERSION
44}