source: gs3-extensions/hugin/trunk/src/packages/CASCADE-MAKE/HUGIN.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.4 KB
Line 
1#!/bin/bash
2
3package=hugin
4version=-2012.0.0
5
6progname=$0
7
8source ../cascade-make/lib/cascade-lib.bash GEXT_HUGIN ../.. $*
9
10prefix=$GEXTHUGIN_INSTALLED
11
12# Whether force_config is set for this package depends on CMake test
13# to see if 'release' directory has been created or no
14if [ $auto_config = "1" ] ; then
15 if [ ! -d $package$version/release ]; then
16 force_config=1
17 fi
18fi
19
20opt_run_untar $force_untar $auto_untar $package $version .tar.bz2
21
22if [ $force_config = "1" ] ; then
23 echo "[pushd $package$version]"
24 ( cd $package$version ; \
25 if [ ! -d release ] ; then \
26 echo "Creating 'release' directory" ; \
27 mkdir release ; \
28 fi ; \
29 cd release ; \
30 LDFLAGS="$LDFLAGS -lgfortran -lutil" CFLAGS="$CFLAGS -lutil" cmake \
31 -D CMAKE_INSTALL_PREFIX=$prefix \
32 -D ENABLE_LAPACK=YES \
33 -D BUILD_HSI:BOOL=OFF \
34 ..;
35 )
36 if [ $? != 0 ] ; then
37 echo " Error encountered running *configure* stage of $progname"
38 exit 1
39 fi
40 echo "[popd]"
41else
42 if [ $auto_config = "1" ] ; then
43 echo "Found top-level for ${progname%.*} => no need to run configure/initialize CMake"
44 fi
45fi
46
47opt_run_cmake $compile $package $version "release"
48opt_run_cmake $install $package $version "release" "install"
49opt_run_cmake $clean $package $version "release" "clean"
50opt_run_cmake $distclean $package $version "release" "distclean"
51
52opt_run_tarclean $tarclean $package $version
53
Note: See TracBrowser for help on using the repository browser.