homebrew-core/Formula/libwebsockets.rb
2015-06-05 14:47:57 +01:00

26 lines
826 B
Ruby

require 'formula'
class Libwebsockets < Formula
desc "C websockets server library"
homepage 'http://libwebsockets.org'
url 'http://git.libwebsockets.org/cgi-bin/cgit/libwebsockets/snapshot/libwebsockets-1.4-chrome43-firefox-36.tar.gz'
version '1.4'
sha1 'f2c4cb05abb3ddac09a61f63cbd018665da2d450'
head 'git://git.libwebsockets.org/libwebsockets'
depends_on "openssl"
bottle do
sha256 "3dff3a837b8204b09b49d16bc9f08eddf8730253772b18117b2ca08b3ecb47c1" => :yosemite
sha256 "b95d36361c26bf1ef29032981462a581d461cc5abcd2698a4490c2677148ecb2" => :mavericks
sha256 "60f191872c2c470fbd5716109df094bf82dad51fa9c4f76a5debcd45a11bf280" => :mountain_lion
end
depends_on 'cmake' => :build
def install
system "cmake", ".", *std_cmake_args
system "make"
system "make", "install"
end
end