pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/misc/libdvdread add patch to fix build on FreeBSD, whe...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9bdad9abff50
branches:  trunk
changeset: 465300:9bdad9abff50
user:      grant <grant%pkgsrc.org@localhost>
date:      Sat Dec 27 03:44:16 2003 +0000

description:
add patch to fix build on FreeBSD, where there is no be64toh macro.

from Michal Pasternak in PR pkg/23894.

diffstat:

 misc/libdvdread/distinfo         |   3 ++-
 misc/libdvdread/patches/patch-aa |  21 +++++++++++++++++++++
 2 files changed, 23 insertions(+), 1 deletions(-)

diffs (35 lines):

diff -r ca47a0fa13fe -r 9bdad9abff50 misc/libdvdread/distinfo
--- a/misc/libdvdread/distinfo  Sat Dec 27 03:05:53 2003 +0000
+++ b/misc/libdvdread/distinfo  Sat Dec 27 03:44:16 2003 +0000
@@ -1,4 +1,5 @@
-$NetBSD: distinfo,v 1.5 2003/02/26 10:12:34 wiz Exp $
+$NetBSD: distinfo,v 1.6 2003/12/27 03:44:16 grant Exp $
 
 SHA1 (libdvdread-0.9.4.tar.gz) = a4b626e49ba8bd33857693c3abe8b34196bc3360
 Size (libdvdread-0.9.4.tar.gz) = 256858 bytes
+SHA1 (patch-aa) = bff1d8dcf82bdd4e491f4400f95f5da4f053b5d7
diff -r ca47a0fa13fe -r 9bdad9abff50 misc/libdvdread/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/libdvdread/patches/patch-aa  Sat Dec 27 03:44:16 2003 +0000
@@ -0,0 +1,21 @@
+$NetBSD: patch-aa,v 1.3 2003/12/27 03:44:16 grant Exp $
+
+--- dvdread/bswap.h.orig       Wed Mar  5 23:13:17 2003
++++ dvdread/bswap.h    Wed Mar  5 23:14:24 2003
+@@ -57,7 +57,15 @@
+ #include <sys/endian.h>
+ #define B2N_16(x) x = be16toh(x)
+ #define B2N_32(x) x = be32toh(x)
+-#define B2N_64(x) x = be64toh(x)
++#define B2N_64(x) x = \
++ x = ((((x) & 0xff00000000000000) >> 56) | \
++      (((x) & 0x00ff000000000000) >> 40) | \
++      (((x) & 0x0000ff0000000000) >> 24) | \
++      (((x) & 0x000000ff00000000) >>  8) | \
++      (((x) & 0x00000000ff000000) <<  8) | \
++      (((x) & 0x0000000000ff0000) << 24) | \
++      (((x) & 0x000000000000ff00) << 40) | \
++      (((x) & 0x00000000000000ff) << 56))
+ 
+ /* This is a slow but portable implementation, it has multiple evaluation 
+  * problems so beware.



Home | Main Index | Thread Index | Old Index