cd
test -f installed/lve-050112.src.tar.bz2 &&
mv installed/lve-050112.src.tar.bz2 .
test ! -f lve-050112.src.tar.bz2 &&
wget http://download.sf.net/lvempeg/lve-050112.src.tar.bz2
cd /usr/local
test -d ./lve && rm -r ./lve
tar xjvf ~/lve-050112.src.tar.bz2
cd lve
test -d ../src/ffmpeg && ln -sf ../src/ffmpeg
test ! -d ../src/ffmpeg &&
find ../src -type d -maxdepth 1 -name "ffmpeg-*" -exec ln -sf {} ffmpeg \;
# If you use a version of ffmpeg that has the --enable-gpl configure flag,
# like the current CVS version, apply this patch to the lve Makefile:
wget -nc http://englanders.cc/pub/linux/patches/lve-040322-ffmpeg.patch &&
patch -p0 < lve-040322-ffmpeg.patch
## make failed with this error for me (with 040233 and 050112):
# region.c: In static member function `static void T_REGION::rg_sort()':
# region.c:338: error: array bound forbidden after parenthesized type-id
# region.c:338: note: try removing the parentheses around the type-id
## This patch makes the suggested change. This is probably a gcc 3.4.x-ism.
wget -nc http://englanders.cc/pub/linux/patches/lve-040322-region.c.patch &&
patch -p0 < lve-040322-region.c.patch
# The Makefile (qdir/Makefile) looks for Qt in /usr/lib/qt3 by default. My
# qt dir is /usr/lib/qt-3.3.3 and /usr/lib/qt is a symlink pointing to that.
# Rather than add a symlink just for lve, I pass QT_DIR to the Makefile. If
# your Qt is elsewhere, specify where yours is.
make QT_DIR=/usr/lib/qt