1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/photoview_ynh.git synced 2024-09-03 20:05:55 +02:00

Build libheif with cmake

This commit is contained in:
Salamandar 2024-06-10 18:45:22 +02:00
parent 742e70f185
commit a1aebe3386
2 changed files with 11 additions and 10 deletions

View file

@ -102,8 +102,8 @@ ram.runtime = "200M"
"libheif-dev", "libheif-dev",
"build-essential", "build-essential",
"pkg-config", "pkg-config",
"autoconf", "cmake",
"automake", "ninja",
"libx265-dev", "libx265-dev",
"libde265-dev", "libde265-dev",
"libaom-dev", "libaom-dev",

View file

@ -29,14 +29,15 @@ function build_libheif {
export GOCACHE="$install_dir/build/.cache" export GOCACHE="$install_dir/build/.cache"
pushd "$install_dir/libheif" || ynh_die pushd "$install_dir/libheif" || ynh_die
# mkdir -p "$install_dir/local" mkdir build
# chown -R $app:$app "$install_dir/local" pushd build
ynh_exec_as "$app" ./autogen.sh 2>&1 ynh_exec_and_print_stderr_only_if_error ynh_exec_as "$app" \
ynh_exec_as "$app" ./configure --prefix="$install_dir/local" --disable-gdk-pixbuf 2>&1 cmake --preset=release --prefix="$install_dir/local" -DWITH_GDK_PIXBUF=OFF -G Ninja ..
ynh_exec_as "$app" make clean 2>&1 ynh_exec_and_print_stderr_only_if_error ynh_exec_as "$app" \
ynh_exec_as "$app" make 2>&1 ninja
ynh_exec_as "$app" make install 2>&1 ynh_exec_and_print_stderr_only_if_error ynh_exec_as "$app" \
ynh_exec_as "$app" make clean 2>&1 ninja install
popd
popd || ynh_die popd || ynh_die
} }