From 2f86bb158c8087c1a56f1d87131ae89b2b43af58 Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Fri, 26 Feb 2016 16:58:03 +0100 Subject: [PATCH] Compiler/root/build: build with Oracle DB support; new version requires gsl --- Compiler/root/build | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/Compiler/root/build b/Compiler/root/build index 7bc97fb..8da1fa7 100755 --- a/Compiler/root/build +++ b/Compiler/root/build @@ -1,5 +1,10 @@ #!/usr/bin/env modbuild +module use Libraries + +INSTANTCLIENT_INCLUDE_DIR='/usr/include/oracle/12.1/client64' +INSTANTCLIENT_LIBRARY_DIR='/usr/lib/oracle/12.1/client64/lib' + case ${OS} in Darwin ) # cocoa doesn't work with GCC!? @@ -10,6 +15,11 @@ Darwin ) ;; esac +# enabled by default +# fftw3 +# oracle +# xml +# pbuild::configure() { "${MODULE_SRCDIR}"/configure \ --disable-asimage \ @@ -17,11 +27,13 @@ pbuild::configure() { --disable-mysql \ --disable-opengl \ --disable-python \ - --enable-fftw3 \ + --enable-mathmore \ --with-cc=${CC} \ --with-cxx=${CXX} \ --with-f77=${F77} \ --with-ld=${CXX} \ + --with-oracle-incdir=${INSTANTCLIENT_INCLUDE_DIR} \ + --with-oracle-libdir=${INSTANTCLIENT_LIBRARY_DIR} \ ${config_args} \ || exit 1 } @@ -61,8 +73,13 @@ pbuild::install() { mkdir -p "${PREFIX}" cp -rv * "${PREFIX}" mkdir -p "${DOCDIR}" - mv "${PREFIX}/LICENSE" "${DOCDIR}" - mv "${PREFIX}/README" "${DOCDIR}" + mv -f "${PREFIX}/LICENSE" "${DOCDIR}" + rm -f "${DOCDIR}/README" + mv -f "${PREFIX}/README" "${DOCDIR}" +} + +pbuild::postinstall() { + cp -av "${INSTANTCLIENT_LIBRARY_DIR}/"libocci.so* "${PREFIX}"/lib } module use unstable