homebrew-core/Formula/openlitespeed.rb

24 lines
847 B
Ruby
Raw Normal View History

class Openlitespeed < Formula
desc "High-performance, lightweight HTTP server"
homepage "http://open.litespeedtech.com/mediawiki/"
url "http://open.litespeedtech.com/packages/openlitespeed-1.3.10.tgz"
sha256 "703ff1093eae270bb0c380d097e92e39dd102b31f9632ff420b4b0ed423c4159"
head "https://github.com/litespeedtech/openlitespeed.git"
option "with-debug", "Compile with support for debug log"
option "with-spdy", "Compile with support for SPDY module"
depends_on "pcre"
depends_on "geoip"
depends_on "openssl"
def install
args = ["--disable-dependency-tracking", "--prefix=#{prefix}"]
args << "--enable-debug" if build.with? "debug"
args << "--enable-spdy" if build.with? "spdy"
args << "--with-openssl=#{Formula["openssl"].opt_prefix}"
system "./configure", *args
system "make", "install"
end
end