pkgsrc-Changes archive

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

CVS commit: pkgsrc/graphics/libvideogfx



Module Name:    pkgsrc
Committed By:   he
Date:           Wed Apr 24 13:26:25 UTC 2019

Modified Files:
        pkgsrc/graphics/libvideogfx: Makefile
Added Files:
        pkgsrc/graphics/libvideogfx/patches:
            patch-libvideogfx_utility_bitstream_bitreader.cc

Log Message:
Add a patch to fix build on big-endian hosts ("not an lvalue").
Bump PKGREVISION.


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 pkgsrc/graphics/libvideogfx/Makefile
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/graphics/libvideogfx/patches/patch-libvideogfx_utility_bitstream_bitreader.cc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/graphics/libvideogfx/Makefile
diff -u pkgsrc/graphics/libvideogfx/Makefile:1.27 pkgsrc/graphics/libvideogfx/Makefile:1.28
--- pkgsrc/graphics/libvideogfx/Makefile:1.27   Wed Jul 18 00:06:19 2018
+++ pkgsrc/graphics/libvideogfx/Makefile        Wed Apr 24 13:26:25 2019
@@ -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/
 

Added files:

Index: pkgsrc/graphics/libvideogfx/patches/patch-libvideogfx_utility_bitstream_bitreader.cc
diff -u /dev/null pkgsrc/graphics/libvideogfx/patches/patch-libvideogfx_utility_bitstream_bitreader.cc:1.1
--- /dev/null   Wed Apr 24 13:26:25 2019
+++ pkgsrc/graphics/libvideogfx/patches/patch-libvideogfx_utility_bitstream_bitreader.cc        Wed Apr 24 13:26:25 2019
@@ -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