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