2015-04-14 12:36:29 +00:00
|
|
|
#! /usr/bin/env bash
|
2014-11-04 14:36:49 +00:00
|
|
|
|
2017-03-16 00:01:58 +00:00
|
|
|
if test x"${OS}" != x"FreeBSD"; then
|
|
|
|
source scl_source enable devtoolset-4
|
|
|
|
fi
|
|
|
|
|
2014-11-04 14:36:49 +00:00
|
|
|
FAKE_ROOT=/home/vagrant/fake.root
|
|
|
|
|
|
|
|
rm -rf ~/extract
|
2015-07-25 13:45:38 +00:00
|
|
|
mkdir -p ${FAKE_ROOT} ~/packages ~/extract ~/github
|
2014-11-04 14:36:49 +00:00
|
|
|
|
|
|
|
export PATH=${FAKE_ROOT}/bin:${PATH}
|
|
|
|
|
|
|
|
cd ~/github
|
|
|
|
|
2015-10-15 02:52:22 +00:00
|
|
|
SQLITE_CFLAGS="\
|
|
|
|
-DSQLITE_ENABLE_COLUMN_METADATA \
|
|
|
|
-DSQLITE_SOUNDEX \
|
|
|
|
-DSQLITE_ENABLE_DBSTAT_VTAB \
|
|
|
|
-DSQLITE_ENABLE_API_ARMOR \
|
|
|
|
-DSQLITE_ENABLE_JSON1 \
|
2017-03-04 23:22:19 +00:00
|
|
|
-DSQLITE_ENABLE_UPDATE_DELETE_LIMIT \
|
2015-07-25 13:45:38 +00:00
|
|
|
"
|
2014-11-04 14:36:49 +00:00
|
|
|
|
|
|
|
|
|
|
|
cd ~/extract
|
|
|
|
|
2016-08-06 22:23:23 +00:00
|
|
|
for pkg in /vagrant/pkgs/*.tar.gz; do
|
2014-11-04 14:36:49 +00:00
|
|
|
tar xfz $pkg
|
|
|
|
done
|
|
|
|
|
2016-07-31 02:04:46 +00:00
|
|
|
(cd make-4.2.1 && ./configure --prefix=${FAKE_ROOT} && make && make install)
|
|
|
|
|
2015-04-14 12:36:29 +00:00
|
|
|
OS=$(uname -s)
|
|
|
|
|
2015-10-15 13:04:45 +00:00
|
|
|
|
|
|
|
(cd readline-6.3 && ./configure --prefix=${FAKE_ROOT} && make && make install)
|
|
|
|
|
|
|
|
(cd bzip2-1.0.6 && make install PREFIX=${FAKE_ROOT})
|
|
|
|
|
|
|
|
(cd sqlite-* &&
|
2016-07-29 03:03:43 +00:00
|
|
|
./configure --disable-editline --prefix=${FAKE_ROOT} \
|
2015-10-15 13:04:45 +00:00
|
|
|
CFLAGS="${SQLITE_CFLAGS}" \
|
|
|
|
&& \
|
|
|
|
make && make install)
|
|
|
|
|
|
|
|
(cd openssl-* &&
|
|
|
|
./config --prefix=${FAKE_ROOT} -fPIC &&
|
|
|
|
make &&
|
|
|
|
make install)
|
|
|
|
|
2015-04-14 12:36:29 +00:00
|
|
|
if test x"${OS}" != x"FreeBSD"; then
|
|
|
|
(cd ncurses-5.9 && \
|
|
|
|
./configure --prefix=${FAKE_ROOT} \
|
|
|
|
--enable-ext-mouse \
|
|
|
|
--enable-sigwinch \
|
|
|
|
--with-default-terminfo-dir=/usr/share/terminfo \
|
|
|
|
--enable-ext-colors \
|
|
|
|
--enable-widec \
|
|
|
|
&& \
|
|
|
|
make && make install)
|
|
|
|
|
2017-03-16 00:01:58 +00:00
|
|
|
(cd pcre-8.40 && \
|
2015-04-14 12:36:29 +00:00
|
|
|
./configure --prefix=${FAKE_ROOT} \
|
|
|
|
--enable-jit \
|
|
|
|
--enable-utf \
|
|
|
|
&& \
|
|
|
|
make && make install)
|
2015-10-15 13:04:45 +00:00
|
|
|
|
2017-03-16 00:01:58 +00:00
|
|
|
(cd zlib-1.2.11 && ./configure --prefix=${FAKE_ROOT} && make && make install)
|
2015-10-15 13:04:45 +00:00
|
|
|
|
|
|
|
(cd libssh2-* &&
|
|
|
|
./configure --prefix=${FAKE_ROOT} \
|
|
|
|
--with-libssl-prefix=/home/vagrant/fake.root \
|
|
|
|
--with-libz-prefix=/home/vagrant/fake.root \
|
2017-03-16 00:01:58 +00:00
|
|
|
"CPPFLAGS=-I${FAKE_ROOT}/include" \
|
|
|
|
"LDFLAGS=-ldl -L${FAKE_ROOT}/lib" &&
|
2015-10-15 13:04:45 +00:00
|
|
|
make &&
|
|
|
|
make install)
|
|
|
|
|
|
|
|
(cd curl-* &&
|
|
|
|
./configure --prefix=${FAKE_ROOT} \
|
|
|
|
--with-libssh2=${FAKE_ROOT} \
|
|
|
|
--with-ssl=${FAKE_ROOT} \
|
|
|
|
--with-zlib=${FAKE_ROOT} \
|
|
|
|
"LDFLAGS=-ldl" &&
|
|
|
|
make &&
|
|
|
|
make install)
|
2015-04-14 12:36:29 +00:00
|
|
|
else
|
|
|
|
(cd ncurses-5.9 && \
|
|
|
|
./configure --prefix=${FAKE_ROOT} \
|
|
|
|
--enable-ext-mouse \
|
|
|
|
--enable-sigwinch \
|
|
|
|
--with-default-terminfo-dir=/usr/share/terminfo \
|
|
|
|
--enable-ext-colors \
|
|
|
|
--enable-widec \
|
|
|
|
&& \
|
|
|
|
make && make install)
|
|
|
|
|
2017-03-16 00:01:58 +00:00
|
|
|
(cd pcre-8.40 && \
|
2015-04-14 12:36:29 +00:00
|
|
|
./configure --prefix=${FAKE_ROOT} \
|
|
|
|
--enable-jit \
|
|
|
|
--enable-utf \
|
|
|
|
&& \
|
|
|
|
make && make install)
|
2014-11-04 14:36:49 +00:00
|
|
|
|
2017-03-16 00:01:58 +00:00
|
|
|
(cd zlib-1.2.11 && ./configure --prefix=${FAKE_ROOT} "CFLAGS=-fPIC" \
|
2015-10-15 13:04:45 +00:00
|
|
|
&& make && make install)
|
2015-07-25 13:45:38 +00:00
|
|
|
|
2015-10-15 13:04:45 +00:00
|
|
|
(cd libssh2-* &&
|
|
|
|
./configure --prefix=${FAKE_ROOT} \
|
|
|
|
--with-libssl-prefix=/home/vagrant/fake.root \
|
|
|
|
--with-libz-prefix=/home/vagrant/fake.root \
|
|
|
|
&&
|
|
|
|
make &&
|
|
|
|
make install)
|
2015-07-25 13:45:38 +00:00
|
|
|
|
2015-10-15 13:04:45 +00:00
|
|
|
(cd curl-* &&
|
|
|
|
./configure --prefix=${FAKE_ROOT} \
|
|
|
|
--with-libssh2=${FAKE_ROOT} \
|
|
|
|
--with-ssl=${FAKE_ROOT} \
|
|
|
|
--with-zlib=${FAKE_ROOT} \
|
|
|
|
"CFLAGS=-fPIC" &&
|
|
|
|
make &&
|
|
|
|
make install)
|
|
|
|
fi
|