
imported Iakin's modifications to jbigi to use the jcpuid library in detecting what jbigi implementation to load imported and slightly updated Iakin's scripts to build jbigi for lots of architectures (yay iakin!)
41 lines
863 B
Bash
41 lines
863 B
Bash
#/bin/sh
|
|
|
|
case `uname -sr` in
|
|
MINGW*)
|
|
echo "Building windows .dlls for all architectures";;
|
|
Linux*)
|
|
echo "Building linux .sos for all architectures";;
|
|
FreeBSD*)
|
|
echo "Building freebsd .sos for all architectures";;
|
|
*)
|
|
echo "Unsupported build environment"
|
|
exit;;
|
|
esac
|
|
|
|
echo "Extracting GMP..."
|
|
tar -xzf gmp-4.1.3.tar.gz
|
|
echo "Building..."
|
|
mkdir bin
|
|
mkdir lib
|
|
mkdir lib/net
|
|
mkdir lib/net/i2p
|
|
mkdir lib/net/i2p/util
|
|
for x in none pentium pentiummmx pentium2 pentium3 pentium4 k6 k62 k63 athlon
|
|
do
|
|
mkdir bin/$x
|
|
cd bin/$x
|
|
../../gmp-4.1.3/configure --build=$x
|
|
make
|
|
sh ../../build_jbigi.sh static
|
|
case `uname -sr` in
|
|
MINGW*)
|
|
cp jbigi.dll ../../lib/net/i2p/util/jbigi-windows-$x.dll;;
|
|
Linux*)
|
|
cp libjbigi.so ../../lib/net/i2p/util/libjbigi-linux-$x.so;;
|
|
FreeBSD*)
|
|
cp libjbigi.so ../../lib/net/i2p/util/libjbigi-freebsd-$x.so;;
|
|
esac
|
|
cd ..
|
|
cd ..
|
|
done
|