blob: b71f203fc334dc89348369219e8e63762999fd83 (
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
60
61
62
63
64
65
66
|
PORTNAME= libavif
DISTVERSIONPREFIX= v
DISTVERSION= 0.9.3
PORTREVISION= 3
CATEGORIES= graphics
PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/
PATCHFILES+= 2340cdb5f0c2.patch:-p1 # https://github.com/AOMediaCodec/libavif/pull/296
PATCHFILES+= dce4c2a5f4bb.patch:-p1 # https://github.com/AOMediaCodec/libavif/pull/783
PATCHFILES+= 4d24e4456ba4.patch:-p1 # https://github.com/AOMediaCodec/libavif/pull/807
PATCHFILES+= 993cd893f520.patch:-p1 # https://github.com/AOMediaCodec/libavif/pull/807
PATCHFILES+= 29424a42c7e2.patch:-p1 # https://github.com/AOMediaCodec/libavif/pull/807
PATCHFILES+= de08d6436ea3.patch:-p1 # https://github.com/AOMediaCodec/libavif/pull/807
PATCHFILES+= 480fb4bf3ed6.patch:-p1 # https://github.com/AOMediaCodec/libavif/pull/807
PATCHFILES+= c18228ff746a.patch:-p1 # https://github.com/AOMediaCodec/libavif/pull/886
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:testing compiler:c11 cpe jpeg pkgconfig
CPE_VENDOR= aomedia
USE_GITHUB= yes
USE_LDCONFIG= yes
GH_ACCOUNT= AOMediaCodec
CMAKE_ON= AVIF_BUILD_APPS
CMAKE_TESTING_ON= AVIF_BUILD_TESTS
CMAKE_TESTING_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.1774: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>
|