root/gs3-extensions/mars-src/trunk/packages/CASCADE-MAKE/EIGEN3.sh @ 34344

Revision 34344, 1.6 KB (checked in by davidb, 6 weeks ago)

Extended to now setup/install Eigen3

  • Property svn:executable set to *
Line 
1#!/bin/bash
2
3package=eigen
4version=-3.3.7
5
6progname=$0
7
8source ../cascade-make/lib/cascade-lib.bash GEXT_MARS ../.. $*
9
10prefix=$GEXT_MARS_INSTALLED
11
12opt_run_untar $force_untar $auto_untar $package $version
13
14if [ $force_config = "1" ] ; then
15  echo "$progname: Nothing needs to be configured for $package$version"
16fi
17
18#opt_run_make $compile $package $version
19if [ $compile = "1" ] ; then
20  echo "$progname: Nothing needs to be compiled for $package$version"
21fi
22
23#opt_run_make $install $package $version "install"
24if [ $compile = "1" ] ; then
25  if [ ! -d "$GEXT_MARS_INSTALLED/include" ] ; then
26      echo "Making directory: $GEXT_MARS_INSTALLED/include"
27      mkdir "$GEXT_MARS_INSTALLED/include"
28  fi
29
30  echo "Installing header files to $GEXT_MARS_INSTALLED/included/"
31  /bin/cp -r "$package$version/Eigen" "$GEXT_MARS_INSTALLED/include/"
32
33  if [ ! -d "$GEXT_MARS_INSTALLED/pkgconfig" ] ; then
34      echo "Making directory: $GEXT_MARS_INSTALLED/pkgconfig"
35      mkdir "$GEXT_MARS_INSTALLED/pkgconfig"
36  fi
37 
38  CMAKE_INSTALL_PREFIX="$prefix"
39  EIGEN_VERSION_NUMBER="${version-}"
40  INCLUDE_INSTALL_DIR="include"
41
42  echo "Installing $GEXT_MARS_INSTALLED/pkgconfig/eigen3.pc"
43  cat "$package$version/eigen3.pc.in" \
44    | sed "s%@CMAKE_INSTALL_PREFIX@%$CMAKE_INSTALL_PREFIX%g" \
45    | sed "s%@EIGEN_VERSION_NUMBER@%$EIGEN_VERSION_NUMBER%g" \
46    | sed "s%@INCLUDE_INSTALL_DIR@%$INCLUDE_INSTALL_DIR%g" \
47    > "$GEXT_MARS_INSTALLED/pkgconfig/eigen3.pc"
48
49fi
50
51
52opt_run_make $clean $package $version "clean"
53opt_run_make $distclean $package $version "distclean"
54
55opt_run_tarclean $tarclean $package $version
Note: See TracBrowser for help on using the browser.