Skip to content

Commit

Permalink
Add ups directory to make it easier to use eups for xrootd builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
abh3 committed Jul 24, 2017
1 parent 66162f3 commit c7d85d2
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
37 changes: 37 additions & 0 deletions ups/eupspkg.cfg.sh
@@ -0,0 +1,37 @@
# EupsPkg config file. Sourced by 'eupspkg'

# Breaks on Darwin w/o this
export LANG=C

PKGDIR=$PWD
BUILDDIR=$PWD/../xrootd-build

config()
{
rm -rf ${BUILDDIR}
mkdir ${BUILDDIR}
cd ${BUILDDIR}
cmake ${PKGDIR} -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=${PREFIX} -DENABLE_PERL=FALSE
}

build()
{
cd ${BUILDDIR}
default_build
}

install()
{
cd ${BUILDDIR}
make -j$NJOBS install

ARCH=`arch`
case "${ARCH}" in
x86_64) mkdir -p ${PREFIX}/lib && cd ${PREFIX}/lib && ln -s ../lib64/* . ;;
*) echo "Default behaviour for managing lib(64)/ directory" ;;
esac


cd ${PKGDIR}
install_ups
}
5 changes: 5 additions & 0 deletions ups/xrootd.table
@@ -0,0 +1,5 @@
envPrepend(PATH, ${PRODUCT_DIR}/bin)
envPrepend(LD_LIBRARY_PATH, ${PRODUCT_DIR}/lib)
envPrepend(DYLD_LIBRARY_PATH, ${PRODUCT_DIR}/lib)
envPrepend(LSST_LIBRARY_PATH, ${PRODUCT_DIR}/lib)
envPrepend(MANPATH, ${PRODUCT_DIR}/share/man)

0 comments on commit c7d85d2

Please sign in to comment.