abinfo "Building OpenH264 runtime and applications ..."
make

abinfo "Building Gecko Media Plugin (GMP) ..."
make plugin

abinfo "Installing OpenH264 runtime and applications ..."
make install \
    DESTDIR="$PKGDIR"

abinfo "Building Gecko Media Plugin (GMP) components ..."
make plugin

abinfo "Installing Gecko Media Plugin (GMP) components ..."
install -Dvm755 "$SRCDIR"/libgmpopenh264.so* \
    -t "$PKGDIR"/usr/lib/mozilla/plugins/gmp-gmpopenh264/system-installed/
install -Dvm644 "$SRCDIR"/gmpopenh264.info \
    -t "$PKGDIR"/usr/lib/mozilla/plugins/gmp-gmpopenh264/system-installed/

abinfo "Installing codec applications ..."
install -Dvm755 "$SRCDIR"/h264dec \
    "$PKGDIR"/usr/bin/h264dec
install -Dvm755 "$SRCDIR"/h264enc \
    "$PKGDIR"/usr/bin/h264enc
