source: gs3-extensions/hugin/trunk/src/packages/CASCADE-MAKE/LAPACK.sh@ 26862

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
3package=lapack
4version=-3.4.2
5
6progname=$0
7
8source ../cascade-make/lib/cascade-lib.bash GEXT_HUGIN ../.. $*
9
10prefix=$GEXTHUGIN_INSTALLED
11
12opt_run_untar $force_untar $auto_untar $package $version
13
14if [ $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]"
31else
32 if [ $auto_config = "1" ] ; then
33 echo "Found top-level for ${progname%.*} => no need to run configure/initialize CMake"
34 fi
35fi
36opt_run_make $compile $package $version
37opt_run_make $install $package $version "install"
38opt_run_make $clean $package $version "clean"
39opt_run_make $distclean $package $version "distclean"
40
41opt_run_tarclean $tarclean $package $version
42
Note: See TracBrowser for help on using the repository browser.