build-vorbis.sh

build-vorbis.sh
#!/bin/bash
set -x
. $(dirname $0)/config
 
cd $SOURCES
wget -c \
  http://downloads.xiph.org/releases/vorbis/vorbis-tools-1.4.0.tar.gz
wget -c \
  http://bis.org.pl/SOURCES/vorbis-tools_tremor.patch
 
 
cd $BUILD
 
rm -rf vorbis-tools-1.4.0
tar -xf $SOURCES/vorbis-tools-1.4.0.tar.gz
cd vorbis-tools-1.4.0
 
patch -p1 < $SOURCES/vorbis-tools_tremor.patch
 
CFLAGS="-I$STAGING/usr/include $CF" \
LIBS="-L$STAGING/usr/lib $LF -lz" \
AO_CFLAGS="-I$STAGING/usr/include" \
AO_LIBS="-L$STAGING/usr/lib -lao" \
VORBIS_CFLAGS=-"I$STAGING/usr/include" \
VORBIS_LIBS="-L$STAGING/usr/lib -lvorbisidec" \
OGG_CFLAGS="-I$STAGING/usr/include" \
OGG_LIBS="-L$STAGING/usr/lib -logg" \
CURL_CFLAGS="-I$STAGING/usr/include" \
CURL_LIBS="-L$STAGING/usr/lib -lcurl" \
./configure \
        --host=$CROSS_COMPILE \
        --prefix=/usr \
	--with-speex 
 
sed -i -r 's/^(hardcode_libdir_flag_spec=")..*"$/\1"/' libtool
 
make -C share 
make -C ogg123
make -C ogg123 DESTDIR=$STAGING install
ostatnio zmienione: 2011/08/19 13:50