Corrected small typo in build script.
[vorbis-lancer-gcc.git] / build-script
blob850990fb7617303471bd5855c4c6607c54ca4431
1 #!/bin/bash
3 # Builds a statically linked version of oggenc.
4 # =============================================
6 # Where to keep the generated binaries.
7 BIN_LOCATION=`pwd`/out
9 # Name of the libogg subdirectory.
10 LIBOGG_DIR="libogg-1.1.3"
12 # Name of the vorbis-aotuv subdirectory.
13 VORBIS_AOTUV_DIR="aotuv-b5_20061024"
15 # Name of the vorbis-tools subdirectory.
16 VORBIS_TOOLS_DIR="vorbis-tools-1.2.0"
18 # Optimisation flags to use for the compiler.
19 OPTIMISATION_FLAGS="-O3"
21 # Floating point math flags.
22 # -mfpmath=sse : use SSE-type instructions for all floating-point math.
23 # -msse : use SSE (as opposed to SSE2/SSE3)
24 FP_FLAGS="-mfpmath=sse -msse"
26 # 1. Build libogg.
27 # ----------------
29 cd $LIBOGG_DIR
30 CFLAGS="-fno-strict-aliasing $OPTIMISATION_FLAGS $FP_FLAGS" sh ./configure --prefix=$BIN_LOCATION --disable-shared --enable-static
31 make clean
32 make install
33 cd ..
35 # 2. Build vorbis-aotuv.
36 # ----------------------
37 cd $VORBIS_AOTUV_DIR
38 CFLAGS="-fno-strict-aliasing $OPTIMISATION_FLAGS $FP_FLAGS" sh ./configure --prefix=$BIN_LOCATION --disable-shared --enable-static --with-ogg=$BIN_LOCATION
39 make clean
40 make install
41 cd ..
43 # 3. Build vorbis-tools.
44 # ----------------------
45 cd $VORBIS_TOOLS_DIR
46 CFLAGS="-fno-strict-aliasing $OPTIMISATION_FLAGS $FP_FLAGS" sh ./configure --prefix=$BIN_LOCATION --without-speex --without-flac --without-curl --disable-ogg123 --disable-oggdec --disable-ogginfo --disable-vcut --disable-vorbiscomment --disable-shared --enable-static --with-ogg=$BIN_LOCATION --with-vorbis=$BIN_LOCATION
47 make clean
48 make install
49 cd ..
51 # 4. Copy the oggenc executable into the current directory,
52 # so people can find it.
53 cp ./out/bin/oggenc ./oggenc