2013-04-09 18:56:53 +00:00
|
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
|
|
class Libwebsockets < Formula
|
2014-01-04 12:18:26 +00:00
|
|
|
|
homepage 'http://libwebsockets.org'
|
|
|
|
|
url 'http://git.libwebsockets.org/cgi-bin/cgit/libwebsockets/snapshot/libwebsockets-1.23-chrome32-firefox24.tar.gz'
|
|
|
|
|
version '1.23'
|
|
|
|
|
sha1 '9dda683a342b16feb1cef183f89f9ed4474626f5'
|
2014-01-10 23:55:28 +00:00
|
|
|
|
head 'git://git.libwebsockets.org/libwebsockets'
|
2013-04-09 18:56:53 +00:00
|
|
|
|
|
|
|
|
|
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'
|
2014-01-10 23:55:28 +00:00
|
|
|
|
(lib+'pkgconfig').install 'libwebsockets.pc'
|
2013-04-09 18:56:53 +00:00
|
|
|
|
include.install 'lib/libwebsockets.h'
|
|
|
|
|
end
|
|
|
|
|
end
|