3 # Builds a statically linked version of oggenc.
4 # =============================================
6 # Where to keep the generated binaries.
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"
30 CFLAGS
="-fno-strict-aliasing $OPTIMISATION_FLAGS $FP_FLAGS" sh .
/configure
--prefix=$BIN_LOCATION --disable-shared --enable-static
35 # 2. Build vorbis-aotuv.
36 # ----------------------
38 CFLAGS
="-fno-strict-aliasing $OPTIMISATION_FLAGS $FP_FLAGS" sh .
/configure
--prefix=$BIN_LOCATION --disable-shared --enable-static --with-ogg=$BIN_LOCATION
43 # 3. Build vorbis-tools.
44 # ----------------------
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
51 # 4. Copy the oggenc executable into the current directory,
52 # so people can find it.
53 cp .
/out
/bin
/oggenc .
/oggenc