mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 11:40:06 +02:00
gd: bump version
This commit is contained in:
@@ -6,8 +6,9 @@ COPYRIGHT="1999-2020 Pierre-Alain Joye"
|
||||
LICENSE="Libgd"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/libgd/libgd/archive/gd-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="dcc22244d775f469bee21dce1ea42552adbb72ba0cc423f9fa6a64601b3a1893"
|
||||
CHECKSUM_SHA256="24429f9d0dbe0f865aaa4b1a63558242396ba9134e6cfd32ca5e486a84483350"
|
||||
SOURCE_DIR="libgd-gd-$portVersion"
|
||||
PATCHES="gd-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
28
media-libs/gd/patches/gd-2.3.3.patchset
Normal file
28
media-libs/gd/patches/gd-2.3.3.patchset
Normal file
@@ -0,0 +1,28 @@
|
||||
From 4cb177664a888a11039057f8122b934fe7af062c Mon Sep 17 00:00:00 2001
|
||||
From: Jerome Duval <jerome.duval@gmail.com>
|
||||
Date: Mon, 8 Nov 2021 12:43:34 +0100
|
||||
Subject: use actuall tiff types in createFromTiffRgba
|
||||
|
||||
|
||||
diff --git a/src/gd_tiff.c b/src/gd_tiff.c
|
||||
index 7f72b61..3d826b1 100644
|
||||
--- a/src/gd_tiff.c
|
||||
+++ b/src/gd_tiff.c
|
||||
@@ -761,11 +761,11 @@ static int createFromTiffRgba(TIFF * tif, gdImagePtr im)
|
||||
int color;
|
||||
int width = im->sx;
|
||||
int height = im->sy;
|
||||
- uint32_t *buffer;
|
||||
- uint32_t rgba;
|
||||
+ uint32 *buffer;
|
||||
+ uint32 rgba;
|
||||
int success;
|
||||
|
||||
- buffer = (uint32_t *) gdCalloc(sizeof(uint32_t), width * height);
|
||||
+ buffer = (uint32 *) gdCalloc(sizeof(uint32), width * height);
|
||||
if (!buffer) {
|
||||
return GD_FAILURE;
|
||||
}
|
||||
--
|
||||
2.30.2
|
||||
|
||||
Reference in New Issue
Block a user