homebrew-core/Formula/libwebsockets.rb
Dan Skorupski 225875054b libwebsockets: add HEAD, install pkgconfig file.
Closes Homebrew/homebrew#25802.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-01-10 23:56:03 +00:00

22 lines
678 B
Ruby
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

require 'formula'
class Libwebsockets < Formula
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'
head 'git://git.libwebsockets.org/libwebsockets'
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'
(lib+'pkgconfig').install 'libwebsockets.pc'
include.install 'lib/libwebsockets.h'
end
end