# Get the source from the Git repository
mkdir -p -m 0700 ~/src
cd ~/src
test -d aom &&
( cd aom ; git pull )
test ! -d aom &&
git clone https://aomedia.googlesource.com/aom
cd aom
# Create a directory for build files
mkdir bld
cd bld
# If you've run CMake before, clean up
test -f Makefile && make clean
test -f CMakeCache.txt && rm CMakeCache.txt
# Read through the web site (or ../README.md) for information about
# prerequisites, configuration, building, testing, ...
# List all configuration options
cmake -LH .. | less
# Configure the build with CMake
cmake -DBUILD_SHARED_LIBS=1 ..
# Build it
make
# Become root to install it
su
# Install it
# It will figure out lib|lib64
make install
ldconfig
# Become yourself again
exit
# Leave a text note in installed because there is no tarball
mkdir -p -m 0700 ~/installed
echo "aom from git ~/src/aom" > ~/installed/aom.txt
# If you ever want to uninstall aom
# Remove all files listed in install_manifest.txt (look at it first)
# Remove the source
cd ~/src/aom/bld
su
test -s install_manifest.txt && cat install_manifest.txt | rm
test -d /usr/local/include/aom && rm -r /usr/local/include/aom
rm -f /usr/local/bin/aomdec /usr/local/bin/aomenc \
/usr/local/lib/libaom.* /usr/local/lib/pkgconfig/aom.pc
test -d /usr/local/lib64 &&
( cd /usr/local/lib64
rm -f libaom.* pkgconfig/aom.pc )
ldconfig
exit
rm -f ~/installed/aom.txt
test ~/src/aom && rm -r ~/src/aom