forked from alisw/alidist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
xalienfs.sh
36 lines (35 loc) · 1.04 KB
/
xalienfs.sh
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
package: xalienfs
version: "%(tag_basename)s"
tag: alice/v1.0.14r1
source: https://github.com/alisw/xalienfs.git
build_requires:
- autotools
- XRootD
- SWIG
- UUID
- libperl
---
#!/bin/bash -e
[[ ! $SWIG_ROOT ]] && SWIG_LIB=`swig -swiglib`
rsync -a --delete --exclude='**/.git' --delete-excluded \
$SOURCEDIR/ ./
./bootstrap.sh
autoreconf -ivf
CXXFLAGS="$CXXFLAGS -I$XROOTD_ROOT/include -I$XROOTD_ROOT/include/xrootd/private \
${UUID_ROOT:+-I$UUID_ROOT/include -L$UUID_ROOT/lib} "
case $ARCHITECTURE in
osx*)
CXXFLAGS="$CXXFLAGS -I$(perl -MConfig -e 'print $Config{archlib}')/CORE"
;;
esac
export CXXFLAGS
./configure --prefix=$INSTALLROOT \
--with-xrootd-location=$XROOTD_ROOT \
--enable-perl-module \
--with-perl=perl \
--with-swig-inc="$SWIG_LIB" \
--enable-build-server
# May not work in multicore
make
make install INSTALLSITEARCH=$INSTALLROOT/lib/perl \
INSTALLARCHLIB=$INSTALLROOT/lib/perl