diff options
author | Matteo Bernardini <matteo.bernardini {at} sns.it> | 2010-06-18 00:51:22 +0200 |
---|---|---|
committer | Erik Hanson <erik@slackbuilds.org> | 2010-06-17 18:13:16 -0500 |
commit | 61e3a26c657485a14eeabf448a77efa22c67e971 (patch) | |
tree | 04746e7de5854381ad5a73c2466a3fce4377d301 /multimedia/rtmpdump/rtmpdump-makefiles.patch | |
parent | e1420ba29f2c89e48aabdef7b0e20db9d59f8928 (diff) |
multimedia/rtmpdump: Added. rtmpdump is a toolkit for RTMP streams.
Signed-off-by: Heinz Wiesinger <pprkut@slackbuilds.org>
Diffstat (limited to 'multimedia/rtmpdump/rtmpdump-makefiles.patch')
-rw-r--r-- | multimedia/rtmpdump/rtmpdump-makefiles.patch | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/multimedia/rtmpdump/rtmpdump-makefiles.patch b/multimedia/rtmpdump/rtmpdump-makefiles.patch new file mode 100644 index 0000000000000..a1bdb7761c24b --- /dev/null +++ b/multimedia/rtmpdump/rtmpdump-makefiles.patch @@ -0,0 +1,48 @@ +diff -Naur rtmpdump-2.2e.orig/Makefile rtmpdump-2.2e/Makefile +--- rtmpdump-2.2e.orig/Makefile 2010-05-29 09:42:20.000000000 +0200 ++++ rtmpdump-2.2e/Makefile 2010-06-14 21:22:21.904425447 +0200 +@@ -57,7 +57,7 @@ + cp rtmpgw$(EXT) rtmpsrv$(EXT) rtmpsuck$(EXT) $(SBINDIR) + cp rtmpdump.1 $(MANDIR)/man1 + cp rtmpgw.8 $(MANDIR)/man8 +- @cd librtmp; $(MAKE) install $(MAKEFLAGS) ++ @cd librtmp; $(MAKE) install + + clean: + rm -f *.o rtmpdump$(EXT) rtmpgw$(EXT) rtmpsrv$(EXT) rtmpsuck$(EXT) +diff -Naur rtmpdump-2.2e.orig/librtmp/Makefile rtmpdump-2.2e/librtmp/Makefile +--- rtmpdump-2.2e.orig/librtmp/Makefile 2010-05-29 09:42:20.000000000 +0200 ++++ rtmpdump-2.2e/librtmp/Makefile 2010-06-14 21:23:12.932433342 +0200 +@@ -28,7 +28,7 @@ + LIBDIR=$(DESTDIR)$(libdir) + MANDIR=$(DESTDIR)$(mandir) + +-all: librtmp.a ++all: librtmp.a librtmp.so librtmp.pc + + clean: + rm -f *.o *.a +@@ -36,6 +36,9 @@ + librtmp.a: rtmp.o log.o amf.o hashswf.o parseurl.o + $(AR) rs $@ $? + ++librtmp.so: rtmp.o log.o amf.o hashswf.o parseurl.o ++ $(CC) -shared -Wl,-soname,librtmp.so.2 -o librtmp.so.2.2 *.o ++ + 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 + amf.o: amf.c amf.h bytes.h log.h Makefile +@@ -46,9 +49,12 @@ + sed -e "s;@prefix@;$(prefix);" -e "s;@VERSION@;$(VERSION);" \ + -e "s;@CRYPTO_REQ@;$(CRYPTO_REQ);" librtmp.pc.in > $@ + +-install: librtmp.a librtmp.pc ++install: librtmp.a librtmp.so librtmp.pc + -mkdir -p $(INCDIR) $(LIBDIR)/pkgconfig $(MANDIR)/man3 + cp amf.h http.h log.h rtmp.h $(INCDIR) + cp librtmp.a $(LIBDIR) ++ ln -s librtmp.so.2.2 librtmp.so.2 ++ ln -s librtmp.so.2.2 librtmp.so ++ cp -a librtmp.s* $(LIBDIR) + cp librtmp.pc $(LIBDIR)/pkgconfig + cp librtmp.3 $(MANDIR)/man3 |