aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Kubaj <pkubaj@FreeBSD.org>2022-09-13 17:04:36 +0000
committerPiotr Kubaj <pkubaj@FreeBSD.org>2022-09-13 17:04:36 +0000
commit93f1d97256b70d753929ef0ada17ffec64a373f5 (patch)
tree02641013508409107395268406c92ae687a29cc6
parentea1d2da0e754d141a66585bfb27345ccad389552 (diff)
downloadports-93f1d97256b70d753929ef0ada17ffec64a373f5.tar.gz
ports-93f1d97256b70d753929ef0ada17ffec64a373f5.zip
graphics/freeimage: fix endianness issues better
-rw-r--r--graphics/freeimage/Makefile2
-rw-r--r--graphics/freeimage/files/patch-Source_FreeImage_PluginDDS.cpp10
2 files changed, 10 insertions, 2 deletions
diff --git a/graphics/freeimage/Makefile b/graphics/freeimage/Makefile
index 48ffe704b95b..04ac430f0d73 100644
--- a/graphics/freeimage/Makefile
+++ b/graphics/freeimage/Makefile
@@ -1,6 +1,6 @@
PORTNAME= freeimage
PORTVERSION= 3.18.0
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= graphics
MASTER_SITES= SF/${PORTNAME}/Source%20Distribution/${PORTVERSION}
DISTNAME= FreeImage${PORTVERSION:S/.//g}
diff --git a/graphics/freeimage/files/patch-Source_FreeImage_PluginDDS.cpp b/graphics/freeimage/files/patch-Source_FreeImage_PluginDDS.cpp
index 874045df1529..8f80affd8f0c 100644
--- a/graphics/freeimage/files/patch-Source_FreeImage_PluginDDS.cpp
+++ b/graphics/freeimage/files/patch-Source_FreeImage_PluginDDS.cpp
@@ -1,6 +1,6 @@
--- Source/FreeImage/PluginDDS.cpp.orig 2018-11-18 16:17:59 UTC
+++ Source/FreeImage/PluginDDS.cpp
-@@ -356,14 +356,6 @@ SwapHeader(DDSHEADER *header) {
+@@ -356,14 +356,14 @@ SwapHeader(DDSHEADER *header) {
for(int i=0; i<11; i++) {
SwapLong(&header->surfaceDesc.dwReserved1[i]);
}
@@ -12,6 +12,14 @@
- SwapLong(&header->surfaceDesc.ddpfPixelFormat.dwGBitMask);
- SwapLong(&header->surfaceDesc.ddpfPixelFormat.dwBBitMask);
- SwapLong(&header->surfaceDesc.ddpfPixelFormat.dwRGBAlphaBitMask);
++ SwapLong(&header->surfaceDesc.ddspf.dwSize);
++ SwapLong(&header->surfaceDesc.ddspf.dwFlags);
++ SwapLong(&header->surfaceDesc.ddspf.dwFourCC);
++ SwapLong(&header->surfaceDesc.ddspf.dwRGBBitCount);
++ SwapLong(&header->surfaceDesc.ddspf.dwRBitMask);
++ SwapLong(&header->surfaceDesc.ddspf.dwGBitMask);
++ SwapLong(&header->surfaceDesc.ddspf.dwBBitMask);
++ SwapLong(&header->surfaceDesc.ddspf.dwRGBAlphaBitMask);
SwapLong(&header->surfaceDesc.ddsCaps.dwCaps1);
SwapLong(&header->surfaceDesc.ddsCaps.dwCaps2);
SwapLong(&header->surfaceDesc.ddsCaps.dwReserved[0]);