blob: d9f9b9e834b043993eb5cd6bc8b2b6722d31e568 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
# $FreeBSD$
PORTNAME= libavif
DISTVERSIONPREFIX= v
DISTVERSION= 0.9.0
PORTREVISION= 1
CATEGORIES= graphics
PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/
PATCHFILES+= 2340cdb5f0c2.patch:-p1 # https://github.com/AOMediaCodec/libavif/pull/296
MAINTAINER= jbeich@FreeBSD.org
COMMENT= Library for encoding and decoding .avif files
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libpng.so:graphics/png
USES= cmake compiler:c11 jpeg pkgconfig
USE_GITHUB= yes
USE_LDCONFIG= yes
GH_ACCOUNT= AOMediaCodec
CMAKE_ON= AVIF_BUILD_APPS AVIF_BUILD_TESTS
TEST_TARGET= avif_test_all
OPTIONS_DEFINE= AOM DAV1D GAV1 LIBYUV PIXBUF RAV1E SVTAV1
OPTIONS_DEFAULT=AOM DAV1D PIXBUF
OPTIONS_SUB= yes
AOM_DESC= AV1 encoding/decoding via libaom
AOM_LIB_DEPENDS= libaom.so:multimedia/aom
AOM_CMAKE_BOOL= AVIF_CODEC_AOM
DAV1D_DESC= AV1 decoding via libdav1d
DAV1D_LIB_DEPENDS= libdav1d.so:multimedia/dav1d
DAV1D_CMAKE_BOOL= AVIF_CODEC_DAV1D
GAV1_DESC= AV1 decoding via libgav1
GAV1_LIB_DEPENDS= libgav1.so:multimedia/libgav1
GAV1_CMAKE_BOOL= AVIF_CODEC_LIBGAV1
LIBYUV_DESC= Colorspace conversion via libyuv
LIBYUV_BUILD_DEPENDS= libyuv>=0.0.1755:graphics/libyuv
LIBYUV_LIB_DEPENDS= libyuv.so:graphics/libyuv
PIXBUF_USES= gnome
PIXBUF_USE= GNOME=gdkpixbuf2
PIXBUF_CMAKE_BOOL= AVIF_BUILD_GDK_PIXBUF
RAV1E_DESC= AV1 encoding via librav1e
RAV1E_LIB_DEPENDS= librav1e.so:multimedia/librav1e
RAV1E_CMAKE_BOOL= AVIF_CODEC_RAV1E
SVTAV1_DESC= AV1 encoding via SVT-AV1
SVTAV1_LIB_DEPENDS= libSvtAv1Enc.so:multimedia/svt-av1
SVTAV1_CMAKE_BOOL= AVIF_CODEC_SVT
.include <bsd.port.mk>
|