aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-01-21 18:33:50 -0600
committerJack Nagel2014-01-21 18:33:50 -0600
commitc8752b20450f117ff18812e4a5ec98c7c8c5697d (patch)
tree14455ab455f16428aa3d8f7bd281d6aa8d3844f0 /Library
parent3613abc32385a3ecf9b9789b00317cb7efac3c0c (diff)
downloadhomebrew-c8752b20450f117ff18812e4a5ec98c7c8c5697d.tar.bz2
nginx: look for pcre in a more specific location
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/nginx.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/Library/Formula/nginx.rb b/Library/Formula/nginx.rb
index cbfc00615..8cd851279 100644
--- a/Library/Formula/nginx.rb
+++ b/Library/Formula/nginx.rb
@@ -43,9 +43,10 @@ class Nginx < Formula
# Changes default port to 8080
inreplace 'conf/nginx.conf', 'listen 80;', 'listen 8080;'
+ pcre = Formula.factory("pcre")
openssl = Formula.factory("openssl")
- cc_opt = "-I#{HOMEBREW_PREFIX}/include -I#{openssl.include}"
- ld_opt = "-L#{HOMEBREW_PREFIX}/lib -L#{openssl.lib}"
+ cc_opt = "-I#{pcre.include} -I#{openssl.include}"
+ ld_opt = "-L#{pcre.lib} -L#{openssl.lib}"
args = ["--prefix=#{prefix}",
"--with-http_ssl_module",