diff --git a/Formula/dosbox-x.rb b/Formula/dosbox-x.rb index df1bea3cff684..ac31aa857823c 100644 --- a/Formula/dosbox-x.rb +++ b/Formula/dosbox-x.rb @@ -1,12 +1,11 @@ class DosboxX < Formula desc "DOSBox with accurate emulation and wide testing" homepage "http://dosbox-x.com/" + url "https://github.com/joncampbell123/dosbox-x/archive/v0.801.tar.gz" + sha256 "40f94cdcc5c9a374c522de7eb2c2288eaa8c6de85d0bd6a730f48bd5d84a89f9" + revision 1 head "https://github.com/joncampbell123/dosbox-x.git" - stable do - url "https://github.com/joncampbell123/dosbox-x/archive/v0.801.tar.gz" - sha256 "40f94cdcc5c9a374c522de7eb2c2288eaa8c6de85d0bd6a730f48bd5d84a89f9" - end bottle do cellar :any sha256 "8a727059fa9d789963220e52492ac7045ef98cfb7224883610c486568cdd864c" => :sierra @@ -16,7 +15,7 @@ class DosboxX < Formula depends_on "sdl" depends_on "sdl_net" - depends_on "sdl_sound" => ["--with-libogg", "--with-libvorbis"] + depends_on "sdl_sound" depends_on "libpng" depends_on "fluid-synth" @@ -28,6 +27,10 @@ class DosboxX < Formula def install ENV.cxx11 + # Fix build failure due to missing included from pcap.h + # https://github.com/joncampbell123/dosbox-x/issues/275 + inreplace "src/hardware/ne2000.cpp", "#define HAVE_REMOTE\n", "" + args = %W[ --prefix=#{prefix} --disable-dependency-tracking