2010-04-07 16:33:36 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Rtmpdump < Formula
|
2010-04-07 16:33:36 +00:00
|
|
|
homepage 'http://rtmpdump.mplayerhq.hu'
|
2012-08-27 05:09:01 +00:00
|
|
|
url 'http://rtmpdump.mplayerhq.hu/download/rtmpdump-2.3.tgz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 'b65ce7708ae79adb51d1f43dd0b6d987076d7c42'
|
2010-07-30 21:40:25 +00:00
|
|
|
|
2012-01-30 10:54:38 +00:00
|
|
|
head 'git://git.ffmpeg.org/rtmpdump'
|
|
|
|
|
2012-09-05 04:04:01 +00:00
|
|
|
depends_on 'openssl' if MacOS.version == :leopard
|
2010-08-21 21:28:29 +00:00
|
|
|
|
2012-03-18 20:33:24 +00:00
|
|
|
fails_with :llvm do
|
2012-08-27 05:09:01 +00:00
|
|
|
build '2336'
|
2012-03-18 20:33:24 +00:00
|
|
|
cause "Crashes at runtime"
|
|
|
|
end
|
2011-08-10 11:32:48 +00:00
|
|
|
|
2011-03-13 06:46:47 +00:00
|
|
|
# Use dylib instead of so
|
2012-08-27 05:09:01 +00:00
|
|
|
def patches; DATA; end unless build.head?
|
2010-04-07 16:33:36 +00:00
|
|
|
|
|
|
|
def install
|
2012-01-25 23:40:42 +00:00
|
|
|
ENV.deparallelize
|
2012-08-27 05:09:01 +00:00
|
|
|
sys_type = build.head? ? "darwin" : "posix"
|
2012-01-25 23:40:42 +00:00
|
|
|
system "make", "CC=#{ENV.cc}",
|
|
|
|
"XCFLAGS=#{ENV.cflags}",
|
|
|
|
"XLDFLAGS=#{ENV.ldflags}",
|
|
|
|
"MANDIR=#{man}",
|
2012-01-30 10:54:38 +00:00
|
|
|
"SYS=#{sys_type}",
|
2012-01-25 23:40:42 +00:00
|
|
|
"prefix=#{prefix}",
|
|
|
|
"install"
|
2010-04-07 16:33:36 +00:00
|
|
|
end
|
2010-07-30 21:40:25 +00:00
|
|
|
end
|
2011-03-13 06:46:47 +00:00
|
|
|
|
2010-07-30 21:40:25 +00:00
|
|
|
__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)
|
|
|
|
|