homebrew-core/Formula/libemu.rb

30 lines
732 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Libemu < Formula
2012-04-19 02:37:43 +00:00
head 'http://git.carnivore.it/libemu.git'
homepage 'http://libemu.carnivore.it/'
2012-09-03 21:02:15 +00:00
option "enable-python-bindings", "Compile bindings for Python"
2012-09-03 21:02:15 +00:00
depends_on 'pkg-config' => :build
2012-07-07 18:08:22 +00:00
depends_on :automake
depends_on :libtool
def install
inreplace 'Makefile.am' do |s|
# Need to fix the static location of pkgconfigpath
s.gsub! '/usr/lib/pkgconfig/', "#{lib}/pkgconfig/"
end
2012-09-03 21:02:15 +00:00
args = %W[
--disable-debug
--disable-dependency-tracking
--prefix=#{prefix}
]
args << "--enable-python-bindings" if build.include? 'enable-python-bindings'
system "autoreconf -v -i"
system "./configure", *args
system "make install"
end
end