pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/graphics/libvideogfx Add a patch to fix build on big-e...
details: https://anonhg.NetBSD.org/pkgsrc/rev/c3630c7a4700
branches: trunk
changeset: 332747:c3630c7a4700
user: he <he%pkgsrc.org@localhost>
date: Wed Apr 24 13:26:25 2019 +0000
description:
Add a patch to fix build on big-endian hosts ("not an lvalue").
Bump PKGREVISION.
diffstat:
graphics/libvideogfx/Makefile | 4 +-
graphics/libvideogfx/patches/patch-libvideogfx_utility_bitstream_bitreader.cc | 16 ++++++++++
2 files changed, 18 insertions(+), 2 deletions(-)
diffs (34 lines):
diff -r c9af93196556 -r c3630c7a4700 graphics/libvideogfx/Makefile
--- a/graphics/libvideogfx/Makefile Wed Apr 24 13:19:31 2019 +0000
+++ b/graphics/libvideogfx/Makefile Wed Apr 24 13:26:25 2019 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.27 2018/07/18 00:06:19 joerg Exp $
+# $NetBSD: Makefile,v 1.28 2019/04/24 13:26:25 he Exp $
#
DISTNAME= libvideogfx-1.0.3
-PKGREVISION= 9
+PKGREVISION= 10
CATEGORIES= graphics
MASTER_SITES= http://rachmaninoff.informatik.uni-mannheim.de/libvideogfx/data/
diff -r c9af93196556 -r c3630c7a4700 graphics/libvideogfx/patches/patch-libvideogfx_utility_bitstream_bitreader.cc
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/libvideogfx/patches/patch-libvideogfx_utility_bitstream_bitreader.cc Wed Apr 24 13:26:25 2019 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-libvideogfx_utility_bitstream_bitreader.cc,v 1.1 2019/04/24 13:26:25 he Exp $
+
+Instead of fixing precedence ("not an lvalue"), split operation like on x86.
+
+--- libvideogfx/utility/bitstream/bitreader.cc.orig 2002-05-02 11:47:11.000000000 +0000
++++ libvideogfx/utility/bitstream/bitreader.cc
+@@ -37,7 +37,8 @@ namespace videogfx {
+ void BitReader::Refill()
+ {
+ #if WORDS_BIGENDIAN
+- uint32 val = *((uint32*)d_ptr)++;
++ uint32 val = *((uint32*)d_ptr);
++ d_ptr+=4;
+
+ uint64 val64 = val;
+ val64 <<= 64-32-d_bitsleft;
Home |
Main Index |
Thread Index |
Old Index