forked from iPodLinux-Community/SBaGen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mk-tremor-linux-xarm
37 lines (27 loc) · 1.01 KB
/
mk-tremor-linux-xarm
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
#!/bin/bash
# Cross-compilation to ARM. Adjust XBIN below according to your
# cross-compiler location.
#
# Assumes that you have downloaded the Tremor CVS snapshot from the
# Vorbis site and unpacked it (resulting in a directory named Tremor):
#
# http://www.xiph.org/ogg/vorbis/download/tremor_cvs_snapshot.tgz
# http://www.xiph.org/ogg/vorbis/download/
#
# It make be in a numbered release file by now, so look around the
# site if you can't find it.
#
# You may also need to install libtool to get this to build.
XBIN=/usr/local/arm/2.95.3/bin/
XGCC=$XBIN/arm-linux-gcc
XCPP=$XBIN/cpp
cd Tremor || { echo "Tremor directory not found!!"; exit 1; }
./autogen.sh --host=arm CC=$XGCC CPP=$XCPP || exit 1
make || exit 1
echo ""
cp -v .libs/libvorbisidec.a ../libs/linux-arm-libvorbisidec.a || {
echo libvorbisidec.a missing; exit 1; }
#cp -v ivorbiscodec.h ivorbisfile.h ogg.h os_types.h config_types.h ../libs/ || {
# echo Not all expected header files present; exit 1; }
make clean >/dev/null 2>&1
echo DONE