diff options
| author | Jack Nagel | 2014-01-21 18:33:50 -0600 |
|---|---|---|
| committer | Jack Nagel | 2014-01-21 18:33:50 -0600 |
| commit | 3613abc32385a3ecf9b9789b00317cb7efac3c0c (patch) | |
| tree | e4ffde3bb71d49d6c8c80c5ad5585af996afe4e1 /Library | |
| parent | 9e0f6f858cb6610a803b676e135ccca658c7a5a6 (diff) | |
| download | homebrew-3613abc32385a3ecf9b9789b00317cb7efac3c0c.tar.bz2 | |
nginx: use Homebrew's openssl
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/nginx.rb | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/Library/Formula/nginx.rb b/Library/Formula/nginx.rb index e7506df36..cbfc00615 100644 --- a/Library/Formula/nginx.rb +++ b/Library/Formula/nginx.rb @@ -22,10 +22,7 @@ class Nginx < Formula depends_on 'pcre' depends_on 'passenger' => :optional - # SPDY needs openssl >= 1.0.1 for NPN; see: - # https://tools.ietf.org/agenda/82/slides/tls-3.pdf - # http://www.openssl.org/news/changelog.html - depends_on 'openssl' if build.with? 'spdy' + depends_on 'openssl' skip_clean 'logs' @@ -46,14 +43,9 @@ class Nginx < Formula # Changes default port to 8080 inreplace 'conf/nginx.conf', 'listen 80;', 'listen 8080;' - cc_opt = "-I#{HOMEBREW_PREFIX}/include" - ld_opt = "-L#{HOMEBREW_PREFIX}/lib" - - if build.with? 'spdy' - openssl_path = Formula.factory("openssl").opt_prefix - cc_opt += " -I#{openssl_path}/include" - ld_opt += " -L#{openssl_path}/lib" - end + openssl = Formula.factory("openssl") + cc_opt = "-I#{HOMEBREW_PREFIX}/include -I#{openssl.include}" + ld_opt = "-L#{HOMEBREW_PREFIX}/lib -L#{openssl.lib}" args = ["--prefix=#{prefix}", "--with-http_ssl_module", |
