source: core/c/jbigi/build-all.sh @ 0c98d18

Last change on this file since 0c98d18 was 0c98d18, checked in by sponge <sponge@…>, 12 years ago

Sponge fixes and additions patch:

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