Skip to content

Commit 5acb91f

Browse files
committed
smpeg2: fix build on arm64 linux
1 parent 6d8a3d5 commit 5acb91f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Formula/s/smpeg2.rb

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,12 @@ class Smpeg2 < Formula
4141
patch :DATA
4242

4343
def install
44+
args = ["--with-sdl-prefix=#{Formula["sdl2"].opt_prefix}", "--disable-sdltest"]
45+
# Help old config scripts identify arm64 linux
46+
args << "--build=aarch64-unknown-linux-gnu" if OS.linux? && Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
47+
4448
system "./autogen.sh"
45-
system "./configure", "--with-sdl-prefix=#{Formula["sdl2"].opt_prefix}",
46-
"--disable-sdltest",
47-
*std_configure_args
49+
system "./configure", *args, *std_configure_args
4850
system "make"
4951
system "make", "install"
5052

0 commit comments

Comments
 (0)