#/bin/csh -f
# installation path
set SLANG = ~/share/software/local/ # You may choose another prefix.
# The pcre, onig, png, zlib, iconv modules are optional.
# In order to build them on an Ubuntu system, install the following packages:
# sudo apt-get install libpcre3-dev libonig-dev libpng12-dev zlib1g-dev
# As the libraries were not found automatically on some 64-bit systems,
# I specify them explicitly:
set options = ""
if(`uname -m` == "x86_64") then
foreach mod (pcre onig png z iconv)
if(-e /usr/lib64/lib$mod.so) \
set options = "$options --with-{$mod}inc=/usr/include --with-{$mod}lib=/usr/lib64"
end
endif
# update source repository
set srcdir = slang.git
if(! -e $srcdir) git clone git://git.jedsoft.org/git/slang.git $srcdir
cd $srcdir
git clean -f
git pull
# build and install S-Lang
./configure --prefix=$SLANG $options |& tee configure.log
make |& tee make.log
make install |& tee make_install.log