From e1e8569117df11cb63de3a6ac7d3a5fd2079edae Mon Sep 17 00:00:00 2001 From: Vincent Rabaud Date: Tue, 2 Apr 2024 11:29:26 +0200 Subject: [PATCH] Add installation instructions --- README.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/README.md b/README.md index 3db4812f13..e1b5809948 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,33 @@ Please see the examples in the "examples" directory. If you're already building `libavif`, enable the CMake option `AVIF_BUILD_EXAMPLES` in order to build and run the examples too. +## Installation + +`libavif` is a package in most major OSs. + +### Windows + +```sh +vcpkg install libavif +``` + +### OSX + +```sh +brew install libavif +``` + +### Linux + +Debian-based distributions: +```sh +sudo apt install libavif-dev +``` +RedHat-based distributions: +```sh +sudo yum -y install libavif +``` + ## Build Notes Building libavif requires [CMake](https://cmake.org/).