Skip to content

Commit

Permalink
added build logs plus output filtering plus cleanup plus ??
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas Pfenniger committed Jul 23, 2010
1 parent 9557366 commit 29bf0f6
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 74 deletions.
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -13,11 +13,11 @@ NOTE: there remains some dependencies I don't know how to remove. If you have an
libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7716000)
/lib/ld-linux.so.2 (0xb78e0000)

Dependencies
------------
Build dependencies
------------------

# Debian & Ubuntu
$ apt-get install build-essential git-core curl tar <FIXME???>
$ apt-get install build-essential curl tar <FIXME???>


Build
Expand Down
146 changes: 75 additions & 71 deletions build.sh
Expand Up @@ -9,86 +9,90 @@ mkdir -p build target
ROOT=`readlink -f .`
BUILD=`readlink -f build`
TARGET=`readlink -f target`
LOG_FILE="$ROOT"/build-`date +%Y-%m-%d@%Hh%M`.log

export LDFLAGS="-L${TARGET}/lib"
#export CFLAGS="-I${TARGET}/include $LDFLAGS -static-libgcc -Wl,-Bstatic -lc"
export CFLAGS="-I${TARGET}/include $LDFLAGS"

# NOTE: this is a fetchurl parameter, nothing to do with the current script
#export TARGET_DIR="$BUILD"

log() {
echo $ $@
#$@ 1>"$LOG_FILE" 2>&1
$@ 1>"$LOG_FILE"
}

log cd $BUILD
log ../fetchurl "http://www.tortall.net/projects/yasm/releases/yasm-1.0.1.tar.gz"
log ../fetchurl "http://zlib.net/zlib-1.2.5.tar.bz2"
log ../fetchurl "http://www.bzip.org/1.0.5/bzip2-1.0.5.tar.gz"
log ../fetchurl "http://downloads.xiph.org/releases/ogg/libogg-1.2.0.tar.gz"
log ../fetchurl "http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.1.tar.bz2"
log ../fetchurl "http://downloads.xiph.org/releases/theora/libtheora-1.1.1.tar.bz2"
log ../fetchurl "http://webm.googlecode.com/files/libvpx-0.9.1.tar.bz2"
log ../fetchurl "http://downloads.sourceforge.net/project/faac/faac-src/faac-1.28/faac-1.28.tar.bz2?use_mirror=auto"
log ../fetchurl "ftp://ftp.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-20100620-2245.tar.bz2"
log ../fetchurl "http://downloads.xvid.org/downloads/xvidcore-1.2.2.tar.bz2"
log ../fetchurl "http://downloads.sourceforge.net/project/lame/lame/3.98.4/lame-3.98.4.tar.gz?use_mirror=auto"
log ../fetchurl "http://www.ffmpeg.org/releases/ffmpeg-0.6.tar.gz"

log cd "$BUILD/yasm-1.0.1"
log ./configure --prefix=$TARGET
log make -j 4 && make install

log cd "$BUILD/zlib-1.2.5"
log ./configure --prefix=$TARGET
log make -j 4 && make install

log cd "$BUILD/bzip2-1.0.5"
log make
log make install PREFIX=$TARGET

# Ogg before vorbis
log cd "$BUILD/libogg-1.2.0"
log ./configure --prefix=$TARGET --enable-static --disable-shared
log make -j 4 && make install

cd $BUILD
../fetchurl "http://www.tortall.net/projects/yasm/releases/yasm-1.0.1.tar.gz"
cd yasm-1.0.1
./configure --prefix=$TARGET
make -j 4 && make install
# Vorbis before theora
log cd "$BUILD/libvorbis-1.3.1"
log ./configure --prefix=$TARGET --enable-static --disable-shared
log make -j 4 && make install

cd $BUILD
../fetchurl "http://zlib.net/zlib-1.2.5.tar.bz2"
cd zlib-1.2.5
./configure --prefix=$TARGET
make -j 4 && make install

cd $BUILD
../fetchurl "http://www.bzip.org/1.0.5/bzip2-1.0.5.tar.gz"
cd bzip2-1.0.5
make
make install PREFIX=$TARGET
log cd "$BUILD/libtheora-1.1.1"
log ./configure --prefix=$TARGET --enable-static --disable-shared
log make -j 4 && make install

