Last change
on this file since 26862 was 26862, checked in by davidb, 11 years ago |
All the various packages hugin needs to compile
|
-
Property svn:executable
set to
*
|
File size:
1.1 KB
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 |
|
---|
3 | package=lapack
|
---|
4 | version=-3.4.2
|
---|
5 |
|
---|
6 | progname=$0
|
---|
7 |
|
---|
8 | source ../cascade-make/lib/cascade-lib.bash GEXT_HUGIN ../.. $*
|
---|
9 |
|
---|
10 | prefix=$GEXTHUGIN_INSTALLED
|
---|
11 |
|
---|
12 | opt_run_untar $force_untar $auto_untar $package $version
|
---|
13 |
|
---|
14 | if [ $force_config = "1" ] ; then
|
---|
15 | echo "[pushd $package$version]"
|
---|
16 | ( cd $package$version ; \
|
---|
17 | if [ ! -d release ] ; then \
|
---|
18 | echo "Creating 'release' directory" ; \
|
---|
19 | mkdir release ; \
|
---|
20 | fi ; \
|
---|
21 | #LAPACK has an unusual CMAKE. Which breakes the OPT_MAKE if it doesn't run it in the root dir.
|
---|
22 | cmake -D CMAKE_INSTALL_PREFIX=$prefix \
|
---|
23 | -D CMAKE_Fortran_FLAGS=-fPIC \
|
---|
24 | .;
|
---|
25 | )
|
---|
26 | if [ $? != 0 ] ; then
|
---|
27 | echo " Error encountered running *configure* stage of $progname"
|
---|
28 | exit 1
|
---|
29 | fi
|
---|
30 | echo "[popd]"
|
---|
31 | else
|
---|
32 | if [ $auto_config = "1" ] ; then
|
---|
33 | echo "Found top-level for ${progname%.*} => no need to run configure/initialize CMake"
|
---|
34 | fi
|
---|
35 | fi
|
---|
36 | opt_run_make $compile $package $version
|
---|
37 | opt_run_make $install $package $version "install"
|
---|
38 | opt_run_make $clean $package $version "clean"
|
---|
39 | opt_run_make $distclean $package $version "distclean"
|
---|
40 |
|
---|
41 | opt_run_tarclean $tarclean $package $version
|
---|
42 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.