homebrew-core/Formula/srtp.rb
Jaime Marquínez Ferrándiz 74c83fa9f6 Batch convert http download urls from SourceForge to https
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2014-03-02 09:16:53 -08:00

19 lines
664 B
Ruby

require 'formula'
class Srtp < Formula
homepage 'http://srtp.sourceforge.net/srtp.html'
url 'https://downloads.sourceforge.net/project/srtp/srtp/1.4.4/srtp-1.4.4.tgz'
sha1 '299c6cfe0c9d6f1804bc5921cfbdb6a6bc76a521'
def patches
# Add support for building shared libs
"http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/net-libs/libsrtp/files/libsrtp-1.4.4-shared.patch?revision=1.2"
end
def install
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make libsrtp.dylib"
system "make install" # Can't go in parallel of building the dylib
end
end