-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
Copy pathPortfile
96 lines (75 loc) · 3.05 KB
/
Portfile
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# -*- 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 1.1.1 v
revision 0
checksums rmd160 ac864ac450dd86deed573b110bc4836410eee50e \
sha256 914662e16245e062ed73f90112fbb4548241300843a7772d8d441bb6859de45b \
size 13644189
categories multimedia
license BSD
maintainers {mascguy @mascguy} openmaintainer
description Portable C implementation of the AV1 Image File Format
long_description {*}${description}
github.tarball_from archive
cmake.generator Ninja
depends_build-append \
port:pkgconfig
depends_lib-append \
port:aom \
port:dav1d \
path:include/turbojpeg.h:libjpeg-turbo \
port:libpng \
port:libyuv \
port:svt-av1 \
port:zlib
configure.args-append \
-DAVIF_BUILD_APPS:BOOL=ON \
-DAVIF_CODEC_AOM:BOOL=ON \
-DAVIF_CODEC_DAV1D:BOOL=ON \
-DAVIF_CODEC_LIBGAV1=OFF \
-DAVIF_CODEC_RAV1E:BOOL=OFF \
-DAVIF_CODEC_SVT:BOOL=ON \
-DAVIF_ENABLE_WERROR:BOOL=OFF
platform darwin {
if {${os.major} < 10 || (${os.major} == 10 && ${configure.build_arch} eq "ppc")} {
# TODO: Disable rav1e on <10.6, due to issues with cargo-c; enable if fixed.
# Do not enable on PPC until Rust is fixed or it becomes possible to build with gccrs.
# See: https://trac.macports.org/ticket/65434
if {[variant_isset rav1e]} {
error "Variant rav1e not supported for macOS 10.5 and earlier, or PPC"
}
}
# pandoc only available/working on 10.8+
if {${os.major} < 12} {
if {[variant_isset docs]} {
error "Variant docs not supported for macOS 10.7 and earlier"
}
}
}
variant rav1e description {Enable codec rav1e} {
depends_lib-append \
port:rav1e
configure.args-replace \
-DAVIF_CODEC_RAV1E:BOOL=OFF \
-DAVIF_CODEC_RAV1E:BOOL=ON
}
variant docs description {Build man pages} {
depends_build-append \
port:pandoc
configure.args-append \
-DAVIF_BUILD_MAN_PAGES=ON
}
variant tests description {Enable testing} {
depends_test-append \
port:gtest
configure.args-append \
-DAVIF_BUILD_TESTS=ON
test.run yes
}
if {![variant_isset rav1e]} {
notes-append "Support for rav1e now disabled by default; enable via +rav1e"
}
# Exclude pre-release candidates in livecheck
github.livecheck.regex {([0-9.]+)}