# Ogg before vorbis
cd $BUILD
../fetchurl "http://downloads.xiph.org/releases/ogg/libogg-1.2.0.tar.gz"
cd libogg-1.2.0
./configure --prefix=$TARGET --enable-static --disable-shared
make -j 4 && make install

# Vorbis before theora
cd $BUILD
../fetchurl "http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.1.tar.bz2"
cd libvorbis-1.3.1
./configure --prefix=$TARGET --enable-static --disable-shared
make -j 4 && make install

cd $BUILD
../fetchurl "http://downloads.xiph.org/releases/theora/libtheora-1.1.1.tar.bz2"
cd libtheora-1.1.1
./configure --prefix=$TARGET --enable-static --disable-shared
make -j 4 && make install

cd $BUILD
../fetchurl "http://webm.googlecode.com/files/libvpx-0.9.1.tar.bz2"
cd libvpx-0.9.1
./configure --prefix=$TARGET --disable-shared
make -j 4 && make install

cd $BUILD
../fetchurl "http://downloads.sourceforge.net/project/faac/faac-src/faac-1.28/faac-1.28.tar.bz2?use_mirror=auto"
cd faac-1.28
./configure --prefix=$TARGET --enable-static --disable-shared
# FIXME: gcc incompatibility
sed -i -e "s|^char \*strcasestr.*|//\0|" common/mp4v2/mpeg4ip.h
make -j 4 && make install

cd $BUILD
../fetchurl "ftp://ftp.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-20100620-2245.tar.bz2"
cd x264-*
./configure --prefix=$TARGET --enable-static --disable-shared
make -j 4 && make install

cd $BUILD
../fetchurl "http://downloads.xvid.org/downloads/xvidcore-1.2.2.tar.bz2"
cd xvidcore/build/generic
./configure --prefix=$TARGET --enable-static --disable-shared
make -j 4 && make install
rm $TARGET/lib/libxvidcore.so.*

cd $BUILD
../fetchurl "http://downloads.sourceforge.net/project/lame/lame/3.98.4/lame-3.98.4.tar.gz?use_mirror=auto"
cd lame-3.98.4
./configure --prefix=$TARGET --enable-static --disable-shared
make -j 4 && make install
log cd "$BUILD/libvpx-0.9.1"
log ./configure --prefix=$TARGET --disable-shared
log make -j 4 && make install


log cd "$BUILD/faac-1.28"
log ./configure --prefix=$TARGET --enable-static --disable-shared
# FIXME: gcc incompatibility, does not work with log()
sed -i -e "s|^char \*strcasestr.*|//\0|" common/mp4v2/mpeg4ip.h
log make -j 4 && make install


log cd "$BUILD/x264-snapshot-20100620-2245"
log ./configure --prefix=$TARGET --enable-static --disable-shared
log make -j 4 && make install


log cd "$BUILD/xvidcore/build/generic"
log ./configure --prefix=$TARGET --enable-static --disable-shared
log make -j 4 && make install
log rm $TARGET/lib/libxvidcore.so.*

log cd "$BUILD/lame-3.98.4"
log ./configure --prefix=$TARGET --enable-static --disable-shared
log make -j 4 && make install

# FFMpeg
cd $BUILD
../fetchurl "http://www.ffmpeg.org/releases/ffmpeg-0.6.tar.gz"
cd ffmpeg-0.6
./configure --prefix=${TARGET} --extra-version=static --disable-debug --disable-shared --enable-static --extra-cflags=--static --disable-ffplay --disable-ffserver --disable-doc --enable-gpl --enable-pthreads --enable-postproc --enable-gray --enable-runtime-cpudetect --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-bzlib --enable-zlib --enable-nonfree --enable-version3 --enable-libvpx --disable-devices
make -j 4 && make install
log cd "$BUILD/ffmpeg-0.6"
log ./configure --prefix=${TARGET} --extra-version=static --disable-debug --disable-shared --enable-static --extra-cflags=--static --disable-ffplay --disable-ffserver --disable-doc --enable-gpl --enable-pthreads --enable-postproc --enable-gray --enable-runtime-cpudetect --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-bzlib --enable-zlib --enable-nonfree --enable-version3 --enable-libvpx --disable-devices
log make -j 4 && make install

0 comments on commit 29bf0f6

Please sign in to comment.