diff options
| author | Steve Purcell | 2010-03-18 14:56:08 +0000 |
|---|---|---|
| committer | Adam Vandenberg | 2010-03-18 10:13:18 -0700 |
| commit | 09889068b1ed2b37897b9a02bc182f573f8437bb (patch) | |
| tree | 26c2d3fae7c3e4be5993672a3764fa6fb5575358 /Library/Formula | |
| parent | abd78ea252c8775a7ff1796a25ce1fcbe2e25a8c (diff) | |
| download | homebrew-09889068b1ed2b37897b9a02bc182f573f8437bb.tar.bz2 | |
Enable postgresql support in sphinx when pg_config is present
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/sphinx.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Library/Formula/sphinx.rb b/Library/Formula/sphinx.rb index 57d1d65ae..82e436684 100644 --- a/Library/Formula/sphinx.rb +++ b/Library/Formula/sphinx.rb @@ -10,7 +10,11 @@ class Sphinx <Formula # ld: rel32 out of range in _GetPrivateProfileString from /usr/lib/libodbc.a(SQLGetPrivateProfileString.o) ENV.gcc_4_2 - system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking" + config_args = ["--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"] + # configure script won't auto-select PostgreSQL + config_args << ["--with-pgsql"] if `/usr/bin/which pg_config`.size > 0 + + system "./configure", *config_args system "make install" end |
