forked from smuzaffar/cms.bits
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdavix.sh
More file actions
37 lines (32 loc) · 801 Bytes
/
davix.sh
File metadata and controls
37 lines (32 loc) · 801 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
package: davix
version: "%(tag_basename)s"
tag: R_0_8_9
source: https://github.com/cern-fts/davix
build_requires:
- CMake
requires:
- gcc
- libxml2
- libuuid
- curl
- Python
---
cd $SOURCEDIR
git submodule update --recursive --init
rsync -a --chmod=ug=rwX --delete --exclude '**/.git' --delete-excluded "$SOURCEDIR"/ "$BUILDDIR"/
cd $BUILDDIR
soext="so"
if [[ "$(uname -s)" == "Darwin" ]]; then
soext="dylib"
fi
rm -rf ../build; mkdir ../build; cd ../build
cmake ../davix \
-DRAPIDJSON_HAS_STDSTRING=1 \
-DCMAKE_INSTALL_PREFIX=$INSTALLROOT \
-DEMBEDDED_LIBCURL=FALSE \
-DDAVIX_TESTS=FALSE \
-DUUID_LIBRARY="${LIBUUID_ROOT}/lib64/libuuid.${soext}" \
-DCMAKE_PREFIX_PATH="${LIBXML2_ROOT};${LIBUUID_ROOT};${CURL_ROOT}" \
make VERBOSE=1 ${JOBS:+-j$JOBS}
cd ../build
make install