Skip to content

Commit

Permalink
libavif: new port
Browse files Browse the repository at this point in the history
  • Loading branch information
mascguy committed Aug 7, 2022
1 parent dddc37a commit 2026830
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions multimedia/libavif/Portfile
@@ -0,0 +1,43 @@
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem 1.0
PortGroup github 1.0
PortGroup cmake 1.1

github.setup AOMediaCodec libavif 0.10.1 v
revision 0

categories multimedia
license Permissive
maintainers {mascguy @mascguy} openmaintainer

description Portable C implementation of the AV1 Image File Format
long_description {*}${description}

github.tarball_from archive

checksums rmd160 17a452e69ec04107295613b554bb7bb7d61ae789 \
sha256 66e82854ceb84a3e542bc140a343bc90e56c68f3ecb4fff63e636c136ed9a05e \
size 2085698

cmake.generator Ninja

depends_build-append \
path:lib/pkgconfig/gdk-pixbuf-2.0.pc:gdk-pixbuf2 \
port:pkgconfig

depends_lib-append \
port:aom \
port:dav1d \
path:include/turbojpeg.h:libjpeg-turbo \
port:libpng \
port:rav1e \
port:svt-av1 \
port:zlib

configure.args-append \
-DAVIF_ENABLE_WERROR:BOOL=OFF \
-DAVIF_CODEC_AOM:BOOL=ON \
-DAVIF_CODEC_DAV1D:BOOL=ON \
-DAVIF_CODEC_RAV1E:BOOL=ON \
-DAVIF_CODEC_SVT:BOOL=ON

3 comments on commit 2026830

@mascguy
Copy link
Member Author

@mascguy mascguy commented on 2026830 Aug 7, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jmroot The licensing for libavif is a bit fuzzy, as some of the items mentioned - such as android_jni/gradlew* - aren't being used for this port. (At least AFAIK, based on the CMake config, etc.)

https://github.com/AOMediaCodec/libavif/blob/v0.10.1/LICENSE

Your thoughts?

@mascguy
Copy link
Member Author

@mascguy mascguy commented on 2026830 Aug 8, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jmroot The licensing for libavif is a bit fuzzy, as some of the items mentioned - such as android_jni/gradlew* - aren't being used for this port. (At least AFAIK, based on the CMake config, etc.)

https://github.com/AOMediaCodec/libavif/blob/v0.10.1/LICENSE

Your thoughts?

Based on Linux distros, it looks like the license is BSD. Updated via commit: 9ff64b5

@cooljeanius
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, if you could mark this ticket as closed by this, I'd appreciate it: https://trac.macports.org/ticket/65224
Thanks.

Please sign in to comment.