-
Notifications
You must be signed in to change notification settings - Fork 2
/
ports.sh
executable file
·654 lines (549 loc) · 19.4 KB
/
ports.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
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
#!/bin/sh
#
# ports.sh [clean | fetch | build]
#
# This script is used to build libraries required by OpenZone for some platforms. Currently it
# builds all required libraries for NaCl and Android configurations that are not provided by SDKs.
# The following commands may be given (`build` is assumed if none):
#
# - `clean`: Delete everything in `ports` directory except downloaded sources.
# - `buildclean`: Delete build directories. Downloaded sources and installed libraries are left
# intact.
# - `fetch`: Download sources into `ports/archives` directory.
# - `build`: Builds all libraries for all platforms.
#
platforms=(
NaCl-x86_64
# NaCl-x86_64-glibc
NaCl-i686
# NaCl-i686-glibc
PNaCl
Android14-i686
Android14-ARM
Android14-ARMv7a
Android14-MIPS
)
projectDir=`pwd`
topDir="$projectDir/ports"
source ./sdkPaths
function msg()
{
echo -ne "\e[1;32m"
echo ================================================================================
echo
echo " $@"
echo
echo ================================================================================
echo -ne "\e[0m"
}
function setup_nacl64()
{
platform="NaCl-x86_64" # Platform name.
buildDir="$topDir/$platform" # Build and install directory.
triplet="x86_64-nacl" # Platform triplet (tools prefix).
hostTriplet="$triplet" # Host triplet for autotools configure.
sysroot="$naclPrefix/x86_64-nacl" # SDK sysroot.
toolsroot="$naclPrefix" # SDK tool root.
toolchain="$projectDir/cmake/$platform.Toolchain.cmake" # CMake toolchain.
export CPP="$toolsroot/bin/$triplet-cpp"
export CC="$toolsroot/bin/$triplet-gcc"
export AR="$toolsroot/bin/$triplet-ar"
export RANLIB="$toolsroot/bin/$triplet-ranlib"
export STRIP="$toolsroot/bin/$triplet-strip"
export PKG_CONFIG_PATH="$buildDir/usr/lib/pkgconfig"
export PKG_CONFIG_LIBDIR="$buildDir/usr/lib"
export PATH="$toolsroot/bin:$PATH"
export CPPFLAGS="-I$buildDir/usr/include"
export CFLAGS="-O3 -ffast-math -msse3"
export LDFLAGS="-L$buildDir/usr/lib -lnosys"
}
function setup_nacl64GNU()
{
platform="NaCl-x86_64-glibc" # Platform name.
buildDir="$topDir/$platform" # Build and install directory.
triplet="x86_64-nacl" # Platform triplet (tools prefix).
hostTriplet="$triplet" # Host triplet for autotools configure.
sysroot="$naclGNUPrefix/x86_64-nacl" # SDK sysroot.
toolsroot="$naclGNUPrefix" # SDK tool root.
toolchain="$projectDir/cmake/$platform.Toolchain.cmake" # CMake toolchain.
export CPP="$toolsroot/bin/$triplet-cpp"
export CC="$toolsroot/bin/$triplet-gcc"
export AR="$toolsroot/bin/$triplet-ar"
export RANLIB="$toolsroot/bin/$triplet-ranlib"
export STRIP="$toolsroot/bin/$triplet-strip"
export PKG_CONFIG_PATH="$buildDir/usr/lib/pkgconfig"
export PKG_CONFIG_LIBDIR="$buildDir/usr/lib"
export PATH="$toolsroot/bin:$PATH"
export CPPFLAGS="-I$buildDir/usr/include"
export CFLAGS="-O3 -ffast-math -msse3"
export LDFLAGS="-L$buildDir/usr/lib"
}
function setup_nacl32()
{
platform="NaCl-i686" # Platform name.
buildDir="$topDir/$platform" # Build and install directory.
triplet="i686-nacl" # Platform triplet (tools prefix).
hostTriplet="$triplet" # Host triplet for autotools configure.
sysroot="$naclPrefix/i686-nacl" # SDK sysroot.
toolsroot="$naclPrefix" # SDK tool root.
toolchain="$projectDir/cmake/$platform.Toolchain.cmake" # CMake toolchain.
export CPP="$toolsroot/bin/$triplet-cpp"
export CC="$toolsroot/bin/$triplet-gcc"
export AR="$toolsroot/bin/$triplet-ar"
export RANLIB="$toolsroot/bin/$triplet-ranlib"
export STRIP="$toolsroot/bin/$triplet-strip"
export PKG_CONFIG_PATH="$buildDir/usr/lib/pkgconfig"
export PKG_CONFIG_LIBDIR="$buildDir/usr/lib"
export PATH="$toolsroot/bin:$PATH"
export CPPFLAGS="-I$buildDir/usr/include"
export CFLAGS="-O3 -ffast-math -msse3 -mfpmath=sse"
export LDFLAGS="-L$buildDir/usr/lib -lnosys"
}
function setup_nacl32GNU()
{
platform="NaCl-i686-glibc" # Platform name.
buildDir="$topDir/$platform" # Build and install directory.
triplet="i686-nacl" # Platform triplet (tools prefix).
hostTriplet="$triplet" # Host triplet for autotools configure.
sysroot="$naclGNUPrefix/i686-nacl" # SDK sysroot.
toolsroot="$naclGNUPrefix" # SDK tool root.
toolchain="$projectDir/cmake/$platform.Toolchain.cmake" # CMake toolchain.
export CPP="$toolsroot/bin/$triplet-cpp"
export CC="$toolsroot/bin/$triplet-gcc"
export AR="$toolsroot/bin/$triplet-ar"
export RANLIB="$toolsroot/bin/$triplet-ranlib"
export STRIP="$toolsroot/bin/$triplet-strip"
export PKG_CONFIG_PATH="$buildDir/usr/lib/pkgconfig"
export PKG_CONFIG_LIBDIR="$buildDir/usr/lib"
export PATH="$toolsroot/bin:$PATH"
export CPPFLAGS="-I$buildDir/usr/include"
export CFLAGS="-O3 -ffast-math -msse3 -mfpmath=sse"
export LDFLAGS="-L$buildDir/usr/lib"
}
function setup_pnacl()
{
platform="PNaCl" # Platform name.
buildDir="$topDir/$platform" # Build and install directory.
triplet="pnacl" # Platform triplet (tools prefix).
hostTriplet="i686-nacl" # Host triplet for autotools configure.
sysroot="$pnaclPrefix/usr" # SDK sysroot.
toolsroot="$pnaclPrefix" # SDK tool root.
toolchain="$projectDir/cmake/$platform.Toolchain.cmake" # CMake toolchain.
#export CPP="$toolsroot/bin/$triplet-cpp"
export -n CPP
export CC="$toolsroot/bin/$triplet-clang"
export AR="$toolsroot/bin/$triplet-ar"
export RANLIB="$toolsroot/bin/$triplet-ranlib"
export STRIP="$toolsroot/bin/$triplet-strip"
export PKG_CONFIG_PATH="$buildDir/usr/lib/pkgconfig"
export PKG_CONFIG_LIBDIR="$buildDir/usr/lib"
export PATH="$toolsroot/bin:$PATH"
export CPPFLAGS="-I$buildDir/usr/include"
export CFLAGS="-O3 -ffast-math"
export LDFLAGS="-L$buildDir/usr/lib -lnosys"
}
function setup_ndkX86()
{
platform="Android14-i686" # Platform name.
buildDir="$topDir/$platform" # Build and install directory.
triplet="i686-linux-android" # Platform triplet (tools prefix).
hostTriplet="$triplet" # Host triplet for autotools configure.
sysroot="$ndkX86Platform" # SDK sysroot.
toolsroot="$ndkX86Tools" # SDK tool root.
toolchain="$projectDir/cmake/$platform.Toolchain.cmake" # CMake toolchain.
export CPP="$toolsroot/bin/$triplet-cpp"
export CC="$toolsroot/bin/$triplet-gcc"
export AR="$toolsroot/bin/$triplet-ar"
export RANLIB="$toolsroot/bin/$triplet-ranlib"
export STRIP="$toolsroot/bin/$triplet-strip"
export PKG_CONFIG_PATH="$buildDir/usr/lib/pkgconfig"
export PKG_CONFIG_LIBDIR="$buildDir/usr/lib"
export PATH="$toolsroot/bin:$PATH"
export CPPFLAGS="--sysroot=$sysroot -I$buildDir/usr/include"
export CFLAGS="-Ofast -fPIC -msse3 -mfpmath=sse"
export LDFLAGS="--sysroot=$sysroot -L$buildDir/usr/lib"
}
function setup_ndkARM()
{
platform="Android14-ARM" # Platform name.
buildDir="$topDir/$platform" # Build and install directory.
triplet="arm-linux-androideabi" # Platform triplet (tools prefix).
hostTriplet="$triplet" # Host triplet for autotools configure.
sysroot="$ndkARMPlatform" # SDK sysroot.
toolsroot="$ndkARMTools" # SDK tool root.
toolchain="$projectDir/cmake/$platform.Toolchain.cmake" # CMake toolchain.
export CPP="$toolsroot/bin/$triplet-cpp"
export CC="$toolsroot/bin/$triplet-gcc"
export AR="$toolsroot/bin/$triplet-ar"
export RANLIB="$toolsroot/bin/$triplet-ranlib"
export STRIP="$toolsroot/bin/$triplet-strip"
export PKG_CONFIG_PATH="$buildDir/usr/lib/pkgconfig"
export PKG_CONFIG_LIBDIR="$buildDir/usr/lib"
export PATH="$toolsroot/bin:$PATH"
export CPPFLAGS="--sysroot=$sysroot -I$buildDir/usr/include"
export CFLAGS="-Wno-psabi -Ofast -fPIC"
export LDFLAGS="--sysroot=$sysroot -L$buildDir/usr/lib"
}
function setup_ndkARM7()
{
platform="Android14-ARMv7a" # Platform name.
buildDir="$topDir/$platform" # Build and install directory.
triplet="arm-linux-androideabi" # Platform triplet (tools prefix).
hostTriplet="$triplet" # Host triplet for autotools configure.
sysroot="$ndkARMPlatform" # SDK sysroot.
toolsroot="$ndkARMTools" # SDK tool root.
toolchain="$projectDir/cmake/$platform.Toolchain.cmake" # CMake toolchain.
export CPP="$toolsroot/bin/$triplet-cpp"
export CC="$toolsroot/bin/$triplet-gcc"
export AR="$toolsroot/bin/$triplet-ar"
export RANLIB="$toolsroot/bin/$triplet-ranlib"
export STRIP="$toolsroot/bin/$triplet-strip"
export PKG_CONFIG_PATH="$buildDir/usr/lib/pkgconfig"
export PKG_CONFIG_LIBDIR="$buildDir/usr/lib"
export PATH="$toolsroot/bin:$PATH"
export CPPFLAGS="--sysroot=$sysroot -I$buildDir/usr/include"
export CFLAGS="-Wno-psabi -Ofast -fPIC -march=armv7-a -mfloat-abi=softfp -mfpu=neon"
export LDFLAGS="--sysroot=$sysroot -L$buildDir/usr/lib -Wl,--fix-cortex-a8"
}
function setup_ndkMIPS()
{
platform="Android14-MIPS" # Platform name.
buildDir="$topDir/$platform" # Build and install directory.
triplet="mipsel-linux-android" # Platform triplet (tools prefix).
hostTriplet="$triplet" # Host triplet for autotools configure.
sysroot="$ndkMIPSPlatform" # SDK sysroot.
toolsroot="$ndkMIPSTools" # SDK tool root.
toolchain="$projectDir/cmake/$platform.Toolchain.cmake" # CMake toolchain.
export CPP="$toolsroot/bin/$triplet-cpp"
export CC="$toolsroot/bin/$triplet-gcc"
export AR="$toolsroot/bin/$triplet-ar"
export RANLIB="$toolsroot/bin/$triplet-ranlib"
export STRIP="$toolsroot/bin/$triplet-strip"
export PKG_CONFIG_PATH="$buildDir/usr/lib/pkgconfig"
export PKG_CONFIG_LIBDIR="$buildDir/usr/lib"
export PATH="$toolsroot/bin:$PATH"
export CPPFLAGS="--sysroot=$sysroot -I$buildDir/usr/include"
export CFLAGS="-Ofast -fPIC"
export LDFLAGS="--sysroot=$sysroot -L$buildDir/usr/lib"
}
function clean()
{
for platform in ${platforms[@]}; do
rm -rf "$topDir/$platform"
done
}
function buildclean()
{
for platform in ${platforms[@]}; do
for subDir in `echo "$topDir/$platform/*"`; do
[[ $subDir == */usr ]] || rm -rf "$subDir"
done
done
}
function download()
{
mkdir -p "$topDir/archives"
wget -c -nc -P "$topDir/archives" $@
}
function fetch()
{
# zlib
download 'http://zlib.net/zlib-1.2.7.tar.bz2'
# PhysicsFS 2.1
cd "$topDir/archives"
if [[ -d physfs ]]
then cd physfs && hg pull -u
else hg clone 'http://hg.icculus.org/icculus/physfs/'
fi
# Lua
download 'http://www.lua.org/ftp/lua-5.2.1.tar.gz'
# LuaJIT
download 'http://luajit.org/download/LuaJIT-2.0.0.tar.gz'
# SDL
download 'http://www.libsdl.org/release/SDL-1.2.15.tar.gz'
# SDL2
cd "$topDir/archives"
if [[ -d SDL ]]
then cd SDL && hg pull -u
else hg clone 'http://hg.libsdl.org/SDL'
fi
# SDL_ttf
download 'http://www.libsdl.org/projects/SDL_ttf/release/SDL_ttf-2.0.11.tar.gz'
# SDL2_ttf
cd "$topDir/archives"
if [[ -d SDL_ttf ]]
then cd SDL_ttf && hg pull -u
else hg clone 'http://hg.libsdl.org/SDL_ttf'
fi
# FreeType
download 'http://sourceforge.net/projects/freetype/files/freetype2/2.4.10/freetype-2.4.10.tar.bz2'
# OpenAL Soft
download 'http://kcat.strangesoft.net/openal-releases/openal-soft-1.15.1.tar.bz2'
# libogg
download 'http://downloads.xiph.org/releases/ogg/libogg-1.3.0.tar.xz'
# libvorbis
download 'http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.3.tar.xz'
}
function prepare()
{
[[ -d "$buildDir/$1" ]] && return 1
msg "$1 @ $platform"
mkdir -p "$buildDir"
if [[ -d "$topDir/archives/$2" ]]; then
cp -R "$topDir/archives/$2" "$buildDir"
else
tar xf "$topDir/archives/$2" -C "$buildDir"
fi
cd "$buildDir/$1"
}
function applyPatches()
{
for patchFile in $@; do
patch -p1 < "$projectDir/etc/patches/$patchFile" || exit 1
done
}
function cmakeBuild()
{
mkdir -p build && cd build
cmake \
-D CMAKE_TOOLCHAIN_FILE="$toolchain" \
-D CMAKE_BUILD_TYPE="Release" \
-D CMAKE_INSTALL_PREFIX="/usr" \
-D PLATFORM_PORTS_PREFIX="$buildDir" \
$@ \
.. || return 1
make -j4 || exit 1
make install DESTDIR="$buildDir"
}
function autotoolsBuild()
{
mkdir -p build && cd build
../configure --host=$hostTriplet --prefix=/usr $@ || exit 1
make -j4 || exit 1
make install DESTDIR="$buildDir"
}
function finish()
{
[[ -d "$buildDir"/usr/lib/pkgconfig ]] || return
# Fix paths in pkg-config files.
for file in "$buildDir"/usr/lib/pkgconfig/*.pc; do
sed -r 's|=/usr|='"$buildDir"'/usr|g' -i $file
done
}
function build_zlib()
{
prepare zlib-1.2.7 zlib-1.2.7.tar.bz2 || return
CFLAGS="$CPPFLAGS $CFLAGS -Dunlink=puts" ./configure --prefix=/usr --static
make -j4 || return 1
make install DESTDIR="$buildDir"
rm -rf "$buildDir"/usr/lib/libz.so*
finish
}
function build_physfs()
{
prepare physfs physfs || return
applyPatches physfs-2.1.patch
cmakeBuild -D PHYSFS_BUILD_SHARED=0 -D PHYSFS_BUILD_TEST=0
finish
}
function build_lua()
{
prepare lua-5.2.1 lua-5.2.1.tar.gz || return
applyPatches lua-5.2.1.patch
make -j4 CC="$CC" AR="$AR rcu" RANLIB="$RANLIB" CFLAGS="$CFLAGS" PLAT="generic" MYLIBS="$LDFLAGS"
make INSTALL_TOP="$buildDir/usr" install
finish
}
# TODO: LuaJIT cross-compiling doesn't work.
function build_luajit()
{
prepare LuaJIT-2.0.0 LuaJIT-2.0.0.tar.gz || return
make amalg PREFIX=/usr CC="$CC" BUILDMODE=static
make install DESTDIR="$buildDir" PREFIX=/usr
finish
}
function build_sdl()
{
prepare SDL-1.2.15 SDL-1.2.15.tar.gz || return
applyPatches SDL-1.2.15.patch
./autogen.sh
case $triplet in
*nacl)
# Assembly causes NaCl validity check to fail when NEXE is loading.
autotoolsBuild --disable-shared --disable-pthread-sem --disable-assembly
;;
*)
autotoolsBuild --disable-shared
;;
esac
finish
}
function build_sdl2()
{
prepare SDL SDL || return
applyPatches SDL-hg.patch
cp "$projectDir/etc/SDL2-CMakeLists-gen.sh" "$buildDir/SDL"
buildDir="$buildDir" ./SDL2-CMakeLists-gen.sh
cmakeBuild
finish
}
function build_freetype()
{
prepare freetype-2.4.10 freetype-2.4.10.tar.bz2 || return
autotoolsBuild --disable-shared --without-bzip2
finish
}
function build_sdl_ttf()
{
prepare SDL_ttf-2.0.11 SDL_ttf-2.0.11.tar.gz || return
applyPatches SDL_ttf-2.0.11.patch
autotoolsBuild \
--with-freetype-prefix="$buildDir/usr" \
--with-sdl-prefix="$buildDir/usr" \
--without-x
finish
}
function build_sdl2_ttf()
{
prepare SDL_ttf SDL_ttf || return
applyPatches SDL_ttf-hg.patch
autotoolsBuild \
--with-freetype-prefix="$buildDir/usr" \
--with-sdl-prefix="$buildDir/usr" \
--without-x
finish
}
function build_openal()
{
prepare openal-soft-1.15.1 openal-soft-1.15.1.tar.bz2 || return
applyPatches openal-soft-1.15.1.patch
cmakeBuild -D UTILS=0 -D EXAMPLES=0 -D LIBTYPE=STATIC
finish
}
function build_libogg()
{
prepare libogg-1.3.0 libogg-1.3.0.tar.xz || return
applyPatches libogg-1.3.0.patch
autotoolsBuild
finish
}
function build_libvorbis()
{
prepare libvorbis-1.3.3 libvorbis-1.3.3.tar.xz || return
applyPatches libvorbis-1.3.3.patch
autotoolsBuild
finish
}
function build()
{
# zlib
setup_nacl64 && build_zlib
# setup_nacl64GNU && build_zlib
setup_nacl32 && build_zlib
# setup_nacl32GNU && build_zlib
setup_pnacl && build_zlib
# PhysicsFS
setup_nacl64 && build_physfs
# setup_nacl64GNU && build_physfs
setup_nacl32 && build_physfs
# setup_nacl32GNU && build_physfs
setup_pnacl && build_physfs
setup_ndkX86 && build_physfs
setup_ndkARM && build_physfs
setup_ndkARM7 && build_physfs
setup_ndkMIPS && build_physfs
# Lua
setup_nacl64 && build_lua
# setup_nacl64GNU && build_lua
setup_nacl32 && build_lua
# setup_nacl32GNU && build_lua
setup_pnacl && build_lua
setup_ndkX86 && build_lua
setup_ndkARM && build_lua
setup_ndkARM7 && build_lua
setup_ndkMIPS && build_lua
# LuaJIT
# setup_nacl64 && build_luajit
# setup_nacl64GNU && build_luajit
# setup_nacl32 && build_luajit
# setup_nacl32GNU && build_luajit
# setup_pnacl && build_luajit
# setup_ndkX86 && build_luajit
# setup_ndkARM && build_luajit
# setup_ndkARM7 && build_luajit
# setup_ndkMIPS && build_luajit
# SDL
setup_nacl64 && build_sdl
# setup_nacl64GNU && build_sdl
setup_nacl32 && build_sdl
# setup_nacl32GNU && build_sdl
setup_pnacl && build_sdl
setup_ndkX86 && build_sdl2
setup_ndkARM && build_sdl2
setup_ndkARM7 && build_sdl2
setup_ndkMIPS && build_sdl2
# FreeType
setup_nacl64 && build_freetype
# setup_nacl64GNU && build_freetype
setup_nacl32 && build_freetype
# setup_nacl32GNU && build_freetype
setup_pnacl && build_freetype
setup_ndkX86 && build_freetype
setup_ndkARM && build_freetype
setup_ndkARM7 && build_freetype
setup_ndkMIPS && build_freetype
# SDL_ttf
setup_nacl64 && build_sdl_ttf
# setup_nacl64GNU && build_sdl_ttf
setup_nacl32 && build_sdl_ttf
# setup_nacl32GNU && build_sdl_ttf
setup_pnacl && build_sdl_ttf
setup_ndkX86 && build_sdl2_ttf
setup_ndkARM && build_sdl2_ttf
setup_ndkARM7 && build_sdl2_ttf
setup_ndkMIPS && build_sdl2_ttf
# OpenAL Soft
setup_nacl64 && build_openal
# setup_nacl64GNU && build_openal
setup_nacl32 && build_openal
# setup_nacl32GNU && build_openal
setup_pnacl && build_openal
setup_ndkX86 && build_openal
setup_ndkARM && build_openal
setup_ndkARM7 && build_openal
setup_ndkMIPS && build_openal
# libogg
setup_nacl64 && build_libogg
# setup_nacl64GNU && build_libogg
setup_nacl32 && build_libogg
# setup_nacl32GNU && build_libogg
setup_pnacl && build_libogg
setup_ndkX86 && build_libogg
setup_ndkARM && build_libogg
setup_ndkARM7 && build_libogg
setup_ndkMIPS && build_libogg
# libvorbis
setup_nacl64 && build_libvorbis
# setup_nacl64GNU && build_libvorbis
setup_nacl32 && build_libvorbis
# setup_nacl32GNU && build_libvorbis
setup_pnacl && build_libvorbis
setup_ndkX86 && build_libvorbis
setup_ndkARM && build_libvorbis
setup_ndkARM7 && build_libvorbis
setup_ndkMIPS && build_libvorbis
}
case $1 in
clean)
clean
;;
buildclean)
buildclean
;;
fetch)
fetch
;;
build|*)
build
;;
esac