2013-04-09 18:56:53 +00:00
|
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
|
|
class Libwebsockets < Formula
|
|
|
|
|
homepage 'http://git.warmcat.com/cgi-bin/cgit/libwebsockets'
|
2013-04-11 19:20:16 +00:00
|
|
|
|
url 'git://git.warmcat.com/libwebsockets', :tag => 'v1.22-chrome26-firefox18'
|
2013-04-09 18:56:53 +00:00
|
|
|
|
version '1.22'
|
|
|
|
|
|
|
|
|
|
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
|