add libevent

This commit is contained in:
Jack Robison 2016-06-07 21:25:24 -04:00 committed by Jimmy Kiselak
parent e190551cb2
commit 20d80ef90c

View file

@ -1,6 +1,7 @@
sudo apt-get install build-essential python-dev libbz2-dev libtool autotools-dev autoconf git pkg-config sudo apt-get install build-essential python-dev libbz2-dev libtool autotools-dev autoconf git pkg-config
mkdir dependencies mkdir dependencies
cd dependencies cd dependencies
wget http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz wget http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz
tar xf db-4.8.30.NC.tar.gz tar xf db-4.8.30.NC.tar.gz
export BDB_PREFIX="`pwd`/bdb" export BDB_PREFIX="`pwd`/bdb"
@ -9,6 +10,7 @@ cd db-4.8.30.NC/build_unix
make make
make install make install
cd ../../ cd ../../
wget https://www.openssl.org/source/openssl-1.0.1p.tar.gz wget https://www.openssl.org/source/openssl-1.0.1p.tar.gz
tar xf openssl-1.0.1p.tar.gz tar xf openssl-1.0.1p.tar.gz
export OPENSSL_PREFIX="`pwd`/openssl_build" export OPENSSL_PREFIX="`pwd`/openssl_build"
@ -16,8 +18,9 @@ cd openssl-1.0.1p
./Configure --prefix=$OPENSSL_PREFIX --openssldir=$OPENSSL_PREFIX/ssl [linux-generic32/linux-x86_64] -fPIC -static no-shared no-dso ./Configure --prefix=$OPENSSL_PREFIX --openssldir=$OPENSSL_PREFIX/ssl [linux-generic32/linux-x86_64] -fPIC -static no-shared no-dso
make make
make install make install
export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}:${OPENSSL_BUILD}/lib/pkgconfig/" export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}:${OPENSSL_PREFIX}/lib/pkgconfig/"
cd .. cd ..
wget http://sourceforge.net/projects/boost/files/boost/1.59.0/boost_1_59_0.tar.bz2/download -O boost_1_59_0.tar.bz2 wget http://sourceforge.net/projects/boost/files/boost/1.59.0/boost_1_59_0.tar.bz2/download -O boost_1_59_0.tar.bz2
tar xf boost_1_59_0.tar.bz2 tar xf boost_1_59_0.tar.bz2
cd boost_1_59_0 cd boost_1_59_0
@ -25,10 +28,21 @@ export BOOST_ROOT=`pwd`
./bootstrap.sh ./bootstrap.sh
./b2 link=static cxxflags=-fPIC stage ./b2 link=static cxxflags=-fPIC stage
cd ../../ cd ../../
mkdir libevent_build
git clone https://github.com/libevent/libevent.git
export LIBEVENT_PREFIX="`pwd`/libevent_build"
cd libevent
./autogen.sh
./configure --prefix=$LIBEVENT_PREFIX --enable-static --disable-shared --with-pic LDFLAGS="-L${OPENSSL_PREFIX}/lib/" CPPFLAGS="-I${OPENSSL_PREFIX}/include"
make
make install
cd ..
git clone https://github.com/lbryio/lbrycrd git clone https://github.com/lbryio/lbrycrd
cd lbrycrd cd lbrycrd
./autogen.sh ./autogen.sh
./configure --without-gui LDFLAGS="-L${OPENSSL_PREFIX}/lib/ -L${BDB_PREFIX}/lib/ -static-libstdc++" CPPFLAGS="-I${OPENSSL_PREFIX}/include -I${BDB_PREFIX}/include" ./configure --without-gui LDFLAGS="-L${OPENSSL_PREFIX}/lib/ -L${BDB_PREFIX}/lib/ -L${LIBEVENT_PREFIX}/lib/ -static-libstdc++" CPPFLAGS="-I${OPENSSL_PREFIX}/include -I${BDB_PREFIX}/include -I${LIBEVENT_PREFIX}/include/"
make make
strip src/lbrycrdd strip src/lbrycrdd
strip src/lbrycrd-cli strip src/lbrycrd-cli