wget "${makemkv_oss_url}"
tar zxf "$(basename "${makemkv_oss_url}")"
cd "${makemkv_oss_dir}/"
-make -f makefile.linux
-cp out/libdriveio.so.0 out/libmakemkv.so.1 "${install_dir}/lib/"
+if [ -f makefile.linux ]; then
+ # v1.8.6 and older
+ make -f makefile.linux
+else
+ # v1.8.7 and newer
+ ./configure
+ make
+fi
+rm out/*.full
+cp out/lib* "${install_dir}/lib/"
cp out/makemkv "${install_dir}/bin/"
popd