[49903] trunk/dports/www
blb at macports.org
blb at macports.org
Sun Apr 19 14:40:49 PDT 2009
Revision: 49903
http://trac.macports.org/changeset/49903
Author: blb at macports.org
Date: 2009-04-19 14:40:48 -0700 (Sun, 19 Apr 2009)
Log Message:
-----------
New port - www/rtmpdump, a tool for downloading RTMP streaming media (ticket #19188)
Added Paths:
-----------
trunk/dports/www/rtmpdump/
trunk/dports/www/rtmpdump/Portfile
trunk/dports/www/rtmpdump/files/
trunk/dports/www/rtmpdump/files/patch-bytes.h.diff
trunk/dports/www/rtmpdump/files/patch-log.h.diff
Added: trunk/dports/www/rtmpdump/Portfile
===================================================================
--- trunk/dports/www/rtmpdump/Portfile (rev 0)
+++ trunk/dports/www/rtmpdump/Portfile 2009-04-19 21:40:48 UTC (rev 49903)
@@ -0,0 +1,35 @@
+# $Id$
+
+PortSystem 1.0
+
+name rtmpdump
+version 1.4
+categories www net
+platforms darwin
+maintainers gmail.com:captsolo openmaintainer
+description a tool for downloading RTMP streaming media
+long_description A small dumper for media content streamed over \
+ the RTMP protocol. Supplying an rtmp url will result \
+ in a dumped flv file, which can be played or transcoded \
+ using ffmpeg/mplayer, etc. The script for downloading \
+ BBC iPlayer streams is included.
+
+homepage http://sourceforge.net/projects/rtmpdump/
+master_sites sourceforge
+distname ${name}-v${version}
+worksrcdir ${name}
+
+checksums md5 09fef2e674f7579088d966aac5d08736
+
+patchfiles patch-bytes.h.diff
+use_configure no
+
+variant nodebug description {Build with NODEBUG flag (silences some debug messages when downloading)} {
+ patchfiles-append patch-log.h.diff
+}
+
+destroot {
+ xinstall -m 755 -d ${destroot}${prefix}/bin
+ xinstall -m 755 ${worksrcpath}/rtmpdump ${destroot}${prefix}/bin
+ xinstall -m 755 ${worksrcpath}/get_iplayer ${destroot}${prefix}/bin
+}
Property changes on: trunk/dports/www/rtmpdump/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/www/rtmpdump/files/patch-bytes.h.diff
===================================================================
--- trunk/dports/www/rtmpdump/files/patch-bytes.h.diff (rev 0)
+++ trunk/dports/www/rtmpdump/files/patch-bytes.h.diff 2009-04-19 21:40:48 UTC (rev 49903)
@@ -0,0 +1,26 @@
+--- bytes.h.orig 2009-04-06 00:10:27.000000000 +0100
++++ bytes.h 2009-04-06 00:09:15.000000000 +0100
+@@ -34,12 +34,23 @@
+ | (((x) & 0x00000000000000ffull) << 56))
+
+ #else
++#ifdef __APPLE__
++#include <machine/endian.h>
++#include <libkern/_OSByteOrder.h>
++#define __BYTE_ORDER BYTE_ORDER
++#define __FLOAT_WORD_ORDER BYTE_ORDER
++#define __BIG_ENDIAN BIG_ENDIAN
++#define __LITTLE_ENDIAN LITTLE_ENDIAN
++#define __bswap_32 __DARWIN_OSSwapConstInt32
++#define __bswap_64 __DARWIN_OSSwapConstInt64
++#else
+ #include <endian.h>
+ #include <byteswap.h>
+
+ typedef __uint64_t uint64_t;
+ typedef __uint32_t uint32_t;
+ #endif
++#endif
+
+ #if !defined(__BYTE_ORDER) || !defined(__FLOAT_WORD_ORDER)
+ #error "Undefined byte and float word order!"
Added: trunk/dports/www/rtmpdump/files/patch-log.h.diff
===================================================================
--- trunk/dports/www/rtmpdump/files/patch-log.h.diff (rev 0)
+++ trunk/dports/www/rtmpdump/files/patch-log.h.diff 2009-04-19 21:40:48 UTC (rev 49903)
@@ -0,0 +1,11 @@
+--- log.h.orig 2009-04-11 13:13:18.000000000 +0100
++++ log.h 2009-04-11 13:13:55.000000000 +0100
+@@ -21,7 +21,7 @@
+ #ifndef __LOG_H__
+ #define __LOG_H__
+
+-#define _DEBUG
++#define NODEBUG
+
+ #ifdef _DEBUG
+ #undef NODEBUG
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090419/14fc2207/attachment.html>
More information about the macports-changes
mailing list