diff options
| author | Max Howell | 2009-12-22 03:30:02 +0000 |
|---|---|---|
| committer | Max Howell | 2009-12-22 03:30:20 +0000 |
| commit | e8b6fcef91db525001358afddcbe9e40a0a27c89 (patch) | |
| tree | 08da856109b9e5267fab210f6c60711af8758ad0 | |
| parent | a6137d225ad9b63841acd9a8c0d422fb70cacbe0 (diff) | |
| download | homebrew-e8b6fcef91db525001358afddcbe9e40a0a27c89.tar.bz2 | |
Install haproxy to the right prefix
Also correct CFLAGS, CC, etc.
| -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" |
