[csw-devel] SF.net SVN: gar:[15028] csw/mgar/pkg

dmichelsen at users.sourceforge.net dmichelsen at users.sourceforge.net
Sat Jul 9 18:25:10 CEST 2011


Revision: 15028
          http://gar.svn.sourceforge.net/gar/?rev=15028&view=rev
Author:   dmichelsen
Date:     2011-07-09 16:25:10 +0000 (Sat, 09 Jul 2011)

Log Message:
-----------
rtmpdump: Initial commit

Added Paths:
-----------
    csw/mgar/pkg/rtmpdump/
    csw/mgar/pkg/rtmpdump/Makefile
    csw/mgar/pkg/rtmpdump/branches/
    csw/mgar/pkg/rtmpdump/tags/
    csw/mgar/pkg/rtmpdump/trunk/
    csw/mgar/pkg/rtmpdump/trunk/Makefile
    csw/mgar/pkg/rtmpdump/trunk/checksums
    csw/mgar/pkg/rtmpdump/trunk/files/
    csw/mgar/pkg/rtmpdump/trunk/files/0001-Use-inttypes.h-on-Solaris.patch
    csw/mgar/pkg/rtmpdump/trunk/files/0002-Use-Solaris-ld-syntax-for-shared-libs.patch

Copied: csw/mgar/pkg/rtmpdump/Makefile (from rev 14858, csw/mgar/pkg/template/Makefile)
===================================================================
--- csw/mgar/pkg/rtmpdump/Makefile	                        (rev 0)
+++ csw/mgar/pkg/rtmpdump/Makefile	2011-07-09 16:25:10 UTC (rev 15028)
@@ -0,0 +1,15 @@
+# vim: ft=make ts=4 sw=4 noet
+
+default:
+	@echo "You are in the pkg/ directory."
+
+%:
+	$(MAKE) -C trunk $* 
+
+paranoid-%:
+	$(MAKE) -C trunk $* || exit 2 
+
+export BUILDLOG ?= $(shell pwd)/buildlog.txt
+
+report-%:
+	$(MAKE) -C trunk $* || echo "	*** make $* in $$i failed ***" >> $(BUILDLOG) 


Property changes on: csw/mgar/pkg/rtmpdump/trunk
___________________________________________________________________
Added: svn:ignore
   + cookies
download
work


Added: svn:externals
   + gar https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2


