#!/bin/sh
. ../build_config.sh

rm -rf tmp
mkdir tmp
cd tmp

echo "Installing headers for Eigen $EIGEN_VERSION"

curl -SLO https://bitbucket.org/eigen/eigen/get/$EIGEN_VERSION.tar.gz
tar -xf $EIGEN_VERSION.tar.gz
cd eigen-eigen*

mkdir build
cd build

cmake ../ -DCMAKE_INSTALL_PREFIX=$PREFIX
make install
cp "$PREFIX"/share/pkgconfig/eigen3.pc "$PREFIX"/lib/pkgconfig/

cd ../../..
rm -rf tmp

#!/bin/sh
. ../build_config.sh

rm -rf tmp
mkdir tmp
cd tmp

echo "Installing headers for Eigen $EIGEN_VERSION"

curl -SLO https://bitbucket.org/eigen/eigen/get/$EIGEN_VERSION.tar.gz
tar -xf $EIGEN_VERSION.tar.gz
cd eigen-eigen*

mkdir build
cd build

cmake ../ -DCMAKE_INSTALL_PREFIX=$PREFIX
make install
mkdir -p "$PREFIX"/lib/pkgconfig/
cp "$PREFIX"/share/pkgconfig/eigen3.pc "$PREFIX"/lib/pkgconfig/

cd ../../..
rm -rf tmp

Fix error copying eigen .pc file in static builds
Fix error copying eigen .pc file in static builds

build_eigen3.sh would fail copying the pkg-config file for eigen
if lib/pkgconfig/ folder did not exist
