diff options
| -rw-r--r-- | Library/Formula/haproxy.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Library/Formula/haproxy.rb b/Library/Formula/haproxy.rb index c8b058933..ed637ba5e 100644 --- a/Library/Formula/haproxy.rb +++ b/Library/Formula/haproxy.rb @@ -6,6 +6,14 @@ class Haproxy <Formula homepage 'http://haproxy.1wt.eu' def install + inreplace 'Makefile', 'PREFIX = /usr/local', "PREFIX = #{prefix}" + inreplace 'Makefile', 'DOCDIR = $(PREFIX)/doc/haproxy', "DOCDIR = #{doc}" + # use our CC, LD, CFLAGS and LDFLAGS + inreplace 'Makefile', 'LDFLAGS = $(ARCH_FLAGS) -g', '' + inreplace 'Makefile', 'CFLAGS = $(ARCH_FLAGS) $(CPU_CFLAGS) $(DEBUG_CFLAGS)', '' + inreplace 'Makefile', 'CC = gcc', '' + inreplace 'Makefile', 'LD = $(CC)', '' + # We build generic since the Makefile.osx doesn't appear to work system "make", "TARGET=generic" system "make install" |
