diff --git a/manifest.toml b/manifest.toml index fff4f6f..3e4edec 100644 --- a/manifest.toml +++ b/manifest.toml @@ -55,8 +55,8 @@ ram.runtime = "200M" autoupdate.strategy = "latest_github_release" [resources.sources.libheif] - url = "https://github.com/strukturag/libheif/releases/download/v1.12.0/libheif-1.12.0.tar.gz" - sha256 = "e1ac2abb354fdc8ccdca71363ebad7503ad731c84022cf460837f0839e171718" + url = "https://github.com/strukturag/libheif/releases/download/v1.17.6/libheif-1.17.6.tar.gz" + sha256 = "8390baf4913eda0a183e132cec62b875fb2ef507ced5ddddc98dfd2f17780aee" autoupdate.strategy = "latest_github_release" autoupdate.upstream = "https://github.com/strukturag/libheif" @@ -102,8 +102,8 @@ ram.runtime = "200M" "libheif-dev", "build-essential", "pkg-config", - "autoconf", - "automake", + "cmake", + "ninja-build", "libx265-dev", "libde265-dev", "libaom-dev", diff --git a/scripts/_common.sh b/scripts/_common.sh index 1ce2711..886c10b 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -29,14 +29,15 @@ function build_libheif { export GOCACHE="$install_dir/build/.cache" pushd "$install_dir/libheif" || ynh_die - # mkdir -p "$install_dir/local" - # chown -R $app:$app "$install_dir/local" - ynh_exec_as "$app" ./autogen.sh 2>&1 - ynh_exec_as "$app" ./configure --prefix="$install_dir/local" --disable-gdk-pixbuf 2>&1 - ynh_exec_as "$app" make clean 2>&1 - ynh_exec_as "$app" make 2>&1 - ynh_exec_as "$app" make install 2>&1 - ynh_exec_as "$app" make clean 2>&1 + ynh_exec_as "$app" mkdir build + pushd build + ynh_exec_and_print_stderr_only_if_error ynh_exec_as "$app" \ + cmake --preset=release -DCMAKE_INSTALL_PREFIX="$install_dir/local" -DWITH_GDK_PIXBUF=OFF -G Ninja .. + ynh_exec_and_print_stderr_only_if_error ynh_exec_as "$app" \ + ninja + ynh_exec_and_print_stderr_only_if_error ynh_exec_as "$app" \ + ninja install + popd popd || ynh_die }