source: core/c/jbigi/build-all.sh @ 455b552

Last change on this file since 455b552 was 455b552, checked in by kytv <kytv@…>, 10 years ago

jbigi: Add support for SunOS/Nexenta/Solaris to the build*.sh scripts

  • Property mode set to 100755
File size: 1.0 KB
Line 
1#/bin/sh
2
3case `uname -sr` in
4MINGW*)
5        echo "Building windows .dlls for all architectures";;
6SunOS*) 
7        echo "Building solaris .sos for all architectures";;
8Linux*)
9        echo "Building linux .sos for all architectures";;
10FreeBSD*)
11        echo "Building freebsd .sos for all architectures";;
12*)
13        echo "Unsupported build environment"
14        exit;;
15esac
16
17VER=4.2.4
18echo "Extracting GMP Version $VER ..."
19tar -xjf gmp-$VER.tar.bz2
20echo "Building..."
21mkdir bin
22mkdir lib
23mkdir lib/net
24mkdir lib/net/i2p
25mkdir lib/net/i2p/util
26
27for x in none pentium pentiummmx pentium2 pentium3 pentium4 k6 k62 k63 athlon geode pentiumm core2
28do
29        mkdir bin/$x
30        cd bin/$x
31        ../../gmp-$VER/configure --build=$x
32        make
33        sh ../../build_jbigi.sh static
34        case `uname -sr` in
35        MINGW*)
36                cp jbigi.dll ../../lib/net/i2p/util/jbigi-windows-$x.dll;;
37        SunOS*)
38                cp libjbigi.so ../../lib/net/i2p/util/libjbigi-solaris-$x.so;;
39        Linux*)
40                cp libjbigi.so ../../lib/net/i2p/util/libjbigi-linux-$x.so;;
41        FreeBSD*)
42                cp libjbigi.so ../../lib/net/i2p/util/libjbigi-freebsd-$x.so;;
43        esac
44        cd ..
45        cd ..
46done
Note: See TracBrowser for help on using the repository browser.