-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
Portfile
65 lines (54 loc) · 2.46 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
# -*- 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 strukturag libheif 1.16.1 v
revision 0
checksums rmd160 3f9cb03118f246cc6516b142208d25252de30fea \
sha256 ac15b54b6d7c315710e156d119b8a1bfc89f29621e99222b2750b1f31c9c3558 \
size 1338412
categories multimedia
license LGPL-3+
maintainers {mcalhoun @MarcusCalhoun-Lopez} {mascguy @mascguy} openmaintainer
description a ISO/IEC 23008-12:2017 HEIF file format decoder and encoder
long_description ${name} is {*}${description}.
github.tarball_from releases
depends_build-append \
port:pkgconfig
depends_lib-append \
port:aom \
port:dav1d \
path:lib/pkgconfig/gdk-pixbuf-2.0.pc:gdk-pixbuf2 \
port:libde265 \
path:include/turbojpeg.h:libjpeg-turbo \
port:libpng \
port:rav1e \
port:svt-av1 \
port:webp \
port:x265
configure.args-append \
-DENABLE_PLUGIN_LOADING:BOOL=OFF
compiler.cxx_standard 2011
variant tests description {Enable tests} {
configure.args-append \
-DBUILD_TESTING:BOOL=ON \
-DWITH_REDUCED_VISIBILITY:BOOL=OFF
test.run yes
}
platform darwin {
if {${os.major} < 11} {
# TODO: Disable rav1e on 10.6, due to issues with cargo-c; re-enable once fixed
# See: https://trac.macports.org/ticket/65434
depends_lib-delete port:rav1e
configure.args-append \
-DWITH_RAV1E:BOOL=OFF
}
if {${os.major} < 10 || (${os.major} == 10 && ${build_arch} eq "ppc")} {
# https://trac.macports.org/ticket/62619
# aom does not build on 10.6 Rosetta too
depends_lib-delete port:aom
configure.args-append \
-DWITH_AOM_DECODER:BOOL=OFF \
-DWITH_AOM_ENCODER:BOOL=OFF
}
}