root/gs3-extensions/hugin/trunk/src/packages/CASCADE-MAKE/VIGRA.sh @ 26862

Revision 26862, 1.3 KB (checked in by davidb, 7 years ago)

All the various packages hugin needs to compile

  • Property svn:executable set to *
Line 
1#!/bin/bash
2
3package=vigra
4version=-1.9.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
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    cmake -D CMAKE_INSTALL_PREFIX=$prefix \
31           ..;
32    PKG_CONFIG_PATH=$prefix/lib/pkgconfig:${PKG_CONFIG_PATH};
33    export PKG_CONFIG_PATH;
34   )
35  if [ $? != 0 ] ; then
36      echo "      Error encountered running *configure* stage of $progname"
37      exit 1
38  fi
39  echo "[popd]"
40else
41  if [ $auto_config = "1" ] ; then
42    echo "Found top-level for ${progname%.*} => no need to run configure/initialize CMake"
43  fi
44fi
45
46opt_run_cmake $compile $package $version "release"
47opt_run_cmake $install $package $version "release" "install"
48opt_run_cmake $clean $package $version "release" "clean"
49opt_run_cmake $distclean $package $version "release" "distclean"
50
51opt_run_tarclean $tarclean $package $version
52
Note: See TracBrowser for help on using the browser.