#!/bin/bash
Me=$(true_path $0)
Me_dir=${Me%/*}
Install_dir=${Me_dir%/*}
echo Install_dir=$Install_dir
cd ${WORKDIR:-i_en_a-pas} || exit 1
rm -f Source
rsync -aruvxlH ${Install_dir}/Source .
tar jxf ${Install_dir}/jasper*.bz2
cd Source
./configure --enable-shared --disable-opengl  --prefix=${Install_dir}
make && make check && make install
cd ${WORKDIR:-i_en_a-pas} && rm -f Source
rm -rf jasper*
