forked from squeaky-pl/portable-pypy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild_deps
executable file
·115 lines (90 loc) · 2.67 KB
/
build_deps
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
#!/bin/bash
set -ex
env
wget http://www.cpan.org/src/5.0/perl-5.24.1.tar.gz -O - | tar xz
cd perl-5.24.1
./configure.gnu --prefix=/opt/prefix
make -j4
make install
cd -
wget https://ftp.gnu.org/gnu/ncurses/ncurses-6.0.tar.gz -O - | tar xz
cd ncurses-6.0
./configure --prefix=/opt/prefix --without-tests --without-cxx --with-termlib --without-normal --with-shared --enable-database --with-terminfo-dirs=/lib/terminfo:/usr/share/terminfo
echo "#define NCURSES_USE_DATABASE 1" >> include/ncurses_cfg.h
make -j4
make install
cd -
wget https://www.openssl.org/source/openssl-1.1.0f.tar.gz -O - | tar xz
cd openssl-1.1.0f
./config --prefix=/opt/prefix shared -Wl,-rpath=/opt/prefix/lib -D__USE_XOPEN2K8
make -j4
make install
cd -
wget http://tukaani.org/xz/xz-5.2.3.tar.gz -O - | tar xz
cd xz-5.2.3
./configure --prefix=/opt/prefix
make -j4
make install
cd -
wget https://nixos.org/releases/patchelf/patchelf-0.9/patchelf-0.9.tar.gz -O - | tar xz
cd patchelf-0.9
if [[ $ABI == "32" ]]; then
LDFLAGS="$LDFLAGS -Wl,-rpath,/opt/devtools-6.2/lib" ./configure --prefix=/opt/prefix
else
LDFLAGS="$LDFLAGS -Wl,-rpath,/opt/devtools-6.2/lib64" ./configure --prefix=/opt/prefix
fi
make -j4
make install
cd -
wget https://sqlite.org/2017/sqlite-autoconf-3200100.tar.gz -O - | tar xz
cd sqlite-autoconf-3200100
./configure --prefix=/opt/prefix
make -j4
make install
cd -
wget ftp://sourceware.org/pub/libffi/libffi-3.2.1.tar.gz -O - | tar xz
cd libffi-3.2.1
./configure --prefix=/opt/prefix
make -j4
make install
cd -
cd /opt/prefix/lib
find . -name ffi.h | xargs -i ln -sf ../lib/{} ../include
find . -name ffitarget.h | xargs -i ln -sf ../lib/{} ../include
cd -
wget https://downloads.sourceforge.net/project/expat/expat/2.2.4/expat-2.2.4.tar.bz2 -O - | tar xj
cd expat-2.2.4
./configure --prefix=/opt/prefix
make -j4
make install
cd -
wget https://ftp.gnu.org/gnu/gdbm/gdbm-1.13.tar.gz -O - | tar xz
cd gdbm-1.13
./configure --prefix=/opt/prefix
make -j4
make install
cd -
wget https://prdownloads.sourceforge.net/tcl/tcl8.6.7-src.tar.gz -O - | tar xz
cd tcl8.6.7/unix
./configure --prefix=/opt/prefix
make -j4
make install
cd -
wget https://prdownloads.sourceforge.net/tcl/tk8.6.7-src.tar.gz -O - | tar xz
cd tk8.6.7/unix
./configure --prefix=/opt/prefix
make -j4
make install
cd -
wget https://www.python.org/ftp/python/2.7.14/Python-2.7.14.tgz -O - | tar xz
cd Python-2.7.14
./configure --prefix=/opt/prefix/cpython-2.7
make -j4
make install
cd -
ln -sf /opt/prefix/lib/libtcl8.6.so /opt/prefix/lib/libtcl.so
ln -sf /opt/prefix/lib/libtk8.6.so /opt/prefix/lib/libtk.so
if [ -d /opt/prefix/lib64 ]; then
cp /opt/prefix/lib64/* /opt/prefix/lib
fi
ln -sf /opt/prefix/lib/libexpat.so /opt/prefix/lib/libexpat.so.0