Added: csw/mgar/pkg/rtmpdump/trunk/Makefile
===================================================================
--- csw/mgar/pkg/rtmpdump/trunk/Makefile	                        (rev 0)
+++ csw/mgar/pkg/rtmpdump/trunk/Makefile	2011-07-09 16:25:10 UTC (rev 15028)
@@ -0,0 +1,70 @@
+# $Id$
+# TODO (release-critical prefixed with !, non release-critical with *)
+#
+NAME = rtmpdump
+VERSION = 2.3
+GARTYPE = v2
+CATEGORIES = lib
+
+DESCRIPTION = A toolkit for RTMP streams
+define BLURB
+endef
+
+MASTER_SITES = http://rtmpdump.mplayerhq.hu/download/
+DISTFILES  = $(DISTNAME).tgz
+
+PATCHFILES += 0001-Use-inttypes.h-on-Solaris.patch
+PATCHFILES += 0002-Use-Solaris-ld-syntax-for-shared-libs.patch
+
+VENDOR_URL = http://rtmpdump.mplayerhq.hu/
+
+PACKAGES += CSWlibrtmp0
+SPKG_DESC_CSWlibrtmp0 = A toolkit for RTMP streams, librtmp.so.0
+PKGFILES_CSWlibrtmp0 += $(call pkgfiles_lib,librtmp.so.0)
+RUNTIME_DEP_PKGS_CSWlibrtmp0 += CSWosslrt
+RUNTIME_DEP_PKGS_CSWlibrtmp0 += CSWzlib
+
+PACKAGES += CSWlibrtmp-dev
+SPKG_DESC_CSWlibrtmp-dev = Development files for librtmp.so.0
+PKGFILES_CSWlibrtmp-dev += $(PKGFILES_DEVEL)
+RUNTIME_DEP_PKGS_CSWlibrtmp-dev += CSWlibrtmp0
+
+PACKAGES += CSWrtmpdump
+SPKG_DESC_CSWrtmpdump = A toolkit for RTMP streams
+# PKGFILES is catchall
+RUNTIME_DEP_PKGS_CSWrtmpdump += CSWlibgnugetopt0
+RUNTIME_DEP_PKGS_CSWrtmpdump += CSWosslrt
+RUNTIME_DEP_PKGS_CSWrtmpdump += CSWzlib
+
+BUILD64 = 1
+
+EXTRA_CFLAGS += -features=extensions -D__FUNCTION__=__func__
+EXTRA_CFLAGS += -DINADDR_NONE=0xffffffffU
+
+BYTE_ORDER_sparc = __BIG_ENDIAN
+BYTE_ORDER_i386 = __LITTLE_ENDIAN
+EXTRA_CFLAGS += -DBYTE_ORDER=$(BYTE_ORDER_$(GARCH))
+
+# Otherwise "R_SPARC_H44: relocations based on the ABS44 coding model can not be used in building a shared object"
+EXTRA_CFLAGS += -KPIC
+
+# The build system is pretty spartanic
+CONFIGURE_SCRIPTS =
+TEST_SCRIPTS =
+
+BUILD_OVERRIDE_VARS = CC LD CFLAGS LDFLAGS LIBS_posix XLIBS
+BUILD_OVERRIDE_VAR_CC = $(CC)
+BUILD_OVERRIDE_VAR_LD = $(CC)
+BUILD_OVERRIDE_VAR_CFLAGS = $(CFLAGS) -DRTMPDUMP_VERSION=\\\"v$(VERSION)\\\" -DUSE_OPENSSL
+BUILD_OVERRIDE_VAR_LDFLAGS = $(LDFLAGS)
+BUILD_OVERRIDE_VAR_LIBS_posix = -lsocket -lnsl
+BUILD_OVERRIDE_VAR_XLIBS = -lgnugetopt
+
+INSTALL_OVERRIDE_VARS = prefix bindir sbindir libdir mandir
+INSTALL_OVERRIDE_VAR_prefix = $(prefix)
+INSTALL_OVERRIDE_VAR_bindir = $(bindir)
+INSTALL_OVERRIDE_VAR_sbindir = $(sbindir)
+INSTALL_OVERRIDE_VAR_libdir = $(libdir)
+INSTALL_OVERRIDE_VAR_mandir = $(mandir)
+
+include gar/category.mk


Property changes on: csw/mgar/pkg/rtmpdump/trunk/Makefile
___________________________________________________________________
Added: svn:keywords
   + Id

Added: csw/mgar/pkg/rtmpdump/trunk/checksums
===================================================================
--- csw/mgar/pkg/rtmpdump/trunk/checksums	                        (rev 0)
+++ csw/mgar/pkg/rtmpdump/trunk/checksums	2011-07-09 16:25:10 UTC (rev 15028)
@@ -0,0 +1 @@
+eb961f31cd55f0acf5aad1a7b900ef59  rtmpdump-2.3.tgz

Added: csw/mgar/pkg/rtmpdump/trunk/files/0001-Use-inttypes.h-on-Solaris.patch
===================================================================
--- csw/mgar/pkg/rtmpdump/trunk/files/0001-Use-inttypes.h-on-Solaris.patch	                        (rev 0)
+++ csw/mgar/pkg/rtmpdump/trunk/files/0001-Use-inttypes.h-on-Solaris.patch	2011-07-09 16:25:10 UTC (rev 15028)
@@ -0,0 +1,119 @@
+From f64709c93b38180fbd6cdd8c403dac15cbc7d0ef Mon Sep 17 00:00:00 2001
+From: Dagobert Michelsen <dam at opencsw.org>
+Date: Sat, 9 Jul 2011 17:16:11 +0200
+Subject: [PATCH] Use inttypes.h on Solaris
+
+---
+ librtmp/amf.h   |    4 ++++
+ librtmp/bytes.h |    5 +++++
+ librtmp/dh.h    |    5 +++++
+ librtmp/log.h   |    5 +++++
+ librtmp/rtmp.c  |    5 +++++
+ librtmp/rtmp.h  |    6 ++++++
+ 6 files changed, 30 insertions(+), 0 deletions(-)
+
+diff --git a/librtmp/amf.h b/librtmp/amf.h
+index b945beb..42035f9 100644
+--- a/librtmp/amf.h
++++ b/librtmp/amf.h
+@@ -25,7 +25,11 @@
+  *  http://www.gnu.org/copyleft/lgpl.html
+  */
+ 
++#if defined(__sun)
++#include <inttypes.h>
++#else
+ #include <stdint.h>
++#endif
+ 
+ #ifndef TRUE
+ #define TRUE	1
+diff --git a/librtmp/bytes.h b/librtmp/bytes.h
+index 8c6e80d..f7ceb1e 100644
+--- a/librtmp/bytes.h
++++ b/librtmp/bytes.h
+@@ -26,7 +26,12 @@
+ #ifndef __BYTES_H__
+ #define __BYTES_H__
+ 
++#if defined(__sun)
++#include <inttypes.h>
++#else
+ #include <stdint.h>
++#endif
++
+ 
+ #ifdef _WIN32
+ /* Windows is little endian only */
+diff --git a/librtmp/dh.h b/librtmp/dh.h
+index 8e285a6..30e46cc 100644
+--- a/librtmp/dh.h
++++ b/librtmp/dh.h
+@@ -21,7 +21,12 @@
+  *  http://www.gnu.org/copyleft/lgpl.html
+  */
+ 
++#if defined(__sun)
++#include <inttypes.h>
++#else
+ #include <stdint.h>
++#endif
++
+ #include <stdlib.h>
+ #include <string.h>
+ #include <assert.h>
+diff --git a/librtmp/log.h b/librtmp/log.h
+index 97c9aac..fbc5b28 100644
+--- a/librtmp/log.h
++++ b/librtmp/log.h
+@@ -26,7 +26,12 @@
+ 
+ #include <stdio.h>
+ #include <stdarg.h>
++
++#if defined(__sun)
++#include <inttypes.h>
++#else
+ #include <stdint.h>
++#endif
+ 
+ #ifdef __cplusplus
+ extern "C" {
+diff --git a/librtmp/rtmp.c b/librtmp/rtmp.c
+index f152648..5461bb6 100644
+--- a/librtmp/rtmp.c
++++ b/librtmp/rtmp.c
+@@ -23,7 +23,12 @@
+  *  http://www.gnu.org/copyleft/lgpl.html
+  */
+ 
++#if defined(__sun)
++#include <inttypes.h>
++#else
+ #include <stdint.h>
++#endif
++
+ #include <stdlib.h>
+ #include <string.h>
+ #include <assert.h>
+diff --git a/librtmp/rtmp.h b/librtmp/rtmp.h
+index de0b795..5942906 100644
+--- a/librtmp/rtmp.h
++++ b/librtmp/rtmp.h
+@@ -30,7 +30,13 @@
+ #endif
+ 
+ #include <errno.h>
++
++#if defined(__sun)
++#include <inttypes.h>
++#else
+ #include <stdint.h>
++#endif
++
+ #include <stddef.h>
+ 
+ #include "amf.h"
+-- 
+1.7.6
+

Added: csw/mgar/pkg/rtmpdump/trunk/files/0002-Use-Solaris-ld-syntax-for-shared-libs.patch
===================================================================
--- csw/mgar/pkg/rtmpdump/trunk/files/0002-Use-Solaris-ld-syntax-for-shared-libs.patch	                        (rev 0)
+++ csw/mgar/pkg/rtmpdump/trunk/files/0002-Use-Solaris-ld-syntax-for-shared-libs.patch	2011-07-09 16:25:10 UTC (rev 15028)
@@ -0,0 +1,25 @@
+From 911084d67928fb1799573155b9c3409736f38cf7 Mon Sep 17 00:00:00 2001
+From: Dagobert Michelsen <dam at opencsw.org>
+Date: Sat, 9 Jul 2011 17:39:36 +0200
+Subject: [PATCH] Use Solaris ld syntax for shared libs
+
+---
+ librtmp/Makefile |    2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/librtmp/Makefile b/librtmp/Makefile
+index 6774db7..4ee84e0 100644
+--- a/librtmp/Makefile
++++ b/librtmp/Makefile
+@@ -61,7 +61,7 @@ librtmp.a: $(OBJS)
+ 	$(AR) rs $@ $?
+ 
+ librtmp.$(SO_EXT): $(OBJS)
+-	$(CC) -shared -Wl,-soname,$@ $(LDFLAGS) -o $@ $^ $> $(CRYPTO_LIB)
++	$(CC) -G -h $@ $(LDFLAGS) -o $@ $^ $> $(CRYPTO_LIB)
+ 	ln -sf $@ librtmp.so
+ 
+ log.o: log.c log.h Makefile
+-- 
+1.7.6
+


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


More information about the devel mailing list