aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorSampumon2013-01-25 16:22:48 +0200
committerAdam Vandenberg2013-02-02 10:21:15 -0800
commitc663cc4ab64a1708dc2333fa9822601ccdf2683a (patch)
tree5bac0836802e64324d2848d2f920f508da77dc6b /Library/Formula
parent2de10c2f76fafc184d3ddee7475f71b6c6a7e257 (diff)
downloadhomebrew-c663cc4ab64a1708dc2333fa9822601ccdf2683a.tar.bz2
rtmpdump: 2.4
Closes #17303. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/rtmpdump.rb42
1 files changed, 3 insertions, 39 deletions
diff --git a/Library/Formula/rtmpdump.rb b/Library/Formula/rtmpdump.rb
index 3a10345a1..6a26c21af 100644
--- a/Library/Formula/rtmpdump.rb
+++ b/Library/Formula/rtmpdump.rb
@@ -2,8 +2,8 @@ require 'formula'
class Rtmpdump < Formula
homepage 'http://rtmpdump.mplayerhq.hu'
- url 'http://rtmpdump.mplayerhq.hu/download/rtmpdump-2.3.tgz'
- sha1 'b65ce7708ae79adb51d1f43dd0b6d987076d7c42'
+ url 'http://ftp.de.debian.org/debian/pool/main/r/rtmpdump/rtmpdump_2.4+20111222.git4e06e21.orig.tar.gz'
+ sha1 '16f7e7470939ce8801e7d499345fa7d8f195c636'
head 'git://git.ffmpeg.org/rtmpdump'
@@ -14,50 +14,14 @@ class Rtmpdump < Formula
cause "Crashes at runtime"
end
- # Use dylib instead of so
- def patches; DATA; end unless build.head?
-
def install
ENV.deparallelize
- sys_type = build.head? ? "darwin" : "posix"
system "make", "CC=#{ENV.cc}",
"XCFLAGS=#{ENV.cflags}",
"XLDFLAGS=#{ENV.ldflags}",
"MANDIR=#{man}",
- "SYS=#{sys_type}",
+ "SYS=darwin",
"prefix=#{prefix}",
"install"
end
end
-
-__END__
---- rtmpdump-2.3/librtmp/Makefile.orig 2010-07-30 23:05:25.000000000 +0200
-+++ rtmpdump-2.3/librtmp/Makefile 2010-07-30 23:08:23.000000000 +0200
-@@ -25,7 +25,7 @@
- CRYPTO_REQ=$(REQ_$(CRYPTO))
- CRYPTO_DEF=$(DEF_$(CRYPTO))
-
--SO_posix=so.0
-+SO_posix=dylib
- SO_mingw=dll
- SO_EXT=$(SO_$(SYS))
-
-@@ -61,7 +61,7 @@
- $(AR) rs $@ $?
-
- librtmp.$(SO_EXT): $(OBJS)
-- $(CC) -shared -Wl,-soname,$@ $(LDFLAGS) -o $@ $^ $> $(CRYPTO_LIB)
-+ $(CC) -shared $(LDFLAGS) -o $@ $^ $> $(CRYPTO_LIB)
- ln -sf $@ librtmp.so
-
- log.o: log.c log.h Makefile
-@@ -87,5 +87,8 @@
- cp librtmp.so.0 $(LIBDIR)
- cd $(LIBDIR); ln -sf librtmp.so.0 librtmp.so
-
-+install_dylib: librtmp.dylib
-+ cp librtmp.dylib $(LIBDIR)
-+
- install_dll: librtmp.dll
- cp librtmp.dll $(BINDIR)
-