forked from wilkie/buildtools
-
Notifications
You must be signed in to change notification settings - Fork 14
/
devtools.sh
executable file
·62 lines (45 loc) · 1.15 KB
/
devtools.sh
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
source scripts/functions.sh
# --- Variables ---
source scripts/nativevars.sh
# --- Directory creation ---
mkdir -p build
mkdir -p $PREFIX
cd build
setphase "MAKE OBJECT DIRECTORIES"
mkdir -p ncurses-obj
mkdir -p slang-obj
mkdir -p nano-obj
NANO_VER=2.3.1
SLANG_VER=2.2.4
NCURSES_VER=5.9
setphase "FETCH NANO"
wget $WFLAGS http://www.nano-editor.org/dist/v2.3/nano-2.3.1.tar.gz
tar -xf nano-2.3.1.tar.gz
setphase FETCH SLANG
wget $WFLAGS ftp://space.mit.edu/pub/davis/slang/v2.2/slang-$SLANG_VER.tar.gz
tar -xf slang-$SLANG_VER.tar.gz
setphase FETCH NCURSES
wget $WFLAGS http://ftp.gnu.org/pub/gnu/ncurses/ncurses-$NCURSES_VER.tar.gz
tar -xf ncurses-$NCURSES_VER.tar.gz
doPatch nano
doPatch slang
doPatch ncurses
setphase "COMPILE NCURSES"
cd ncurses-obj
../ncurses-$NCURSES_VER/configure $CROSSCONFIG --disable-shared ||exit
make || exit
make install || exit
cd ..
#setphase "COMPILE SLANG"
#cd slang-$SLANG_VER
#./configure $CROSSCONFIG --disable-shared ||exit
#make || exit
#make install || exit
#cd ..
setphase "COMPILE NANO"
cd nano-obj
../nano-$NANO_VER/configure $CROSSCONFIG --disable-shared ||exit
#--with-slang
make || exit
make install || exit
cd ..