bochs: build without libtool installed

Closes Homebrew/homebrew#32832. Fixes Homebrew/homebrew#32828.
This commit is contained in:
Tim D. Smith 2014-09-30 21:12:10 -07:00
parent 905750e71d
commit 559f24e3c1

View file

@ -10,6 +10,10 @@ class Bochs < Formula
depends_on 'gtk+' depends_on 'gtk+'
def install def install
# upstream Makefile bug
# https://github.com/Homebrew/homebrew/pull/32832#issuecomment-57586763
inreplace "configure", 'if test "$have_ltdl" = 1', 'if 0'
system "./configure", "--prefix=#{prefix}", system "./configure", "--prefix=#{prefix}",
"--with-x11", "--with-x11",
"--enable-debugger", "--enable-debugger",
@ -38,12 +42,6 @@ class Bochs < Formula
"--with-term", "--with-term",
"--enable-ne2000" "--enable-ne2000"
# See: http://sourceforge.net/p/bochs/discussion/39592/thread/9c22887c
inreplace 'config.h', 'define BX_HAVE_LTDL 1', 'define BX_HAVE_LTDL 0'
inreplace 'Makefile' do |s|
s.gsub! /\-lltdl/, 'ltdl.o'
end
system "make" system "make"
system "make install" system "make install"
end end