build-libmad.sh

build-libmad.sh
#!/bin/bash
set -x
. $(dirname $0)/config
 
cd $SOURCES
wget -c ftp://ftp.mars.org/pub/mpeg/libmad-0.15.1b.tar.gz
wget -c http://bis.org.pl/SOURCES/libmad-0.15.1b-gcc-4.3-fix.patch
 
cd $BUILD
 
rm -rf libmad-0.15.1b/
tar -xf $SOURCES/libmad-0.15.1b.tar.gz
cd libmad-0.15.1b/
 
patch -p1 < $SOURCES/libmad-0.15.1b-gcc-4.3-fix.patch
 
CPPFLAGS="$CF" \
LDFLAGS="$LF" \
./configure \
        --prefix=/usr \
        --host=$CROSS_COMPILE \
        --enable-shared \
        --enable-fpm=arm \
        --disable-debugging \
	--enable-speed
 
make $J
make DESTDIR=$STAGING install
ostatnio zmienione: 2011/08/19 13:50