Permalink
Browse files

grab dist tarballs of dependencies instead of git checkouts (avoid au…

…totools)
  • Loading branch information...
adammoody committed Aug 1, 2014
1 parent e7c7518 commit 6b0dd0f3f1c342f4a8e60dba826d9324913fb71b
Showing with 173 additions and 51 deletions.
  1. +29 −51 buildme_dependencies
  2. +144 −0 buildme_dependencies.git
View
@@ -29,52 +29,41 @@ OPT="-g -O0"
installdir=`pwd`/install
# add latest autotools to our path
toolspath=`pwd`/autotools/install/bin
export PATH="${toolspath}:$PATH"
#toolspath=`pwd`/autotools/install/bin
#export PATH="${toolspath}:$PATH"
mkdir -p deps
cd deps
libcircle=libcircle-0.2.1-rc.1
lwgrp=lwgrp-1.0.2
dtcmp=dtcmp-1.0.3
libarchive=libarchive-3.1.2
# fetch dependencies
if [ ! -d libcircle.git ] ; then
git clone git://github.com/hpc/libcircle.git libcircle.git
fi
if [ ! -d lwgrp.git ] ; then
git clone git://github.com/hpc/lwgrp.git lwgrp.git
fi
if [ ! -d dtcmp.git ] ; then
git clone git://github.com/hpc/dtcmp.git dtcmp.git
if [ ! -f ${libcircle}.tar.gz ] ; then
wget https://github.com/adammoody/libcircle/releases/download/v0.2.1-rc.1/${libcircle}.tar.gz
fi
if [ ! -f libarchive-3.1.2.tar.gz ] ; then
wget http://www.libarchive.org/downloads/libarchive-3.1.2.tar.gz
fi
if [ ! -d libcircle.git ]; then
echo "missing libcircle"
exit 1
if [ ! -f ${lwgrp}.tar.gz ] ; then
wget https://github.com/hpc/lwgrp/releases/download/v1.0.2/${lwgrp}.tar.gz
fi
if [ ! -d lwgrp.git ]; then
echo "missing lwgrp"
exit 1
if [ ! -f ${dtcmp}.tar.gz ] ; then
wget https://github.com/hpc/dtcmp/releases/download/v1.0.3/${dtcmp}.tar.gz
fi
if [ ! -d dtcmp.git ]; then
echo "missing dtcmp"
exit 1
if [ ! -f ${libarchive}.tar.gz ] ; then
wget http://www.libarchive.org/downloads/${libarchive}.tar.gz
fi
# clean out our autotools install directory
toolsdir=`pwd`/autotools/install
#toolsdir=`pwd`/autotools/install
# add autotools install bin to our path
export PATH=${toolsdir}/bin:$PATH
#export PATH=${toolsdir}/bin:$PATH
# build dependencies
pushd libcircle.git
git pull origin master
git pull --tags origin master
# comment me to get most recent version of libcircle
# uncomment me to get specific tagged version libcircle
git checkout 0.2.0-rc.1
rm -rf ${libcircle}
tar -zxf ${libcircle}.tar.gz
pushd ${libcircle}
export CFLAGS=${OPT}
./configure \
--prefix=$installdir \
@@ -85,15 +74,11 @@ pushd libcircle.git
echo "failed to configure, build, or install libcircle"
exit 1
fi
git checkout master
popd
pushd lwgrp.git
git pull origin master
git pull --tags origin master
git checkout v1.0.1
# make distclean
# ./autogen.sh
rm -rf ${lwgrp}
tar -zxf ${lwgrp}.tar.gz
pushd ${lwgrp}
export CFLAGS=${OPT}
./configure \
--prefix=${installdir} \
@@ -104,15 +89,11 @@ pushd lwgrp.git
echo "failed to configure, build, or install liblwgrp"
exit 1
fi
git checkout master
popd
pushd dtcmp.git
git pull origin master
git pull --tags origin master
git checkout v1.0.2
# make distclean
# ./autogen.sh
rm -rf ${dtcmp}
tar -zxf ${dtcmp}.tar.gz
pushd ${dtcmp}
export CFLAGS=${OPT}
./configure \
--prefix=${installdir} \
@@ -124,14 +105,11 @@ pushd dtcmp.git
echo "failed to configure, build, or install libdtcmp"
exit 1
fi
git checkout master
popd
rm -rf libarchive-3.1.2
tar zxvf libarchive-3.1.2.tar.gz
pushd libarchive-3.1.2
# make distclean
# ./autogen.sh
rm -rf ${libarchive}
tar zxvf ${libarchive}.tar.gz
pushd ${libarchive}
export CFLAGS=${OPT}
./configure \
--prefix=${installdir} && \
View
@@ -0,0 +1,144 @@
#!/bin/bash
##################
# Load mpicc and mpicxx into $PATH
##################
#. /usr/share/[mM]odules/init/bash
#module load mvapich2-gnu-psm/1.7
. /usr/local/tools/dotkit/init.sh
use mvapich2-gnu
# MVAPICH
#curdir=`pwd`
#export PATH="${curdir}/mvapich2/install/bin:$PATH"
# Open MPI
#curdir=`pwd`
#export PATH="${curdir}/openmpi/install/bin:$PATH"
##################
# Build software
##################
set -x
OPT="-g -O0"
installdir=`pwd`/install
# add latest autotools to our path
toolspath=`pwd`/autotools/install/bin
export PATH="${toolspath}:$PATH"
mkdir -p deps
cd deps
# fetch dependencies
if [ ! -d libcircle.git ] ; then
git clone git://github.com/hpc/libcircle.git libcircle.git
fi
if [ ! -d lwgrp.git ] ; then
git clone git://github.com/hpc/lwgrp.git lwgrp.git
fi
if [ ! -d dtcmp.git ] ; then
git clone git://github.com/hpc/dtcmp.git dtcmp.git
fi
if [ ! -f libarchive-3.1.2.tar.gz ] ; then
wget http://www.libarchive.org/downloads/libarchive-3.1.2.tar.gz
fi
if [ ! -d libcircle.git ]; then
echo "missing libcircle"
exit 1
fi
if [ ! -d lwgrp.git ]; then
echo "missing lwgrp"
exit 1
fi
if [ ! -d dtcmp.git ]; then
echo "missing dtcmp"
exit 1
fi
# clean out our autotools install directory
toolsdir=`pwd`/autotools/install
# add autotools install bin to our path
export PATH=${toolsdir}/bin:$PATH
# build dependencies
pushd libcircle.git
git pull origin master
git pull --tags origin master
# comment me to get most recent version of libcircle
# uncomment me to get specific tagged version libcircle
git checkout 0.2.0-rc.1
export CFLAGS=${OPT}
./configure \
--prefix=$installdir \
--disable-silent-rules && \
make VERBOSE=1 && \
make VERBOSE=1 install
if [ $? -ne 0 ]; then
echo "failed to configure, build, or install libcircle"
exit 1
fi
git checkout master
popd
pushd lwgrp.git
git pull origin master
git pull --tags origin master
git checkout v1.0.1
# make distclean
# ./autogen.sh
export CFLAGS=${OPT}
./configure \
--prefix=${installdir} \
--disable-silent-rules && \
make && \
make install
if [ $? -ne 0 ]; then
echo "failed to configure, build, or install liblwgrp"
exit 1
fi
git checkout master
popd
pushd dtcmp.git
git pull origin master
git pull --tags origin master
git checkout v1.0.2
# make distclean
# ./autogen.sh
export CFLAGS=${OPT}
./configure \
--prefix=${installdir} \
--disable-silent-rules \
--with-lwgrp=${installdir} && \
make && \
make install
if [ $? -ne 0 ]; then
echo "failed to configure, build, or install libdtcmp"
exit 1
fi
git checkout master
popd
rm -rf libarchive-3.1.2
tar zxvf libarchive-3.1.2.tar.gz
pushd libarchive-3.1.2
# make distclean
# ./autogen.sh
export CFLAGS=${OPT}
./configure \
--prefix=${installdir} && \
make && \
make install
if [ $? -ne 0 ]; then
echo "failed to configure, build, or install libarchive"
exit 1
fi
popd

0 comments on commit 6b0dd0f

Please sign in to comment.