Build libssh2 with OpenSSL as backend (disabled libgcrypt)

This commit is contained in:
clamsawd 2015-10-17 16:55:37 +02:00
parent 434849a5c1
commit dbaafe531f
4 changed files with 102 additions and 71 deletions

View File

@ -7,7 +7,6 @@
# * expat # * expat
# * sqlite3 # * sqlite3
# * openSSL # * openSSL
# * libgcrypt
# * libssh2 # * libssh2
#IMPORTANT: Require install gcc-multilib g++-multilib libc6-dev-i386 #IMPORTANT: Require install gcc-multilib g++-multilib libc6-dev-i386
@ -23,7 +22,6 @@ EXPAT=http://sourceforge.net/projects/expat/files/expat/2.1.0/expat-2.1.0.tar.gz
SQLITE3=https://www.sqlite.org/2015/sqlite-autoconf-3090100.tar.gz SQLITE3=https://www.sqlite.org/2015/sqlite-autoconf-3090100.tar.gz
C_ARES=http://c-ares.haxx.se/download/c-ares-1.10.0.tar.gz C_ARES=http://c-ares.haxx.se/download/c-ares-1.10.0.tar.gz
SSH2=http://www.libssh2.org/download/libssh2-1.6.0.tar.gz SSH2=http://www.libssh2.org/download/libssh2-1.6.0.tar.gz
GCRYPT=ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-1.6.3.tar.gz
## CONFIG ## ## CONFIG ##
BUILD_DIRECTORY=/tmp/ BUILD_DIRECTORY=/tmp/
@ -77,24 +75,39 @@ export LDFLAGS="-m32"
CFLAGS="-m32" CXXFLAGS="-m32" LDFLAGS="-m32" PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC="$C_COMPILER -m32" CXX="$CXX_COMPILER -m32" ./configure --prefix=$PREFIX --enable-static --disable-shared CFLAGS="-m32" CXXFLAGS="-m32" LDFLAGS="-m32" PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC="$C_COMPILER -m32" CXX="$CXX_COMPILER -m32" ./configure --prefix=$PREFIX --enable-static --disable-shared
make make
make install make install
#
# libgcrypt
cd ..
wget -c $GCRYPT
tar zxvf libgcrypt-1.6.3.tar.gz
cd libgcrypt-1.6.3/
CFLAGS="-m32" CXXFLAGS="-m32" LDFLAGS="-m32" PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC="$C_COMPILER -m32" CXX="$CXX_COMPILER -m32" ./configure --host=i386-unknown-linux-gnu --prefix=$PREFIX --enable-static --disable-shared
make
make install
# #
# libssh2 # libssh2
cd .. cd ..
wget -c $SSH2 wget -c $SSH2
tar zxvf libssh2-1.6.0.tar.gz tar zxvf libssh2-1.6.0.tar.gz
cd libssh2-1.6.0/ cd libssh2-1.6.0/
CFLAGS="-m32" CXXFLAGS="-m32" LDFLAGS="-m32" PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC="$C_COMPILER -m32" CXX="$CXX_COMPILER -m32" ./configure --with-libgcrypt -without-openssl --prefix=$PREFIX --enable-static --disable-shared rm -rf $PREFIX/lib/pkgconfig/libssh2.pc
CFLAGS="-m32" CXXFLAGS="-m32" LDFLAGS="-m32" PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC="$C_COMPILER -m32" CXX="$CXX_COMPILER -m32" ./configure --without-libgcrypt --with-openssl --without-wincng --prefix=$PREFIX --enable-static --disable-shared
make make
make install make install
if [ -f $PREFIX/lib/pkgconfig/libssh2.pc ] ; then
echo "$PREFIX/lib/pkgconfig/libssh2.pc"
else
echo "################################" > $PREFIX/lib/pkgconfig/libssh2.pc
echo "# libssh2 installation details #" >> $PREFIX/lib/pkgconfig/libssh2.pc
echo "#################################" >> $PREFIX/lib/pkgconfig/libssh2.pc
echo "" >> $PREFIX/lib/pkgconfig/libssh2.pc
echo "prefix=$PREFIX" >> $PREFIX/lib/pkgconfig/libssh2.pc
echo "exec_prefix=$PREFIX" >> $PREFIX/lib/pkgconfig/libssh2.pc
echo "libdir=$PREFIX/lib" >> $PREFIX/lib/pkgconfig/libssh2.pc
echo "includedir=$PREFIX/include" >> $PREFIX/lib/pkgconfig/libssh2.pc
echo "" >> $PREFIX/lib/pkgconfig/libssh2.pc
echo "Name: libssh2" >> $PREFIX/lib/pkgconfig/libssh2.pc
echo "URL: http://www.libssh2.org/" >> $PREFIX/lib/pkgconfig/libssh2.pc
echo "Description: Library for SSH-based communication" >> $PREFIX/lib/pkgconfig/libssh2.pc
echo "Version: 1.6.0" >> $PREFIX/lib/pkgconfig/libssh2.pc
echo "Requires.private:" >> $PREFIX/lib/pkgconfig/libssh2.pc
echo "Libs: -L$PREFIX/lib -lssh2 -m32 -lssl -lcrypto -lz" >> $PREFIX/lib/pkgconfig/libssh2.pc
echo "Libs.private: -m32 -lssl -lcrypto -lz" >> $PREFIX/lib/pkgconfig/libssh2.pc
echo "Cflags: -I$PREFIX/include" >> $PREFIX/lib/pkgconfig/libssh2.pc
echo "$PREFIX/lib/pkgconfig/libssh2.pc created!"
cp -rf include/*.h $PREFIX/include
fi
# #
#cleaning #cleaning
cd .. cd ..
@ -104,6 +117,5 @@ export LDFLAGS="-m32"
rm -rf expat-* rm -rf expat-*
rm -rf openssl-* rm -rf openssl-*
rm -rf libssh2-* rm -rf libssh2-*
rm -rf libgcrypt-*
# #
echo "finished!" echo "finished!"

View File

@ -7,7 +7,6 @@
# * expat # * expat
# * sqlite3 # * sqlite3
# * openSSL # * openSSL
# * libgcrypt
# * libssh2 # * libssh2
#COMPILER AND PATH #COMPILER AND PATH
@ -22,7 +21,6 @@ EXPAT=http://sourceforge.net/projects/expat/files/expat/2.1.0/expat-2.1.0.tar.gz
SQLITE3=https://www.sqlite.org/2015/sqlite-autoconf-3090100.tar.gz SQLITE3=https://www.sqlite.org/2015/sqlite-autoconf-3090100.tar.gz
C_ARES=http://c-ares.haxx.se/download/c-ares-1.10.0.tar.gz C_ARES=http://c-ares.haxx.se/download/c-ares-1.10.0.tar.gz
SSH2=http://www.libssh2.org/download/libssh2-1.6.0.tar.gz SSH2=http://www.libssh2.org/download/libssh2-1.6.0.tar.gz
GCRYPT=ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-1.6.3.tar.gz
## CONFIG ## ## CONFIG ##
BUILD_DIRECTORY=/tmp/ BUILD_DIRECTORY=/tmp/
@ -73,24 +71,39 @@ cd $BUILD_DIRECTORY
PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC="$C_COMPILER" CXX="$CXX_COMPILER" ./configure --prefix=$PREFIX --enable-static --disable-shared PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC="$C_COMPILER" CXX="$CXX_COMPILER" ./configure --prefix=$PREFIX --enable-static --disable-shared
make make
make install make install
#
# libgcrypt
cd ..
wget -c $GCRYPT
tar zxvf libgcrypt-1.6.3.tar.gz
cd libgcrypt-1.6.3/
PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC="$C_COMPILER" CXX="$CXX_COMPILER" ./configure --prefix=$PREFIX --enable-static --disable-shared
make
make install
# #
# libssh2 # libssh2
cd .. cd ..
wget -c $SSH2 wget -c $SSH2
tar zxvf libssh2-1.6.0.tar.gz tar zxvf libssh2-1.6.0.tar.gz
cd libssh2-1.6.0/ cd libssh2-1.6.0/
PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC="$C_COMPILER" CXX="$CXX_COMPILER" ./configure --with-libgcrypt -without-openssl --prefix=$PREFIX --enable-static --disable-shared rm -rf $PREFIX/lib/pkgconfig/libssh2.pc
PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC="$C_COMPILER" CXX="$CXX_COMPILER" ./configure --without-libgcrypt --with-openssl --without-wincng --prefix=$PREFIX --enable-static --disable-shared
make make
make install make install
if [ -f $PREFIX/lib/pkgconfig/libssh2.pc ] ; then
echo "$PREFIX/lib/pkgconfig/libssh2.pc"
else
echo "################################" > $PREFIX/lib/pkgconfig/libssh2.pc
echo "# libssh2 installation details #" >> $PREFIX/lib/pkgconfig/libssh2.pc
echo "#################################" >> $PREFIX/lib/pkgconfig/libssh2.pc
echo "" >> $PREFIX/lib/pkgconfig/libssh2.pc
echo "prefix=$PREFIX" >> $PREFIX/lib/pkgconfig/libssh2.pc
echo "exec_prefix=$PREFIX" >> $PREFIX/lib/pkgconfig/libssh2.pc
echo "libdir=$PREFIX/lib" >> $PREFIX/lib/pkgconfig/libssh2.pc
echo "includedir=$PREFIX/include" >> $PREFIX/lib/pkgconfig/libssh2.pc
echo "" >> $PREFIX/lib/pkgconfig/libssh2.pc
echo "Name: libssh2" >> $PREFIX/lib/pkgconfig/libssh2.pc
echo "URL: http://www.libssh2.org/" >> $PREFIX/lib/pkgconfig/libssh2.pc
echo "Description: Library for SSH-based communication" >> $PREFIX/lib/pkgconfig/libssh2.pc
echo "Version: 1.6.0" >> $PREFIX/lib/pkgconfig/libssh2.pc
echo "Requires.private: zlib" >> $PREFIX/lib/pkgconfig/libssh2.pc
echo "Libs: -L$PREFIX/lib -lssh2 -lssl -lcrypto -lz" >> $PREFIX/lib/pkgconfig/libssh2.pc
echo "Libs.private: -lssl -lcrypto -lz" >> $PREFIX/lib/pkgconfig/libssh2.pc
echo "Cflags: -I$PREFIX/include" >> $PREFIX/lib/pkgconfig/libssh2.pc
echo "$PREFIX/lib/pkgconfig/libssh2.pc created!"
cp -rf include/*.h $PREFIX/include
fi
# #
#cleaning #cleaning
cd .. cd ..
@ -100,6 +113,5 @@ cd $BUILD_DIRECTORY
rm -rf expat-* rm -rf expat-*
rm -rf openssl-* rm -rf openssl-*
rm -rf libssh2-* rm -rf libssh2-*
rm -rf libgcrypt-*
# #
echo "finished!" echo "finished!"

View File

@ -12,11 +12,9 @@
## DEPENDENCES ## ## DEPENDENCES ##
ZLIB=http://sourceforge.net/projects/libpng/files/zlib/1.2.8/zlib-1.2.8.tar.gz ZLIB=http://sourceforge.net/projects/libpng/files/zlib/1.2.8/zlib-1.2.8.tar.gz
OPENSSL=http://www.openssl.org/source/openssl-1.0.2d.tar.gz OPENSSL=http://www.openssl.org/source/openssl-1.0.2d.tar.gz
#GMPLIB=https://gmplib.org/download/gmp/gmp-6.0.0a.tar.bz2
EXPAT=http://sourceforge.net/projects/expat/files/expat/2.1.0/expat-2.1.0.tar.gz EXPAT=http://sourceforge.net/projects/expat/files/expat/2.1.0/expat-2.1.0.tar.gz
SQLITE3=https://www.sqlite.org/2015/sqlite-autoconf-3090100.tar.gz SQLITE3=https://www.sqlite.org/2015/sqlite-autoconf-3090100.tar.gz
C_ARES=http://c-ares.haxx.se/download/c-ares-1.10.0.tar.gz C_ARES=http://c-ares.haxx.se/download/c-ares-1.10.0.tar.gz
#CPPUNIT=http://dev-www.libreoffice.org/src/cppunit-1.13.2.tar.gz
SSH2=http://www.libssh2.org/download/libssh2-1.6.0.tar.gz SSH2=http://www.libssh2.org/download/libssh2-1.6.0.tar.gz
## CONFIG ## ## CONFIG ##
@ -43,15 +41,6 @@ cd $BUILD_DIRECTORY
CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --prefix=$PREFIX --host=$HOST --enable-static --disable-shared CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --prefix=$PREFIX --host=$HOST --enable-static --disable-shared
make make
make install make install
#
# cppunit build
#cd ..
#wget -c $CPPUNIT
#tar zxvf cppunit-1.13.2.tar.gz
#cd cppunit-1.13.2/
#CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --prefix=$PREFIX --host=$HOST --enable-static --disable-shared
#make
#make install
# #
# c-ares build # c-ares build
cd .. cd ..
@ -61,15 +50,6 @@ cd $BUILD_DIRECTORY
CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --prefix=$PREFIX --host=$HOST --enable-static --disable-shared CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --prefix=$PREFIX --host=$HOST --enable-static --disable-shared
make make
make install make install
#
# GMPlib build
#cd ..
#wget -c $GMPLIB
#tar jxvf gmp-6.0.0a.tar.bz2
#cd gmp-6.0.0/
#CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --prefix=$PREFIX --host=$HOST --enable-static --disable-shared
#make
#make install
# #
# Openssl build # Openssl build
cd .. cd ..
@ -94,9 +74,33 @@ cd $BUILD_DIRECTORY
wget -c $SSH2 wget -c $SSH2
tar zxvf libssh2-1.6.0.tar.gz tar zxvf libssh2-1.6.0.tar.gz
cd libssh2-1.6.0/ cd libssh2-1.6.0/
CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --prefix=$PREFIX --host=$HOST --enable-static --disable-shared rm -rf $PREFIX/lib/pkgconfig/libssh2.pc
CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --without-libgcrypt --with-openssl --without-wincng --prefix=$PREFIX --host=$HOST --enable-static --disable-shared
make make
make install make install
if [ -f $PREFIX/lib/pkgconfig/libssh2.pc ] ; then
echo "$PREFIX/lib/pkgconfig/libssh2.pc"
else
echo "################################" > $PREFIX/lib/pkgconfig/libssh2.pc
echo "# libssh2 installation details #" >> $PREFIX/lib/pkgconfig/libssh2.pc
echo "#################################" >> $PREFIX/lib/pkgconfig/libssh2.pc
echo "" >> $PREFIX/lib/pkgconfig/libssh2.pc
echo "prefix=$PREFIX" >> $PREFIX/lib/pkgconfig/libssh2.pc
echo "exec_prefix=$PREFIX" >> $PREFIX/lib/pkgconfig/libssh2.pc
echo "libdir=$PREFIX/lib" >> $PREFIX/lib/pkgconfig/libssh2.pc
echo "includedir=$PREFIX/include" >> $PREFIX/lib/pkgconfig/libssh2.pc
echo "" >> $PREFIX/lib/pkgconfig/libssh2.pc
echo "Name: libssh2" >> $PREFIX/lib/pkgconfig/libssh2.pc
echo "URL: http://www.libssh2.org/" >> $PREFIX/lib/pkgconfig/libssh2.pc
echo "Description: Library for SSH-based communication" >> $PREFIX/lib/pkgconfig/libssh2.pc
echo "Version: 1.6.0" >> $PREFIX/lib/pkgconfig/libssh2.pc
echo "Requires.private: zlib" >> $PREFIX/lib/pkgconfig/libssh2.pc
echo "Libs: -L$PREFIX/lib -lssh2 -lssl -lcrypto -lz -lws2_32" >> $PREFIX/lib/pkgconfig/libssh2.pc
echo "Libs.private: -lssl -lcrypto -lz -lws2_32" >> $PREFIX/lib/pkgconfig/libssh2.pc
echo "Cflags: -I$PREFIX/include" >> $PREFIX/lib/pkgconfig/libssh2.pc
echo "$PREFIX/lib/pkgconfig/libssh2.pc created!"
cp -rf include/*.h $PREFIX/include
fi
# #
#cleaning #cleaning
cd .. cd ..
@ -104,9 +108,9 @@ cd $BUILD_DIRECTORY
rm -rf sqlite-autoconf* rm -rf sqlite-autoconf*
rm -rf zlib-* rm -rf zlib-*
rm -rf expat-* rm -rf expat-*
rm -rf gmp-* rm -rf openssl-*
rm -rf libssh2-* rm -rf libssh2-*
rm -rf cppunit-*
# #
echo "finished!" echo "finished!"

View File

@ -12,11 +12,9 @@
## DEPENDENCES ## ## DEPENDENCES ##
ZLIB=http://sourceforge.net/projects/libpng/files/zlib/1.2.8/zlib-1.2.8.tar.gz ZLIB=http://sourceforge.net/projects/libpng/files/zlib/1.2.8/zlib-1.2.8.tar.gz
OPENSSL=http://www.openssl.org/source/openssl-1.0.2d.tar.gz OPENSSL=http://www.openssl.org/source/openssl-1.0.2d.tar.gz
#GMPLIB=https://gmplib.org/download/gmp/gmp-6.0.0a.tar.bz2
EXPAT=http://sourceforge.net/projects/expat/files/expat/2.1.0/expat-2.1.0.tar.gz EXPAT=http://sourceforge.net/projects/expat/files/expat/2.1.0/expat-2.1.0.tar.gz
SQLITE3=https://www.sqlite.org/2015/sqlite-autoconf-3090100.tar.gz SQLITE3=https://www.sqlite.org/2015/sqlite-autoconf-3090100.tar.gz
C_ARES=http://c-ares.haxx.se/download/c-ares-1.10.0.tar.gz C_ARES=http://c-ares.haxx.se/download/c-ares-1.10.0.tar.gz
#CPPUNIT=http://dev-www.libreoffice.org/src/cppunit-1.13.2.tar.gz
SSH2=http://www.libssh2.org/download/libssh2-1.6.0.tar.gz SSH2=http://www.libssh2.org/download/libssh2-1.6.0.tar.gz
## CONFIG ## ## CONFIG ##
@ -43,15 +41,6 @@ cd $BUILD_DIRECTORY
CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --prefix=$PREFIX --host=$HOST --enable-static --disable-shared CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --prefix=$PREFIX --host=$HOST --enable-static --disable-shared
make make
make install make install
#
# cppunit build
#cd ..
#wget -c $CPPUNIT
#tar zxvf cppunit-1.13.2.tar.gz
#cd cppunit-1.13.2/
#CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --prefix=$PREFIX --host=$HOST --enable-static --disable-shared
#make
#make install
# #
# c-ares build # c-ares build
cd .. cd ..
@ -61,15 +50,6 @@ cd $BUILD_DIRECTORY
CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --prefix=$PREFIX --host=$HOST --enable-static --disable-shared CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --prefix=$PREFIX --host=$HOST --enable-static --disable-shared
make make
make install make install
#
# GMPlib build
#cd ..
#wget -c $GMPLIB
#tar jxvf gmp-6.0.0a.tar.bz2
#cd gmp-6.0.0/
#CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --prefix=$PREFIX --host=$HOST --enable-static --disable-shared
#make
#make install
# #
# Openssl build # Openssl build
cd .. cd ..
@ -94,9 +74,33 @@ cd $BUILD_DIRECTORY
wget -c $SSH2 wget -c $SSH2
tar zxvf libssh2-1.6.0.tar.gz tar zxvf libssh2-1.6.0.tar.gz
cd libssh2-1.6.0/ cd libssh2-1.6.0/
rm -rf $PREFIX/lib/pkgconfig/libssh2.pc
CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --prefix=$PREFIX --host=$HOST --enable-static --disable-shared CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --prefix=$PREFIX --host=$HOST --enable-static --disable-shared
make make
make install make install
if [ -f $PREFIX/lib/pkgconfig/libssh2.pc ] ; then
echo "$PREFIX/lib/pkgconfig/libssh2.pc"
else
echo "################################" > $PREFIX/lib/pkgconfig/libssh2.pc
echo "# libssh2 installation details #" >> $PREFIX/lib/pkgconfig/libssh2.pc
echo "#################################" >> $PREFIX/lib/pkgconfig/libssh2.pc
echo "" >> $PREFIX/lib/pkgconfig/libssh2.pc
echo "prefix=$PREFIX" >> $PREFIX/lib/pkgconfig/libssh2.pc
echo "exec_prefix=$PREFIX" >> $PREFIX/lib/pkgconfig/libssh2.pc
echo "libdir=$PREFIX/lib" >> $PREFIX/lib/pkgconfig/libssh2.pc
echo "includedir=$PREFIX/include" >> $PREFIX/lib/pkgconfig/libssh2.pc
echo "" >> $PREFIX/lib/pkgconfig/libssh2.pc
echo "Name: libssh2" >> $PREFIX/lib/pkgconfig/libssh2.pc
echo "URL: http://www.libssh2.org/" >> $PREFIX/lib/pkgconfig/libssh2.pc
echo "Description: Library for SSH-based communication" >> $PREFIX/lib/pkgconfig/libssh2.pc
echo "Version: 1.6.0" >> $PREFIX/lib/pkgconfig/libssh2.pc
echo "Requires.private: zlib" >> $PREFIX/lib/pkgconfig/libssh2.pc
echo "Libs: -L$PREFIX/lib -lssh2 -lssl -lcrypto -lz -lws2_32" >> $PREFIX/lib/pkgconfig/libssh2.pc
echo "Libs.private: -lssl -lcrypto -lz -lws2_32" >> $PREFIX/lib/pkgconfig/libssh2.pc
echo "Cflags: -I$PREFIX/include" >> $PREFIX/lib/pkgconfig/libssh2.pc
echo "$PREFIX/lib/pkgconfig/libssh2.pc created!"
cp -rf include/*.h $PREFIX/include
fi
# #
#cleaning #cleaning
cd .. cd ..
@ -104,8 +108,7 @@ cd $BUILD_DIRECTORY
rm -rf sqlite-autoconf* rm -rf sqlite-autoconf*
rm -rf zlib-* rm -rf zlib-*
rm -rf expat-* rm -rf expat-*
rm -rf gmp-* rm -rf openssl-*
rm -rf libssh2-* rm -rf libssh2-*
rm -rf cppunit-*
# #
echo "finished!" echo "finished!"