diff options
author | he <he@pkgsrc.org> | 2019-04-24 13:26:25 +0000 |
---|---|---|
committer | he <he@pkgsrc.org> | 2019-04-24 13:26:25 +0000 |
commit | 7165787045c098096ec5460bd41e354e8c698533 (patch) | |
tree | a3f118f62322187e6ec101aef435bf7baed2fe43 | |
parent | a4213d8573cd4b83931e76714c460aa35150d979 (diff) | |
download | pkgsrc-7165787045c098096ec5460bd41e354e8c698533.tar.gz |
Add a patch to fix build on big-endian hosts ("not an lvalue").
Bump PKGREVISION.
-rw-r--r-- | graphics/libvideogfx/Makefile | 4 | ||||
-rw-r--r-- | graphics/libvideogfx/patches/patch-libvideogfx_utility_bitstream_bitreader.cc | 16 |
2 files changed, 18 insertions, 2 deletions
diff --git a/graphics/libvideogfx/Makefile b/graphics/libvideogfx/Makefile index faf3d2b5b29..aaac4b57320 100644 --- a/graphics/libvideogfx/Makefile +++ b/graphics/libvideogfx/Makefile @@ -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 --git a/graphics/libvideogfx/patches/patch-libvideogfx_utility_bitstream_bitreader.cc b/graphics/libvideogfx/patches/patch-libvideogfx_utility_bitstream_bitreader.cc new file mode 100644 index 00000000000..6868195a504 --- /dev/null +++ b/graphics/libvideogfx/patches/patch-libvideogfx_utility_bitstream_bitreader.cc @@ -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; |