diff options
| author | Alfred E. Heggestad | 2014-04-20 13:23:34 +0200 |
|---|---|---|
| committer | Adam Vandenberg | 2014-04-20 10:20:05 -0700 |
| commit | 283008c125525cc8761d73fc73f646a19ef400d1 (patch) | |
| tree | a3d5daecd4279f1d0f60f7db18ba5b3cfe406122 /Library/Formula | |
| parent | 3bac79f3a70c2e79382f004f8fd3baa90e593acd (diff) | |
| download | homebrew-283008c125525cc8761d73fc73f646a19ef400d1.tar.bz2 | |
libre 0.4.8 (new formula)
Libre is an Open Source Protocol Library for Real-Time Communications.
It includes protocols like SIP, SDP, RTP/RTCP, DNS, BFCP, STUN/TURN/ICE,
HTTP, Websockets.
Closes #28544.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/libre.rb | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Library/Formula/libre.rb b/Library/Formula/libre.rb new file mode 100644 index 000000000..1450db7c2 --- /dev/null +++ b/Library/Formula/libre.rb @@ -0,0 +1,24 @@ +require "formula" + +class Libre < Formula + homepage "http://www.creytiv.com" + url "http://www.creytiv.com/pub/re-0.4.8.tar.gz" + sha1 "92bdf13a5e5ba445e1457d3fd6a20bb779c4b4b0" + + depends_on "openssl" + depends_on "lzlib" + + def install + system "make", "install", "PREFIX=#{prefix}" + end + + test do + (testpath/'test.c').write <<-EOS.undent + #include <re/re.h> + int main() { + return libre_init(); + } + EOS + system ENV.cc, "test.c", "-lre" + end +end |
