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 | |
---|
3 | case `uname -sr` in |
---|
4 | MINGW*) |
---|
5 | echo "Building windows .dlls for all architectures";; |
---|
6 | Linux*) |
---|
7 | echo "Building linux .sos for all architectures";; |
---|
8 | FreeBSD*) |
---|
9 | echo "Building freebsd .sos for all architectures";; |
---|
10 | *) |
---|
11 | echo "Unsupported build environment" |
---|
12 | exit;; |
---|
13 | esac |
---|
14 | |
---|
15 | VER=4.2.4 |
---|
16 | echo "Extracting GMP Version $VER ..." |
---|
17 | tar -xjf gmp-$VER.tar.bz2 |
---|
18 | echo "Building..." |
---|
19 | mkdir bin |
---|
20 | mkdir lib |
---|
21 | mkdir lib/net |
---|
22 | mkdir lib/net/i2p |
---|
23 | mkdir lib/net/i2p/util |
---|
24 | |
---|
25 | for x in none pentium pentiummmx pentium2 pentium3 pentium4 k6 k62 k63 athlon geode pentiumm core2 |
---|
26 | do |
---|
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 .. |
---|
42 | done |
---|
Note: See
TracBrowser
for help on using the repository browser.