Skip to content

Commit

Permalink
More closely match wheels-dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Dec 24, 2024
1 parent aa5b7d5 commit 51db808
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions depends/install_libavif.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ version=1.1.1

pushd libavif-$version

if uname -s | grep -q Darwin; then
if [ $(uname) == "Darwin" ]; then
PREFIX=$(brew --prefix)
else
PREFIX=/usr
Expand Down Expand Up @@ -49,15 +49,16 @@ if [ "$HAS_ENCODER" != 1 ] || [ "$HAS_DECODER" != 1 ]; then
LIBAVIF_CMAKE_FLAGS+=(-DAVIF_CODEC_AOM=LOCAL)
fi

cmake -G Ninja -S . -B build \
cmake \
-DCMAKE_INSTALL_PREFIX=$PREFIX \
-DAVIF_LIBSHARPYUV=LOCAL \
-DAVIF_LIBYUV=LOCAL \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_NAME_DIR=$PREFIX/lib \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_MACOSX_RPATH=OFF \
"${LIBAVIF_CMAKE_FLAGS[@]}"
-DAVIF_LIBSHARPYUV=LOCAL \
-DAVIF_LIBYUV=LOCAL \
"${LIBAVIF_CMAKE_FLAGS[@]}" \
.

sudo ninja -C build install
sudo make install

popd

0 comments on commit 51db808

Please sign in to comment.