6 Configure WCT source for building against a UPS products.
8 wct-configure-for-ups.sh install_directory
10 This assumes the UPS environment for the dependent products is
13 If install_directory is outside of UPS control then you can stop
16 If the install_directory is the string "ups" then the source will be
17 configured to install into $WIRECELL_FQ_DIR.
19 That may point to a pre-existing "wirecell" UPS product. If it does,
20 reusing it will install files on top of any pre-exising ones without
23 To make a fresh "wirecell" UPS produce area one can "declare" it like:
25 $ ups declare wirecell <version> \
28 -r wirecell/<version> \
29 -z /path/to/install/products \
33 You'll have to provide the wirecell.table yourself, likely by copying
34 it from an existing "wirecell" UPS product.
36 Then, the calling environment can be munged like:
38 $ setup wirecell <version> -q e14:prof
40 UPS is such a great and simple system! /s
46 install_dir="$1" ; shift
47 if [ "$install_dir" = "ups" ] ; then
48 install_dir="$WIRECELL_FQ_DIR"
51 # force to pick up GCC from PATH
54 wct_fort=${FORT:-gfortran}
55 env CC=$wct_cc CXX=$wct_cxx FC=wct_fort \
58 --with-jsoncpp="$JSONCPP_FQ_DIR" \
59 --with-jsonnet="$JSONNET_FQ_DIR" \
60 --with-eigen-include="$EIGEN_DIR/include/eigen3" \
61 --with-root="$ROOT_FQ_DIR" \
62 --with-fftw="$FFTW_FQ_DIR" \
63 --with-fftw-include="$FFTW_INC" \
64 --with-fftw-lib="$FFTW_LIBRARY" \
65 --boost-includes="$BOOST_INC" \
66 --boost-libs="$BOOST_LIB" \
68 --prefix="$install_dir"