Skip to content

Commit

Permalink
libjpeg-turbo-devel: disable Altivec on G3s
Browse files Browse the repository at this point in the history
  • Loading branch information
evanmiller authored and mascguy committed Oct 17, 2021
1 parent 3a94a87 commit ce00301
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion graphics/libjpeg-turbo-devel/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ checksums sha1 6bf63c869105d341011cd4915816de888338231a \
sha256 bef89803e506f27715c5627b1e3219c95b80fc31465d4452de2a909d382e4444 \
size 2255497

configure.args -DWITH_JPEG8=ON

if {![info exists universal_possible]} {
set universal_possible [expr {${os.universal_supported} && [llength ${configure.universal_archs}] >= 2}]
}
Expand All @@ -50,8 +52,12 @@ if {${universal_possible} && [variant_isset universal]} {
} elseif {${configure.build_arch} in {i386 x86_64}} {
depends_build-append port:nasm
configure.env ASM_NASM=${prefix}/bin/nasm
} elseif {${configure.build_arch} eq "ppc"} {
if {[catch {sysctl hw.vectorunit} result] || $result == 0} {
configure.args-append -DWITH_SIMD=OFF
archive_sites
}
}
configure.args -DWITH_JPEG8=1

variant java description "Add Java support" {
PortGroup java 1.0
Expand Down

0 comments on commit ce00301

Please sign in to comment.