the Fink project is an effort to port
popular Unix programs to Mac OS X
Info4: <<
Package: rtmpdump%type_pkg[-64bit]
Version: 2.3
Revision: 4
Type: -64bit (boolean)
Architecture: ( %type_raw[-64bit] = -64bit ) i386
Distribution: 10.6
Description: RTMP streaming media client
DescDetail: <<
rtmpdump is a tool for dumping media content streamed over RTMP.
rtmpdump makes a connection to the specified RTMP server and plays
the media specified by the given url. The url should be of the form
rtmp[t][e]://hostname[:port][/app[/playpath]]
Plain rtmp, as well as tunneled and encrypted sessions are supported.
<<
DescPackaging: Actual license is GPL2 but use Restrictive due to openssl.
Maintainer: Daniel Johnson
License: Restrictive
Homepage: http://rtmpdump.mplayerhq.hu/
Source: http://rtmpdump.mplayerhq.hu/download/%{ni}-%v.tgz
Source-MD5: eb961f31cd55f0acf5aad1a7b900ef59
PatchFile: %{ni}-10.6.patch
PatchFile-MD5: ecd1343e47f920b03bd900554b28abec
PatchScript: <<
%{default_script}
perl -pi -e 's|/lib|/%lib|' librtmp/librtmp.pc.in
<<
Depends: ( %type_raw[-64bit] = -64bit ) 64bit-cpu
BuildDepends: openssl100-dev (>= 1.0.1-1), fink (>= 0.24.12)
NoSetCPPFLAGS: true
NoSetLDFLAGS: true
CompileScript: <<
#!/bin/bash -ev
if [ "%type_raw[-64bit]" == "-64bit" ]; then
CC="gcc -m64"
else
CC=gcc
fi
make SYS=posix CC="$CC" prefix=%p libdir='$(prefix)/%lib' mandir=%p/share/man
<<
InstallScript: <<
#!/bin/bash -ev
make install SYS=posix prefix=%p libdir='$(prefix)/%lib' mandir=%p/share/man DESTDIR=%d
if [ "%type_raw[-64bit]" == "-64bit" ]; then
mv %i/%lib/pkgconfig %i/lib/pkgconfig
fi
<<
DocFiles: ChangeLog COPYING README *.html
SplitOff: <<
Package: librtmp%type_pkg[-64bit]
Description: Devel files for RTMP streaming
License: LGPL2
BuildDependsOnly: true
Depends: %n-shlibs (= %v-%r)
Conflicts: librtmp, librtmp-64bit
Replaces: librtmp, librtmp-64bit
Files: <<
include
lib/pkgconfig
%lib/librtmp.a
%lib/librtmp.dylib
share/man/man3
<<
DocFiles: ChangeLog README librtmp/COPYING librtmp/*.html
<<
SplitOff2: <<
Package: librtmp%type_pkg[-64bit]-shlibs
Description: Shared ibraries for RTMP streaming
License: LGPL2
Depends: openssl100-shlibs (>= 1.0.1-1)
Files: %lib/librtmp.0.dylib
Shlibs: %p/%lib/librtmp.0.dylib 1.0.0 %n (>= 2.3-1) %type_num[-64bit]
DocFiles: ChangeLog README librtmp/COPYING
<<
<<
diff -ru rtmpdump-2.3.orig/librtmp/Makefile rtmpdump-2.3/librtmp/Makefile
--- rtmpdump-2.3.orig/librtmp/Makefile 2010-06-30 16:01:28.000000000 -0400
+++ rtmpdump-2.3/librtmp/Makefile 2010-08-27 13:19:47.000000000 -0400
@@ -25,12 +25,12 @@
CRYPTO_REQ=$(REQ_$(CRYPTO))
CRYPTO_DEF=$(DEF_$(CRYPTO))
-SO_posix=so.0
+SO_posix=0.dylib
SO_mingw=dll
SO_EXT=$(SO_$(SYS))
SHARED=yes
-SODEF_yes=-fPIC
+SODEF_yes=-fPIC -fno-common
SOLIB_yes=librtmp.$(SO_EXT)
SOINST_yes=install_$(SO_EXT)
SO_DEF=$(SODEF_$(SHARED))
@@ -55,14 +55,14 @@
all: librtmp.a $(SO_LIB)
clean:
- rm -f *.o *.a *.so *.$(SO_EXT)
+ rm -f *.o *.a *.dylib *.$(SO_EXT)
librtmp.a: $(OBJS)
$(AR) rs $@ $?
librtmp.$(SO_EXT): $(OBJS)
- $(CC) -shared -Wl,-soname,$@ $(LDFLAGS) -o $@ $^ $> $(CRYPTO_LIB)
- ln -sf $@ librtmp.so
+ $(CC) -shared -install_name $(libdir)/$@ -current_version 1.0.0 -compatibility_version 1.0.0 $(LDFLAGS) -o $@ $^ $> $(CRYPTO_LIB)
+ ln -sf $@ librtmp.dylib
log.o: log.c log.h Makefile
rtmp.o: rtmp.c rtmp.h rtmp_sys.h handshake.h dh.h log.h amf.h Makefile
@@ -83,9 +83,9 @@
cp librtmp.pc $(LIBDIR)/pkgconfig
cp librtmp.3 $(MANDIR)/man3
-install_so.0: librtmp.so.0
- cp librtmp.so.0 $(LIBDIR)
- cd $(LIBDIR); ln -sf librtmp.so.0 librtmp.so
+install_0.dylib: librtmp.0.dylib
+ cp librtmp.0.dylib $(LIBDIR)
+ cd $(LIBDIR); ln -sf librtmp.0.dylib librtmp.dylib
install_dll: librtmp.dll
cp librtmp.dll $(BINDIR)