Changeset 50620


Ignore:
Timestamp:
May 5, 2009, 8:03:19 AM (10 years ago)
Author:
raimue@…
Message:

www/rtmpdump:
Fix build for Tiger, closes #19386

Location:
trunk/dports/www/rtmpdump
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/www/rtmpdump/Portfile

    r49971 r50620  
    55name                rtmpdump
    66version             1.4
     7revision            1
    78categories          www net
    89platforms           darwin
     
    2223checksums           md5 09fef2e674f7579088d966aac5d08736
    2324
    24 patchfiles          patch-bytes.h.diff
     25patchfiles          patch-bytes.h.diff patch-bytes.cpp.diff
    2526post-patch {
    2627    reinplace "s|CC=.*\$|CC=${configure.cc}|" ${worksrcpath}/Makefile
  • trunk/dports/www/rtmpdump/files/patch-bytes.h.diff

    r49903 r50620  
    1 --- bytes.h.orig        2009-04-06 00:10:27.000000000 +0100
    2 +++ bytes.h     2009-04-06 00:09:15.000000000 +0100
    3 @@ -34,12 +34,23 @@
     1--- bytes.h.orig        2009-04-30 05:52:02.000000000 +0200
     2+++ bytes.h     2009-04-30 06:00:47.000000000 +0200
     3@@ -34,6 +34,20 @@
    44       | (((x) & 0x00000000000000ffull) << 56))
    55 
    66 #else
    7 +#ifdef __APPLE__
    8 +#include <machine/endian.h>
    9 +#include <libkern/_OSByteOrder.h>
    10 +#define __BYTE_ORDER BYTE_ORDER
    11 +#define __FLOAT_WORD_ORDER BYTE_ORDER
    12 +#define __BIG_ENDIAN BIG_ENDIAN
    13 +#define __LITTLE_ENDIAN LITTLE_ENDIAN
    14 +#define __bswap_32 __DARWIN_OSSwapConstInt32
    15 +#define __bswap_64 __DARWIN_OSSwapConstInt64
    16 +#else
     7+
     8+#ifdef __APPLE__
     9+#include <machine/endian.h>
     10+#define __BIG_ENDIAN           BIG_ENDIAN
     11+#define __LITTLE_ENDIAN                LITTLE_ENDIAN
     12+
     13+#include <libkern/OSByteOrder.h>
     14+#define __BYTE_ORDER           BYTE_ORDER
     15+#define __FLOAT_WORD_ORDER     BYTE_ORDER
     16+
     17+#define __bswap_32                     OSSwapConstInt32
     18+#define __bswap_64                     OSSwapConstInt64
     19+
     20+#else
    1721 #include <endian.h>
    1822 #include <byteswap.h>
    1923 
    20  typedef __uint64_t uint64_t;
     24@@ -41,6 +55,8 @@
    2125 typedef __uint32_t uint32_t;
    2226 #endif
    23 +#endif
    2427 
     28+#endif
     29+
    2530 #if !defined(__BYTE_ORDER) || !defined(__FLOAT_WORD_ORDER)
    2631 #error "Undefined byte and float word order!"
     32 #endif
Note: See TracChangeset for help on using the changeset viewer.