Skip to content

Commit

Permalink
libheif: update to 1.16.1
Browse files Browse the repository at this point in the history
  • Loading branch information
mascguy committed May 9, 2023
1 parent 988da27 commit 7c19fe8
Showing 1 changed file with 24 additions and 13 deletions.
37 changes: 24 additions & 13 deletions multimedia/libheif/Portfile
Expand Up @@ -2,13 +2,14 @@

PortSystem 1.0
PortGroup github 1.0
PortGroup cmake 1.1

github.setup strukturag libheif 1.15.2 v
github.setup strukturag libheif 1.16.1 v
revision 0

checksums rmd160 54782c77a0d849aef47eb85ce71b9d527667d9d7 \
sha256 7a4c6077f45180926583e2087571371bdd9cb21b6e6fada85a6fbd544f26a0e2 \
size 1749773
checksums rmd160 3f9cb03118f246cc6516b142208d25252de30fea \
sha256 ac15b54b6d7c315710e156d119b8a1bfc89f29621e99222b2750b1f31c9c3558 \
size 1338412

categories multimedia
license LGPL-3+
Expand All @@ -18,23 +19,30 @@ long_description ${name} is {*}${description}.

github.tarball_from releases

depends_build-append port:pkgconfig
depends_build-append \
port:pkgconfig

depends_lib-append port:dav1d \
path:lib/pkgconfig/gdk-pixbuf-2.0.pc:gdk-pixbuf2 \
depends_lib-append \
port:aom \
path:include/turbojpeg.h:libjpeg-turbo \
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

compiler.cxx_standard 2011
configure.args-append \
-DENABLE_PLUGIN_LOADING:BOOL=OFF

This comment has been minimized.

Copy link
@mascguy

mascguy May 9, 2023

Author Member

@MarcusCalhoun-Lopez I'll add comments regarding plugin loading, after work today. In short, disabling this only affects environments where dependencies may or may not be available. (Effectively it simply disables runtime library loading, in favor of build-time linking.) But since we enable everything - and pull in all dependencies - we don't lose any functionality.

Oh, and forgot the most important point: Enabling this causes failures at build time. So I also need to check whether upstream is aware of issue. (Ditto for a fix, so we at least have the option for supporting dynamic plugin capability in the future.)


configure.args-append --disable-go
compiler.cxx_standard 2011

variant tests description {Enable tests} {
configure.args-append --enable-tests
configure.args-append \
-DBUILD_TESTING:BOOL=ON \
-DWITH_REDUCED_VISIBILITY:BOOL=OFF
test.run yes
}

Expand All @@ -43,12 +51,15 @@ platform darwin {
# 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 --disable-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 --disable-aom
configure.args-append \
-DWITH_AOM_DECODER:BOOL=OFF \
-DWITH_AOM_ENCODER:BOOL=OFF
}
}

0 comments on commit 7c19fe8

Please sign in to comment.