Update of /cvsroot/fink/dists/10.4/stable/main/finkinfo/10.4-EOL/net
In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv12015

Modified Files:
        rtmpdump.info 
Added Files:
        rtmpdump.patch 
Log Message:
sync. w/ 10.!4/stable, validated on powerpc-darwin8


--- NEW FILE: rtmpdump.patch ---
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)

Index: rtmpdump.info
===================================================================
RCS file: 
/cvsroot/fink/dists/10.4/stable/main/finkinfo/10.4-EOL/net/rtmpdump.info,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- rtmpdump.info       17 Apr 2012 01:10:03 -0000      1.1
+++ rtmpdump.info       29 Nov 2012 07:17:23 -0000      1.2
@@ -1,31 +1,95 @@
-Package: rtmpdump
+Info4: <<
+Package: rtmpdump%type_pkg[-64bit]
 Version: 2.3
-Revision: 1
-Distribution: 10.4, 10.5
-Description: Toolkit for RTMP streams
-License: GPL
-Maintainer: Hanspeter Niederstrasser <[email protected]>
-Source: http://%n.mplayerhq.hu/download/%n-%v.tgz
+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 <[email protected]>
+License: Restrictive
+Homepage: http://rtmpdump.mplayerhq.hu/
+
+Source: http://rtmpdump.mplayerhq.hu/download/%{ni}-%v.tgz
 Source-MD5: eb961f31cd55f0acf5aad1a7b900ef59
+
+PatchFile: %{ni}.patch
+PatchFile-MD5: ecd1343e47f920b03bd900554b28abec
+PatchScript: <<
+       %{default_script}
+       perl -pi -e 's|/lib|/%lib|' librtmp/librtmp.pc.in
+       sed -i.orig -e 's|-shared|-dynamiclib|' librtmp/Makefile
+<<
+
+Depends: ( %type_raw[-64bit] = -64bit ) 64bit-cpu
+BuildDepends: openssl100-dev (>= 1.0.1-1), fink (>= 0.24.12)
+
+NoSetCPPFLAGS: true
+NoSetLDFLAGS: true
+
 CompileScript: <<
-       ### shared library is disabled because it would involve patching 
makefile to do OS X dylib
-       ### crypto disabled for now
-       make prefix=%p SYS=posix SHARED= CRYPTO=
+       #!/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 INC='-I$(prefix)/include' LDFLAGS='-L$(libdir)'
 <<
+
 InstallScript: <<
- /usr/bin/make -w install prefix=%p mandir=%p/share/man SYS=posix SHARED= 
CRYPTO= DESTDIR=%d
+       #!/bin/bash -ev
+       mkdir -p %i/%lib
+       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
+
+DocFiles: ChangeLog COPYING README *.html
+
 SplitOff: <<
-  Package: librtmp-dev
-  Files: include lib
-  Description: Dev package for librtmp
-  BuildDependsOnly: true
-  DocFiles: ChangeLog COPYING README
+       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
 <<
-Homepage: http://rtmpdump.mplayerhq.hu/
-DescDetail: <<
-rtmpdump is a toolkit for RTMP streams. All forms of RTMP 
-are supported, including rtmp://, rtmpt://, rtmpe://, and rtmpte://.
-rtmps:// is currently not supported.
 <<


------------------------------------------------------------------------------
Keep yourself connected to Go Parallel: 
VERIFY Test and improve your parallel project with help from experts 
and peers. http://goparallel.sourceforge.net
_______________________________________________
Fink-commits mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.cvs

Reply via email to