Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Pmodules
buildblocks
Commits
2f86bb15
Commit
2f86bb15
authored
Feb 26, 2016
by
gsell
Browse files
Compiler/root/build: build with Oracle DB support; new version requires gsl
parent
1e058f71
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
3 deletions
+20
-3
Compiler/root/build
Compiler/root/build
+20
-3
No files found.
Compiler/root/build
View file @
2f86bb15
#!/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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment