Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ups directory to make it easier to use eups for xrootd builds.
- Loading branch information
Showing
2 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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) |