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

Revision 26862, 1.8 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=enblend
4version=-git-jan2013
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          -D ENABLE_GPU:BOOL=ON \
32          -D ENABLE_IMAGECACHE:BOOL=OFF \
33          -D ENABLE_OPENMP:BOOL=ON \
34          -D CPACK_BINARY_DEB:BOOL=ON \
35          -D CPACK_BINARY_NSIS:BOOL=OFF \
36          -D CPACK_BINARY_RPM:BOOL=OFF \
37          -D CPACK_BINARY_STGZ:BOOL=OFF \
38          -D CPACK_BINARY_TBZ2:BOOL=OFF \
39          -D CPACK_BINARY_TGZ:BOOL=OFF \
40          -D CPACK_BINARY_TZ:BOOL=OFF \
41          -D CMAKE_BUILD_TYPE=Release \
42          ..;
43    PKG_CONFIG_PATH=$prefix/lib/pkgconfig:${PKG_CONFIG_PATH};
44    export PKG_CONFIG_PATH;
45   )
46  if [ $? != 0 ] ; then
47      echo "      Error encountered running *configure* stage of $progname"
48      exit 1
49  fi
50  echo "[popd]"
51else
52  if [ $auto_config = "1" ] ; then
53    echo "Found top-level for ${progname%.*} => no need to run configure/initialize CMake"
54  fi
55fi
56
57opt_run_cmake $compile $package $version "release"
58opt_run_cmake $install $package $version "release" "install"
59opt_run_cmake $clean $package $version "release" "clean"
60opt_run_cmake $distclean $package $version "release" "distclean"
61
62opt_run_tarclean $tarclean $package $version
63
Note: See TracBrowser for help on using the browser.