-
Notifications
You must be signed in to change notification settings - Fork 38
/
build_deps
executable file
·110 lines (85 loc) · 2.64 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
#!/bin/bash
set -ex
env
wget https://ftp.gnu.org/gnu/ncurses/ncurses-6.1.tar.gz -O - | tar xz
cd ncurses-6.1
./configure --prefix=/opt/prefix --enable-widec --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.1c.tar.gz -O - | tar xz
cd openssl-1.1.1c
./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.4.tar.gz -O - | tar xz
cd xz-5.2.4
./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/2019/sqlite-autoconf-3300100.tar.gz -O - | tar xz
cd sqlite-autoconf-3300100
./configure --prefix=/opt/prefix --enable-fts5
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://github.com/libexpat/libexpat/releases/download/R_2_2_9/expat-2.2.9.tar.bz2 -O - | tar xj
cd expat-2.2.9
./configure --prefix=/opt/prefix
make -j4
make install
cd -
wget https://ftp.gnu.org/gnu/gdbm/gdbm-1.18.1.tar.gz -O - | tar xz
cd gdbm-1.18.1
./configure --prefix=/opt/prefix
make -j4
make install
cd -
# wget https://www.python.org/ftp/python/2.7.15/Python-2.7.15.tgz -O - | tar xz
# cd Python-2.7.15
# ./configure --prefix=/opt/prefix/cpython-2.7
# make -j4
# make install
# cd -
wget https://prdownloads.sourceforge.net/tcl/tcl8.6.9-src.tar.gz -O - | tar xz
cd tcl8.6.9/unix
./configure --prefix=/opt/prefix
make -j4
make install
cd -
wget https://prdownloads.sourceforge.net/tcl/tk8.6.9.1-src.tar.gz -O - | tar xz
cd tk8.6.9/unix
./configure --prefix=/opt/prefix
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
ln -sf /opt/prefix/bin/ncursesw6-config /opt/prefix/bin/ncurses5-config