aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/rtpbreak.rb
blob: 88b76978312b66be4303122cf479e11c1eb2588f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
require 'formula'

class Rtpbreak < Formula
  homepage 'http://www.dallachiesa.com/code/rtpbreak/doc/rtpbreak_en.html'
  url 'http://dallachiesa.com/code/rtpbreak/rtpbreak-1.3a.tgz'
  sha1 'd22e9c37cc28c2fc36475d221b4eb2cc2c5aafbb'

  depends_on 'libnet'

  # main.c is missing the netinet/udp.h header; reported upstream by email
  patch :p0, :DATA

  def install
    system "make", "CC=#{ENV.cc}"
    bin.install "src/rtpbreak"
  end

  test do
    system "#{bin}/rtpbreak"
  end
end
__END__
--- src/main.c  2012-06-30 12:22:29.000000000 +0200
+++ src/main.c  2012-06-30 12:19:11.000000000 +0200
@@ -25,6 +25,7 @@
 
 #include <time.h>
 #include <sys/stat.h>
+#include <netinet/udp.h>
 #include <pwd.h>
 #include <grp.h>
 #include "queue.h"