]> code.delx.au - bluplayer/commitdiff
build-makemkv.sh supports v1.8.7
authorJames Bunton <jamesbunton@delx.net.au>
Sat, 14 Dec 2013 18:45:59 +0000 (05:45 +1100)
committerJames Bunton <jamesbunton@delx.net.au>
Sat, 14 Dec 2013 18:45:59 +0000 (05:45 +1100)
build-makemkv.sh

index 55461d660e8043e24d33554ed70bc7cf5a23c670..a612f3f49016b7c117f03344a182a7b29431ee0e 100755 (executable)
@@ -34,8 +34,16 @@ pushd "${build_dir}/unpack-oss/"
 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