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:
parent
742e70f185
commit
a1aebe3386
2 changed files with 11 additions and 10 deletions
|
@ -102,8 +102,8 @@ ram.runtime = "200M"
|
|||
"libheif-dev",
|
||||
"build-essential",
|
||||
"pkg-config",
|
||||
"autoconf",
|
||||
"automake",
|
||||
"cmake",
|
||||
"ninja",
|
||||
"libx265-dev",
|
||||
"libde265-dev",
|
||||
"libaom-dev",
|
||||
|
|
|
@ -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
|
||||
mkdir build
|
||||
pushd build
|
||||
ynh_exec_and_print_stderr_only_if_error ynh_exec_as "$app" \
|
||||
cmake --preset=release --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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue