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

Revision 34346, 1.7 KB (checked in by davidb, 6 weeks ago)

Further dir that needs to be installed as a header file area

  • 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
14#opt_run_configure $force_config $auto_config $package $version $prefix
15if [ $force_config = "1" ] ; then
16  echo "$progname: Nothing needs to be configured for $package$version"
17fi
18
19#opt_run_make $compile $package $version
20if [ $compile = "1" ] ; then
21  echo "$progname: Nothing needs to be compiled for $package$version"
22fi
23
24#opt_run_make $install $package $version "install"
25if [ $install = "1" ] ; then
26  if [ ! -d "$GEXT_MARS_INSTALLED/include" ] ; then
27      echo "Making directory: $GEXT_MARS_INSTALLED/include"
28      mkdir "$GEXT_MARS_INSTALLED/include"
29  fi
30
31  echo "Installing header files to $GEXT_MARS_INSTALLED/included/"
32  /bin/cp -r "$package$version/Eigen" "$GEXT_MARS_INSTALLED/include/"
33  /bin/cp -r "$package$version/unsupported" "$GEXT_MARS_INSTALLED/include/"
34
35  if [ ! -d "$GEXT_MARS_INSTALLED/pkgconfig" ] ; then
36      echo "Making directory: $GEXT_MARS_INSTALLED/pkgconfig"
37      mkdir "$GEXT_MARS_INSTALLED/pkgconfig"
38  fi
39 
40  CMAKE_INSTALL_PREFIX="$prefix"
41  EIGEN_VERSION_NUMBER="${version-}"
42  INCLUDE_INSTALL_DIR="include"
43
44  echo "Installing $GEXT_MARS_INSTALLED/pkgconfig/eigen3.pc"
45  cat "$package$version/eigen3.pc.in" \
46    | sed "s%@CMAKE_INSTALL_PREFIX@%$CMAKE_INSTALL_PREFIX%g" \
47    | sed "s%@EIGEN_VERSION_NUMBER@%$EIGEN_VERSION_NUMBER%g" \
48    | sed "s%@INCLUDE_INSTALL_DIR@%$INCLUDE_INSTALL_DIR%g" \
49    > "$GEXT_MARS_INSTALLED/pkgconfig/eigen3.pc"
50
51fi
52
53
54opt_run_make $clean $package $version "clean"
55opt_run_make $distclean $package $version "distclean"
56
57opt_run_tarclean $tarclean $package $version
Note: See TracBrowser for help on using the browser.