Skip to content

Commit

Permalink
madplay: update config.{guess,sub} for arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
jmroot committed Mar 2, 2025
1 parent cfd40a9 commit 904fd7a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion audio/madplay/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ long_description MAD is a high-quality MPEG audio decoder. \
All three audio layers (Layer I, Layer II, and Layer \
III a.k.a. MP3) are fully implemented.
homepage https://www.mars.org/home/rob/proj/mpeg/
platforms darwin
master_sites ftp://ftp.mars.org/pub/mpeg/
checksums sha1 29105eb27c1416aa33c8d1ab3404a8e5f0aecd3f

Expand All @@ -29,3 +28,12 @@ platform darwin i386 {
configure.cflags-append -msse
configure.args-append --build=${build_arch}-apple-darwin${os.major}
}

# Update config.guess and config.sub to recognise arm64.
depends_build-append port:automake
post-patch {
set automake_dirs [glob -directory ${prefix}/share automake-*]
set automake_dir [lindex [lsort -command vercmp $automake_dirs] end]
copy -force ${automake_dir}/config.guess ${automake_dir}/config.sub \
${worksrcpath}
}

0 comments on commit 904fd7a

Please sign in to comment.