diff options
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/tree.rb | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/Library/Formula/tree.rb b/Library/Formula/tree.rb index 799d8fc68..c56dec922 100644 --- a/Library/Formula/tree.rb +++ b/Library/Formula/tree.rb @@ -13,13 +13,15 @@ class Tree < Formula end def install - ENV.append 'CFLAGS', '-fomit-frame-pointer', '-no-cpp-precomp' - inreplace 'Makefile' do |s| - s.change_make_var! "OBJS", "\\1 strverscmp.o" - s.change_make_var! "MANDIR", man1 - end + ENV.append 'CFLAGS', '-fomit-frame-pointer' + objs = 'tree.o unix.o html.o xml.o hash.o color.o strverscmp.o json.o' system "make", "prefix=#{prefix}", + "MANDIR=#{man1}", + "CC=#{ENV.cc}", + "CFLAGS=#{ENV.cflags}", + "LDFLAGS=#{ENV.ldflags}", + "OBJS=#{objs}", "install" end |
