diff options
| author | Damjan Marion | 2014-02-12 11:39:59 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2014-02-12 11:40:40 +0000 |
| commit | 9b5ff1427a4aa4a667ef2c08324624319319cf29 (patch) | |
| tree | 042512fef6041acb8a664852c5e7c9e97cbd9e85 /Library/Formula | |
| parent | 624b0aab285cf34b7906451a57e49ca4d90ddf47 (diff) | |
| download | homebrew-9b5ff1427a4aa4a667ef2c08324624319319cf29.tar.bz2 | |
libcoap: C implementation of CoAP (new formula)
Closes #24721.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/libcoap.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Library/Formula/libcoap.rb b/Library/Formula/libcoap.rb new file mode 100644 index 000000000..fa1c089cb --- /dev/null +++ b/Library/Formula/libcoap.rb @@ -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 |
