mtr - option for building without gtk+ support
This commit is contained in:
parent
c3f1f15ecc
commit
f7673c897b
1 changed files with 11 additions and 1 deletions
|
@ -5,10 +5,20 @@ class Mtr <Formula
|
|||
homepage 'http://www.bitwizard.nl/mtr/'
|
||||
md5 'fa68528eaec1757f52bacf9fea8c68a9'
|
||||
|
||||
depends_on 'gtk+' unless ARGV.include? "--no-gtk"
|
||||
|
||||
def options
|
||||
[
|
||||
['--no-gtk', "Don't build with Gtk+ support"]
|
||||
]
|
||||
end
|
||||
|
||||
def install
|
||||
# We need to add this because nameserver8_compat.h has been removed in Snow Leopard
|
||||
ENV['LIBS'] = "-lresolv"
|
||||
system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
|
||||
args = ["--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"]
|
||||
args << "--without-gtk" if ARGV.include? "--no-gtk"
|
||||
system "./configure", *args
|
||||
system "make install"
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue