aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/libwebsockets.rb
diff options
context:
space:
mode:
authorMax Howell2013-04-09 14:56:53 -0400
committerMax Howell2013-04-09 14:58:02 -0400
commit2186333d6475223276d8631e98307b33eb230df1 (patch)
treef0cc73a62768256c807a96c9dfd87b3ad02608a5 /Library/Formula/libwebsockets.rb
parentee615215e6b3814d3d88b9b9401a8accd6e1487b (diff)
downloadhomebrew-2186333d6475223276d8631e98307b33eb230df1.tar.bz2
New formula: libwebsockets-1.22
Libwebsockets is the main C library implementation of the latest websockets protocol. Refs #16221.
Diffstat (limited to 'Library/Formula/libwebsockets.rb')
-rw-r--r--Library/Formula/libwebsockets.rb20
1 files changed, 20 insertions, 0 deletions
diff --git a/Library/Formula/libwebsockets.rb b/Library/Formula/libwebsockets.rb
new file mode 100644
index 000000000..bfab02e4a
--- /dev/null
+++ b/Library/Formula/libwebsockets.rb
@@ -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 doesn’t work (FFS) so here’s what I think
+ # should be installed:
+ lib.install 'lib/libwebsockets.dylib'
+ include.install 'lib/libwebsockets.h'
+ end
+end