summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorgrant <grant@pkgsrc.org>2003-12-27 03:44:16 +0000
committergrant <grant@pkgsrc.org>2003-12-27 03:44:16 +0000
commitc166fed9baec44aadc358343ddbcd4ee7ef6853e (patch)
treee0cd71972c4974c5b6b70628c4f4fdad26e25757 /misc
parentc331d66fa1098bf3fa7cb5937187e17164cff806 (diff)
downloadpkgsrc-c166fed9baec44aadc358343ddbcd4ee7ef6853e.tar.gz
add patch to fix build on FreeBSD, where there is no be64toh macro.
from Michal Pasternak in PR pkg/23894.
Diffstat (limited to 'misc')
-rw-r--r--misc/libdvdread/distinfo3
-rw-r--r--misc/libdvdread/patches/patch-aa21
2 files changed, 23 insertions, 1 deletions
diff --git a/misc/libdvdread/distinfo b/misc/libdvdread/distinfo
index e6545bbe1d9..03316d5a37e 100644
--- a/misc/libdvdread/distinfo
+++ b/misc/libdvdread/distinfo
@@ -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 --git a/misc/libdvdread/patches/patch-aa b/misc/libdvdread/patches/patch-aa
new file mode 100644
index 00000000000..489ecef88b4
--- /dev/null
+++ b/misc/libdvdread/patches/patch-aa
@@ -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.