libcoap: C implementation of CoAP (new formula)
Closes Homebrew/homebrew#24721. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
parent
70856da32e
commit
1bd967b3ab
1 changed files with 18 additions and 0 deletions
18
Formula/libcoap.rb
Normal file
18
Formula/libcoap.rb
Normal file
|
@ -0,0 +1,18 @@
|
|||
require "formula"
|
||||
|
||||
class Libcoap < Formula
|
||||
homepage "http://libcoap.sourceforge.net"
|
||||
url "http://downloads.sourceforge.net/project/libcoap/coap-18/libcoap-4.1.1.tar.gz"
|
||||
sha1 "137c0bfe25c735b4a85dde65fdded13e8ef0f48f"
|
||||
|
||||
depends_on "doxygen" => :build
|
||||
|
||||
def install
|
||||
system "./configure", "--prefix=#{prefix}"
|
||||
system "make"
|
||||
|
||||
include.install "coap.h"
|
||||
lib.install "libcoap.a"
|
||||
bin.install "examples/coap-server", "examples/coap-client"
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue