-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sh
executable file
·52 lines (50 loc) · 1.58 KB
/
build.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
cd BUILD_DIR
export CFLAGS='-I${PREFIX}/include -O2 -Wall --pedantic -Wno-comment -Wno-long-long -g -ffloat-store -fPIC'
export CXXFLAGS='-I${PREFIX}/include -O2 -Wall --pedantic -Wno-comment -Wno-long-long -g -ffloat-store -fPIC'
export CPPFLAGS="-I${PREFIX}/include"
export LDFLAGS="-L${PREFIX}/lib"
export PYTHON="python2.7"
export PYTHON_DIR="-I${PREFIX}/include/${PYTHON}"
export PYTHON_INC="-I${PREFIX}/include/${PYTHON}"
export CLHEP="CLHEP"
export HOOPS="hoops_1.1"
export PIL="ape_2.8"
export CFITSIO="cfitsio"
export READLINE="readline"
export CPPUNIT="cppunit"
export FFTW="fftw3"
export XERCES="xerces-c"
./configure --prefix=${PREFIX} --exec_prefix=${PREFIX} \
LDFLAGS="-Wl,-rpath,${PREFIX}/lib -L${PREFIX}/lib" \
EXT_EXEC_PFX=${PREFIX} \
EXT_BLD_EXEC_PFX=${PREFIX} \
HD_EXEC_PFX=${PREFIX} \
HD_TOP_EXEC_PFX=${PREFIX} \
HC_BLD_EXEC_PFX=${PREFIX} \
HC_EXEC_PFX=${PREFIX} \
CLHEP=${CLHEP} \
HOOPS=${HOOPS} \
PIL=${PIL} \
CFITSIO=${CFITSIO} \
READLINE=${READLINE} \
PYTHON_INC="-I${PREFIX}/include/${PYTHON}" \
CPPUNIT=${CPPUNIT} \
FFTW=${FFTW} \
XERCES=${XERCES}
./hmake \
EXT_EXEC_PFX=${PREFIX} \
EXT_BLD_EXEC_PFX=${PREFIX} \
HD_EXEC_PFX=${PREFIX} \
HD_TOP_EXEC_PFX=${PREFIX} \
HC_BLD_EXEC_PFX=${PREFIX} \
HC_EXEC_PFX=${PREFIX} \
CLHEP=${CLHEP} \
HOOPS=${HOOPS} \
PIL=${PIL} \
CFITSIO=${CFITSIO} \
READLINE=${READLINE} \
PYTHON_INC="-I${PREFIX}/include/${PYTHON}" \
CPPUNIT=${CPPUNIT} \
FFTW=${FFTW} \
XERCES=${XERCES}
./hmake install HD_EXEC_PFX=${PREFIX} HD_TOP_EXEC_PFX=${PREFIX}