libvpx stable port information

Package: libvpx
Version: 0.9.7
Revision: 1
Description: WebM VP8 Codec SDK
DescPackaging: <<
Only contains headers and static library. Doesn't make shared libs.
<<
License: BSD
Homepage: http://www.webmproject.org/
Maintainer: Daniel Johnson

Source: http://webm.googlecode.com/files/%n-v%v-p1.tar.bz2
Source-MD5: bd888cffde8d9c3061c7fd719b0cd4ce

PatchScript: <<
perl -pi -e 's/-isysroot.*sdk//g' build/make/configure.sh
perl -pi -e 's/USE_POSIX_MMAP 0/USE_POSIX_MMAP 1/' vpxenc.c
<<

BuildDepends: (%m != powerpc) yasm
BuildDependsOnly: true

NoSetCPPFLAGS: true
NoSetLDFLAGS: true

CompileScript: <<
#!/bin/bash -ev

let version=`uname -r | cut -d . -f 1`
if [ $version -gt 9 ]; then
let version=9
fi

if [ "%m" = "powerpc" ]; then
./configure %c --target=ppc32-darwin${version}-gcc
elif [ "%m" = "i386" ]; then
if [ $version = "8" ]; then
./configure %c --target=x86-darwin${version}-gcc --disable-postproc
else
./configure %c --target=x86-darwin${version}-gcc
fi
else
./configure %c --target=%m-darwin${version}-gcc
fi
make
<<

InstallScript: <<
make install DESTDIR=%d
chmod 0644 %i/include/vpx/*
<<

DocFiles: AUTHORS CHANGELOG LICENSE README PATENTS

SplitOff: <<
Package: %N-bin
Files: bin

DocFiles: AUTHORS CHANGELOG LICENSE README PATENTS
<<