pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/multimedia/libdvdread Fix build on DragonFlyBSD, using...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/595a565b0019
branches:  trunk
changeset: 555004:595a565b0019
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Mon Feb 23 11:09:27 2009 +0000

description:
Fix build on DragonFlyBSD, using patch from Steve O'Hara-Smith on
pkgsrc-users.

No PKGREVISION bump because it shouldn't affect other platforms.

diffstat:

 multimedia/libdvdread/distinfo         |   3 ++-
 multimedia/libdvdread/patches/patch-aa |  17 +++++++++++++++++
 2 files changed, 19 insertions(+), 1 deletions(-)

diffs (32 lines):

diff -r 50b050d83dda -r 595a565b0019 multimedia/libdvdread/distinfo
--- a/multimedia/libdvdread/distinfo    Mon Feb 23 11:05:15 2009 +0000
+++ b/multimedia/libdvdread/distinfo    Mon Feb 23 11:09:27 2009 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.16 2009/01/14 22:28:05 jmcneill Exp $
+$NetBSD: distinfo,v 1.17 2009/02/23 11:09:27 wiz Exp $
 
 SHA1 (libdvdread-4.1.3.tar.bz2) = fc4c7ba3e49929191e057b435bc4f867583ea8d5
 RMD160 (libdvdread-4.1.3.tar.bz2) = 60e802494bf64e019d6ccfcf42a17dd03e29a382
 Size (libdvdread-4.1.3.tar.bz2) = 96899 bytes
+SHA1 (patch-aa) = 455fae91eba6262713cbc86f9a56b090cb6f8acf
diff -r 50b050d83dda -r 595a565b0019 multimedia/libdvdread/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/libdvdread/patches/patch-aa    Mon Feb 23 11:09:27 2009 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-aa,v 1.10 2009/02/23 11:09:27 wiz Exp $
+
+--- src/bswap.h.orig   2008-09-06 21:55:51.000000000 +0000
++++ src/bswap.h
+@@ -65,6 +65,12 @@
+ #define B2N_32(x) x = be32toh(x)
+ #define B2N_64(x) x = be64toh(x)
+ 
++#elif defined(__DragonFly__)
++#include <sys/endian.h>
++#define B2N_16(x) x = bswap16(x)
++#define B2N_32(x) x = bswap32(x)
++#define B2N_64(x) x = bswap64(x)
++
+ /* This is a slow but portable implementation, it has multiple evaluation
+  * problems so beware.
+  * Old FreeBSD's and Solaris don't have <byteswap.h> or any other such



Home | Main Index | Thread Index | Old Index