Skip to content

Commit

Permalink
ortp 0.24.1
Browse files Browse the repository at this point in the history
Closes Homebrew/legacy-homebrew#39363.

Signed-off-by: Xu Cheng <xucheng@me.com>
  • Loading branch information
dunn authored and xu-cheng committed May 5, 2015
1 parent c70cafb commit 1ccb0e6
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions Formula/ortp.rb
Original file line number Diff line number Diff line change
@@ -1,13 +1,27 @@
require "formula"

class Ortp < Formula
homepage "http://www.linphone.org/eng/documentation/dev/ortp.html"
url "http://download.savannah.gnu.org/releases/linphone/ortp/sources/ortp-0.23.0.tar.gz"
sha1 "87a154295636652cc9ac7310dc02e0258db08790"
url "http://nongnu.askapache.com/linphone/ortp/sources/ortp-0.24.1.tar.gz"
sha256 "d1ecce20bed145186f727914f10f500d0594e30c2a234a276e7e12dcd8814cd5"

def install
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make install"
system "make", "install"
end

test do
(testpath/"test.c").write <<-EOS.undent
#include "ortp/logging.h"
#include "ortp/rtpsession.h"
#include "ortp/sessionset.h"
int main()
{
ORTP_PUBLIC void ortp_init(void);
return 0;
}
EOS
system ENV.cc, "-I#{include}", "-L#{lib}", "-lortp",
testpath/"test.c", "-o", "test"
system "./test"
end
end

0 comments on commit 1ccb0e6

Please sign in to comment.