forked from adestefan/homebrew-headonly
-
Notifications
You must be signed in to change notification settings - Fork 0
/
libemu.rb
29 lines (24 loc) · 754 Bytes
/
libemu.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
require 'formula'
class Libemu < Formula
head 'http://git.carnivore.it/libemu.git'
homepage 'http://libemu.carnivore.it/'
option "enable-python-bindings", "Compile bindings for Python"
depends_on 'pkg-config' => :build
depends_on "automake" => :build
depends_on "libtool" => :build
def install
inreplace 'Makefile.am' do |s|
# Need to fix the static location of pkgconfigpath
s.gsub! '/usr/lib/pkgconfig/', "#{lib}/pkgconfig/"
end
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