#!/bin/bash

Dependencies: ogg-vorbis.tcz
Build dependencies: ogg-vorbis/dev.tcz, SDL/dev.tcz

tar xjvf libtheora*.tar.bz2
cd libtheora-1.1.1
./configure --prefix=/usr/local --build=i486-pc-linux-gnu
make
make install DESTDIR=/mnt/hda2/libtheora/pkg

cd /mnt/hda2/libtheora/pkg
find . | xargs file | grep "executable" | grep ELF | grep "not stripped" | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
find . | xargs file | grep "shared object" | grep ELF | grep "not stripped" | cut -f 1 -d : | xargs strip -g 2> /dev/null

