New formula: libwebsockets-1.22

Libwebsockets is the main C library implementation of the latest websockets protocol.

Refs Homebrew/homebrew#16221.
This commit is contained in:
Max Howell 2013-04-09 14:56:53 -04:00
parent 52e74c38a9
commit 2446b66f0f

20
Formula/libwebsockets.rb Normal file
View file

@ -0,0 +1,20 @@
require 'formula'
class Libwebsockets < Formula
homepage 'http://git.warmcat.com/cgi-bin/cgit/libwebsockets'
url 'http://git.warmcat.com/cgi-bin/cgit/libwebsockets/snapshot/libwebsockets-1.22-chrome26-firefox18.tar.gz'
version '1.22'
sha1 'e1bc750cf206699a7fbafc59db82c33c49948680'
depends_on 'cmake' => :build
def install
system "cmake", ".", *std_cmake_args
system "make"
# The `make install` target doesnt work (FFS) so heres what I think
# should be installed:
lib.install 'lib/libwebsockets.dylib'
include.install 'lib/libwebsockets.h'
end
end