#!/bin/bash

# unset the SUBDIR variable since it changes the behavior of make here
unset SUBDIR

./configure \
        --prefix="${PREFIX}" \
        --cc=${CC} \
        --disable-doc \
        --enable-gpl \
        --enable-avresample \
        --enable-gnutls \
        --enable-hardcoded-tables \
        --enable-libfreetype \
        --disable-openssl \
        --enable-libvpx \
        --enable-pthreads \
        --enable-libopus \
        --enable-postproc \
        --enable-libopenh264 \
        --enable-libx264 \
        --enable-pic \
        --enable-pthreads \
        --enable-shared \
        --enable-static \
        --enable-version3 \
        --enable-zlib \
      	--enable-libmp3lame

make -j${CPU_COUNT} ${VERBOSE_AT}
make install -j${CPU_COUNT} ${VERBOSE_AT}
