summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Timo Gurr <tgurr@exherbo.org> 2014-03-12 23:25:44 +0100
committerAvatar Timo Gurr <tgurr@exherbo.org> 2014-03-12 23:25:44 +0100
commit4b7a06d63a7322d2cf8a42722d1c101926d1d444 (patch)
tree303b689018ff773e90b2b5d747cef210b3416cea
parent09cc53f3915499193d07a5a32311688167908227 (diff)
downloadmono-4b7a06d63a7322d2cf8a42722d1c101926d1d444.tar.gz
mono-4b7a06d63a7322d2cf8a42722d1c101926d1d444.tar.xz
libgdiplus: fix build with freetype[>=2.5.1]
- use upstream libpng patch(es) - remove broken version (2.4.2)
-rw-r--r--packages/dev-dotnet/libgdiplus/files/180c02e0f2a2016eba8520b456ca929e9dcf03db.patch35
-rw-r--r--packages/dev-dotnet/libgdiplus/files/506df13e6e1c9915c248305e47f0b67549732566.patch242
-rw-r--r--packages/dev-dotnet/libgdiplus/files/libgdiplus-2.10.9-libpng15.patch168
-rw-r--r--packages/dev-dotnet/libgdiplus/libgdiplus-2.10.9.exheres-05
-rw-r--r--packages/dev-dotnet/libgdiplus/libgdiplus-2.4.2.exheres-029
-rw-r--r--packages/dev-dotnet/libgdiplus/libgdiplus-2.6.7.exheres-05
6 files changed, 286 insertions, 198 deletions
diff --git a/packages/dev-dotnet/libgdiplus/files/180c02e0f2a2016eba8520b456ca929e9dcf03db.patch b/packages/dev-dotnet/libgdiplus/files/180c02e0f2a2016eba8520b456ca929e9dcf03db.patch
new file mode 100644
index 0000000..31f920d
--- /dev/null
+++ b/packages/dev-dotnet/libgdiplus/files/180c02e0f2a2016eba8520b456ca929e9dcf03db.patch
@@ -0,0 +1,35 @@
+Source: https://github.com/mono/libgdiplus/commit/180c02e0f2a2016eba8520b456ca929e9dcf03db
+Upstream: Yes
+Reason: Fix build with freetype[>=2.5.1]
+
+From 180c02e0f2a2016eba8520b456ca929e9dcf03db Mon Sep 17 00:00:00 2001
+From: Jo Shields <directhex@apebox.org>
+Date: Mon, 16 Dec 2013 09:24:57 +0000
+Subject: [PATCH] Use FreeType macros for tttables.h inclusion
+
+As of FreeType 2.1.6 (November 2003), using #include to include Freetype libraries directly is not supported.
+
+This has come to a head, as in FreeType 2.5.0, the location of headers has been moved around, breaking building of libgdiplus.
+
+This slight change uses the "official" way to include the required header file, without breaking building on older versions of the library.
+---
+ src/gdiplus-private.h | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/src/gdiplus-private.h b/src/gdiplus-private.h
+index 59edf9e..dfccc02 100644
+--- a/src/gdiplus-private.h
++++ b/src/gdiplus-private.h
+@@ -30,7 +30,8 @@
+ #include <stdio.h>
+ #include <math.h>
+ #include <glib.h>
+-#include <freetype/tttables.h>
++#include <ft2build.h>
++#include FT_TRUETYPE_TABLES_H
+ #include <pthread.h>
+ #include <unistd.h>
+
+--
+1.8.5.5
+
diff --git a/packages/dev-dotnet/libgdiplus/files/506df13e6e1c9915c248305e47f0b67549732566.patch b/packages/dev-dotnet/libgdiplus/files/506df13e6e1c9915c248305e47f0b67549732566.patch
new file mode 100644
index 0000000..715f591
--- /dev/null
+++ b/packages/dev-dotnet/libgdiplus/files/506df13e6e1c9915c248305e47f0b67549732566.patch
@@ -0,0 +1,242 @@
+Source: https://github.com/mono/libgdiplus/commit/506df13e6e1c9915c248305e47f0b67549732566
+Upstream: Yes
+Reason: Fix build with libpng[>=1.5]
+
+From 4b15e34ee859916e5d7eeb7ca4d80e3d3d93ddb5 Mon Sep 17 00:00:00 2001
+From: Mike Buland <mike@xagasoft.com>
+Date: Tue, 9 Jul 2013 23:38:41 +0200
+Subject: [PATCH 1/3] Removed usage of the opaque png info_ptr struct.
+
+The info_ptr structure should not be used, this has been in the png
+documentation since at least July 2000.
+
+Hopefully this mantains the same functionality, but in a way that will
+compile with the newest versions of libpng.
+---
+ src/pngcodec.c | 90 ++++++++++++++++++++++++++++++++++------------------------
+ 1 file changed, 53 insertions(+), 37 deletions(-)
+
+diff --git a/src/pngcodec.c b/src/pngcodec.c
+index 15c608a..ce38d67 100644
+--- a/src/pngcodec.c
++++ b/src/pngcodec.c
+@@ -116,10 +116,16 @@
+ bitmap_data->dpi_horz = png_get_x_pixels_per_inch(png_ptr, info_ptr);
+ bitmap_data->dpi_vert = png_get_y_pixels_per_inch(png_ptr, info_ptr);
+ #elif defined(PNG_pHYs_SUPPORTED)
+- if ((info_ptr->valid & PNG_INFO_pHYs) && (info_ptr->phys_unit_type == PNG_RESOLUTION_METER)) {
+- bitmap_data->image_flags |= ImageFlagsHasRealDPI;
+- bitmap_data->dpi_horz = info_ptr->x_pixels_per_unit * 0.0254;
+- bitmap_data->dpi_vert = info_ptr->y_pixels_per_unit * 0.0254;
++ {
++ int unit_type;
++ png_uint_32 res_x;
++ png_uint_32 res_y;
++ png_get_pHYs( png_ptr, info_ptr, &res_x, &res_y, &unit_type );
++ if (unit_type == PNG_RESOLUTION_METER) {
++ bitmap_data->image_flags |= ImageFlagsHasRealDPI;
++ bitmap_data->dpi_horz = res_x * 0.0254;
++ bitmap_data->dpi_vert = res_y * 0.0254;
++ }
+ }
+ #endif
+ /* default to screen resolution (if nothing was provided or available) */
+@@ -130,11 +136,11 @@
+ #if defined(PNG_iCCP_SUPPORTED)
+ {
+ png_charp name;
+- png_charp profile;
++ png_bytepp profile;
+ png_uint_32 proflen;
+ int compression_type;
+
+- if (png_get_iCCP(png_ptr, info_ptr, &name, &compression_type, &profile, &proflen)) {
++ if (png_get_iCCP(png_ptr, info_ptr, &name, &compression_type, profile, &proflen)) {
+ gdip_bitmapdata_property_add_ASCII(bitmap_data, PropertyTagICCProfileDescriptor, (BYTE*)name);
+ gdip_bitmapdata_property_add_byte(bitmap_data, PropertyTagICCProfile, (BYTE)compression_type);
+ }
+@@ -243,6 +249,8 @@
+ int bit_depth;
+ int channels;
+ BYTE color_type;
++ int num_palette;
++ png_colorp png_palette;
+
+ png_ptr = png_create_read_struct (PNG_LIBPNG_VER_STRING, NULL, NULL, NULL);
+
+@@ -320,9 +328,10 @@
+ /* Copy the palette data into the GDI+ structure. */
+ colourspace_flag = ImageFlagsColorSpaceRGB;
+
++ png_get_PLTE( png_ptr, info_ptr, &png_palette, &num_palette );
+ palette_entries = num_colours;
+- if (palette_entries > info_ptr->num_palette) {
+- palette_entries = info_ptr->num_palette;
++ if (palette_entries > num_palette) {
++ palette_entries = num_palette;
+ }
+
+ palette = GdipAlloc (sizeof(ColorPalette) + (num_colours - 1) * sizeof(ARGB));
+@@ -331,32 +340,39 @@
+
+ for (i=0; i < palette_entries; i++) {
+ set_pixel_bgra (&palette->Entries[i], 0,
+- info_ptr->palette[i].blue,
+- info_ptr->palette[i].green,
+- info_ptr->palette[i].red,
++ png_palette[i].blue,
++ png_palette[i].green,
++ png_palette[i].red,
+ 0xFF); /* alpha */
+ }
+ }
+
+- /* Make sure transparency is respected. */
+- if (info_ptr->num_trans > 0) {
+- palette->Flags |= PaletteFlagsHasAlpha;
+- colourspace_flag |= ImageFlagsHasAlpha;
++ {
++ png_bytep trans_alpha;
++ int num_trans;
++ png_color_16p trans_color;
+
+- if (info_ptr->num_trans > info_ptr->num_palette) {
+- info_ptr->num_trans = info_ptr->num_palette;
+- }
++ /* Make sure transparency is respected. */
++ png_get_tRNS( png_ptr, info_ptr, &trans_alpha, &num_trans, &trans_color );
++ if (num_trans > 0) {
++ palette->Flags |= PaletteFlagsHasAlpha;
++ colourspace_flag |= ImageFlagsHasAlpha;
++
++ if (num_trans > num_palette) {
++ num_trans = num_palette;
++ }
+
+- for (i=0; i < info_ptr->num_trans; i++) {
+- set_pixel_bgra(&palette->Entries[i], 0,
+- info_ptr->palette[i].blue,
+- info_ptr->palette[i].green,
+- info_ptr->palette[i].red,
++ for (i=0; i < num_trans; i++) {
++ set_pixel_bgra(&palette->Entries[i], 0,
++ png_palette[i].blue,
++ png_palette[i].green,
++ png_palette[i].red,
+ #if PNG_LIBPNG_VER > 10399
+- info_ptr->trans_alpha [i]); /* alpha */
++ trans_alpha [i]); /* alpha */
+ #else
+- info_ptr->trans[i]); /* alpha */
++ trans[i]); /* alpha */
+ #endif
++ }
+ }
+ }
+
+@@ -486,30 +502,30 @@
+
+ palette = (pix >> 6) & 0x03;
+ set_pixel_bgra (rawptr, 0,
+- info_ptr->palette[palette].blue,
+- info_ptr->palette[palette].green,
+- info_ptr->palette[palette].red,
++ png_palette[palette].blue,
++ png_palette[palette].green,
++ png_palette[palette].red,
+ 0xFF); /* alpha */
+
+ palette = (pix >> 4) & 0x03;
+ set_pixel_bgra (rawptr, 4,
+- info_ptr->palette[palette].blue,
+- info_ptr->palette[palette].green,
+- info_ptr->palette[palette].red,
++ png_palette[palette].blue,
++ png_palette[palette].green,
++ png_palette[palette].red,
+ 0xFF); /* alpha */
+
+ palette = (pix >> 2) & 0x03;
+ set_pixel_bgra (rawptr, 8,
+- info_ptr->palette[palette].blue,
+- info_ptr->palette[palette].green,
+- info_ptr->palette[palette].red,
++ png_palette[palette].blue,
++ png_palette[palette].green,
++ png_palette[palette].red,
+ 0xFF); /* alpha */
+
+ palette = pix & 0x03;
+ set_pixel_bgra (rawptr, 12,
+- info_ptr->palette[palette].blue,
+- info_ptr->palette[palette].green,
+- info_ptr->palette[palette].red,
++ png_palette[palette].blue,
++ png_palette[palette].green,
++ png_palette[palette].red,
+ 0xFF); /* alpha */
+ rawptr += 16;
+ }
+--
+1.8.5.5
+
+
+From 87c953a4adf21fb8e1264144b4ac309819ab16e7 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Andr=C3=A9s=20G=2E=20Aragoneses?= <knocte@gmail.com>
+Date: Tue, 9 Jul 2013 23:44:30 +0200
+Subject: [PATCH 2/3] Fix previous commit so that it doesn't break the build
+ with libpng v12.0
+
+---
+ src/pngcodec.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/pngcodec.c b/src/pngcodec.c
+index ce38d67..cf48152 100644
+--- a/src/pngcodec.c
++++ b/src/pngcodec.c
+@@ -370,7 +370,7 @@
+ #if PNG_LIBPNG_VER > 10399
+ trans_alpha [i]); /* alpha */
+ #else
+- trans[i]); /* alpha */
++ info_ptr->trans[i]); /* alpha */
+ #endif
+ }
+ }
+--
+1.8.5.5
+
+
+From 2766e9574a7437b5b52c9e778abe83420729dba0 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Andr=C3=A9s=20G=2E=20Aragoneses?= <knocte@gmail.com>
+Date: Tue, 9 Jul 2013 23:48:07 +0200
+Subject: [PATCH 3/3] Use png_bytep instead of png_bytepp for the iCCP profile
+
+As suggested by Andrew Ruder in https://github.com/mono/libgdiplus/pull/3
+to avoid storing the profile pointer in an undefined memory location.
+---
+ src/pngcodec.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/pngcodec.c b/src/pngcodec.c
+index cf48152..25c9baf 100644
+--- a/src/pngcodec.c
++++ b/src/pngcodec.c
+@@ -136,11 +136,11 @@
+ #if defined(PNG_iCCP_SUPPORTED)
+ {
+ png_charp name;
+- png_bytepp profile;
++ png_bytep profile;
+ png_uint_32 proflen;
+ int compression_type;
+
+- if (png_get_iCCP(png_ptr, info_ptr, &name, &compression_type, profile, &proflen)) {
++ if (png_get_iCCP(png_ptr, info_ptr, &name, &compression_type, &profile, &proflen)) {
+ gdip_bitmapdata_property_add_ASCII(bitmap_data, PropertyTagICCProfileDescriptor, (BYTE*)name);
+ gdip_bitmapdata_property_add_byte(bitmap_data, PropertyTagICCProfile, (BYTE)compression_type);
+ }
+--
+1.8.5.5
+
diff --git a/packages/dev-dotnet/libgdiplus/files/libgdiplus-2.10.9-libpng15.patch b/packages/dev-dotnet/libgdiplus/files/libgdiplus-2.10.9-libpng15.patch
deleted file mode 100644
index 6e7a883..0000000
--- a/packages/dev-dotnet/libgdiplus/files/libgdiplus-2.10.9-libpng15.patch
+++ /dev/null
@@ -1,168 +0,0 @@
-Source: written by Thomas Klausner
-Upstream: submitted, Novell Bug #666583
-Reason: png-1.5 compatibility fixes
------
-$NetBSD: patch-aa,v 1.8 2011/01/21 10:21:51 wiz Exp $
-
-Fix build with png-1.5.
-
---- src/pngcodec.c.orig 2010-11-03 16:52:54.000000000 +0000
-+++ src/pngcodec.c
-@@ -116,10 +116,15 @@ gdip_load_png_properties (png_structp pn
- bitmap_data->dpi_horz = png_get_x_pixels_per_inch(png_ptr, info_ptr);
- bitmap_data->dpi_vert = png_get_y_pixels_per_inch(png_ptr, info_ptr);
- #elif defined(PNG_pHYs_SUPPORTED)
-- if ((info_ptr->valid & PNG_INFO_pHYs) && (info_ptr->phys_unit_type == PNG_RESOLUTION_METER)) {
-- bitmap_data->image_flags |= ImageFlagsHasRealDPI;
-- bitmap_data->dpi_horz = info_ptr->x_pixels_per_unit * 0.0254;
-- bitmap_data->dpi_vert = info_ptr->y_pixels_per_unit * 0.0254;
-+ if (png_get_valid (png_ptr, info_ptr, PNG_INFO_pHYs)) {
-+ png_uint_32 res_x, res_y;
-+ int unit_type;
-+ png_get_pHYs (png_ptr, info_ptr, &res_x, &res_y, &unit_type);
-+ if (unit_type == PNG_RESOLUTION_METER) {
-+ bitmap_data->image_flags |= ImageFlagsHasRealDPI;
-+ bitmap_data->dpi_horz = res_x * 0.0254;
-+ bitmap_data->dpi_vert = res_y * 0.0254;
-+ }
- }
- #endif
- /* default to screen resolution (if nothing was provided or available) */
-@@ -130,7 +135,7 @@ gdip_load_png_properties (png_structp pn
- #if defined(PNG_iCCP_SUPPORTED)
- {
- png_charp name;
-- png_charp profile;
-+ png_bytep profile;
- png_uint_32 proflen;
- int compression_type;
-
-@@ -292,6 +297,11 @@ gdip_load_png_image_from_file_or_stream
- ImageFlags colourspace_flag;
- int i;
- int j;
-+ png_colorp png_palette;
-+ int png_num_palette;
-+ png_bytep trans_alpha;
-+ int num_trans;
-+ png_color_16p trans_color;
-
- width = png_get_image_width (png_ptr, info_ptr);
- height = png_get_image_height (png_ptr, info_ptr);
-@@ -309,6 +319,8 @@ gdip_load_png_image_from_file_or_stream
- }
-
- /* Copy palette. */
-+ png_get_PLTE (png_ptr, info_ptr, &png_palette, &png_num_palette);
-+
- num_colours = 1 << bit_depth;
-
- if (png_get_color_type (png_ptr, info_ptr) == PNG_COLOR_TYPE_GRAY) {
-@@ -321,8 +333,8 @@ gdip_load_png_image_from_file_or_stream
- colourspace_flag = ImageFlagsColorSpaceRGB;
-
- palette_entries = num_colours;
-- if (palette_entries > info_ptr->num_palette) {
-- palette_entries = info_ptr->num_palette;
-+ if (palette_entries > png_num_palette) {
-+ palette_entries = png_num_palette;
- }
-
- palette = GdipAlloc (sizeof(ColorPalette) + (num_colours - 1) * sizeof(ARGB));
-@@ -331,29 +343,30 @@ gdip_load_png_image_from_file_or_stream
-
- for (i=0; i < palette_entries; i++) {
- set_pixel_bgra (&palette->Entries[i], 0,
-- info_ptr->palette[i].blue,
-- info_ptr->palette[i].green,
-- info_ptr->palette[i].red,
-+ png_palette[i].blue,
-+ png_palette[i].green,
-+ png_palette[i].red,
- 0xFF); /* alpha */
- }
- }
-
-+ png_get_tRNS (png_ptr, info_ptr, &trans_alpha, &num_trans, &trans_color);
- /* Make sure transparency is respected. */
-- if (info_ptr->num_trans > 0) {
-+ if (num_trans > 0) {
- palette->Flags |= PaletteFlagsHasAlpha;
- colourspace_flag |= ImageFlagsHasAlpha;
-
-- if (info_ptr->num_trans > info_ptr->num_palette) {
-- info_ptr->num_trans = info_ptr->num_palette;
-+ if (num_trans > png_num_palette) {
-+ num_trans = png_num_palette;
- }
-
-- for (i=0; i < info_ptr->num_trans; i++) {
-+ for (i=0; i < num_trans; i++) {
- set_pixel_bgra(&palette->Entries[i], 0,
-- info_ptr->palette[i].blue,
-- info_ptr->palette[i].green,
-- info_ptr->palette[i].red,
-+ png_palette[i].blue,
-+ png_palette[i].green,
-+ png_palette[i].red,
- #if PNG_LIBPNG_VER > 10399
-- info_ptr->trans_alpha [i]); /* alpha */
-+ trans_alpha [i]); /* alpha */
- #else
- info_ptr->trans[i]); /* alpha */
- #endif
-@@ -398,6 +411,8 @@ gdip_load_png_image_from_file_or_stream
- BYTE bit_depth;
- int stride;
- int interlace;
-+ png_colorp png_palette;
-+ int png_num_palette;
- png_bytep *row_pointers;
- BYTE *rawptr;
- int i, j;
-@@ -490,32 +505,33 @@ gdip_load_png_image_from_file_or_stream
- png_byte palette = 0;
- png_byte pix = *rowp++;
-
-+ png_get_PLTE (png_ptr, info_ptr, &png_palette, &png_num_palette);
- palette = (pix >> 6) & 0x03;
- set_pixel_bgra (rawptr, 0,
-- info_ptr->palette[palette].blue,
-- info_ptr->palette[palette].green,
-- info_ptr->palette[palette].red,
-+ png_palette[palette].blue,
-+ png_palette[palette].green,
-+ png_palette[palette].red,
- 0xFF); /* alpha */
-
- palette = (pix >> 4) & 0x03;
- set_pixel_bgra (rawptr, 4,
-- info_ptr->palette[palette].blue,
-- info_ptr->palette[palette].green,
-- info_ptr->palette[palette].red,
-+ png_palette[palette].blue,
-+ png_palette[palette].green,
-+ png_palette[palette].red,
- 0xFF); /* alpha */
-
- palette = (pix >> 2) & 0x03;
- set_pixel_bgra (rawptr, 8,
-- info_ptr->palette[palette].blue,
-- info_ptr->palette[palette].green,
-- info_ptr->palette[palette].red,
-+ png_palette[palette].blue,
-+ png_palette[palette].green,
-+ png_palette[palette].red,
- 0xFF); /* alpha */
-
- palette = pix & 0x03;
- set_pixel_bgra (rawptr, 12,
-- info_ptr->palette[palette].blue,
-- info_ptr->palette[palette].green,
-- info_ptr->palette[palette].red,
-+ png_palette[palette].blue,
-+ png_palette[palette].green,
-+ png_palette[palette].red,
- 0xFF); /* alpha */
- rawptr += 16;
- }
diff --git a/packages/dev-dotnet/libgdiplus/libgdiplus-2.10.9.exheres-0 b/packages/dev-dotnet/libgdiplus/libgdiplus-2.10.9.exheres-0
index 1fac500..945f621 100644
--- a/packages/dev-dotnet/libgdiplus/libgdiplus-2.10.9.exheres-0
+++ b/packages/dev-dotnet/libgdiplus/libgdiplus-2.10.9.exheres-0
@@ -28,7 +28,10 @@ DEPENDENCIES="
tiff? ( media-libs/tiff )
"
-DEFAULT_SRC_PREPARE_PATCHES=( -p0 "${FILES}"/${PNV}-libpng15.patch )
+DEFAULT_SRC_PREPARE_PATCHES=(
+ "${FILES}"/506df13e6e1c9915c248305e47f0b67549732566.patch
+ "${FILES}"/180c02e0f2a2016eba8520b456ca929e9dcf03db.patch
+)
DEFAULT_SRC_CONFIGURE_OPTION_WITHS=( 'exif libexif' 'gif libgif' 'jpeg libjpeg' 'tiff libtiff' )
diff --git a/packages/dev-dotnet/libgdiplus/libgdiplus-2.4.2.exheres-0 b/packages/dev-dotnet/libgdiplus/libgdiplus-2.4.2.exheres-0
deleted file mode 100644
index 6ae0cb2..0000000
--- a/packages/dev-dotnet/libgdiplus/libgdiplus-2.4.2.exheres-0
+++ /dev/null
@@ -1,29 +0,0 @@
-# Copyright 2009 Saleem Abdulrasool <compnerd@compnerd.org>
-# Distributed under the terms of the GNU General Public License v2
-
-SUMMARY="An opensource implementation of libgdi"
-HOMEPAGE="http://www.mono-project.org"
-DOWNLOADS="http://download.mono-project.com/sources/${PN}/${PNV}.tar.bz2"
-
-LICENCES="MIT"
-SLOT="0"
-PLATFORMS="~amd64 ~x86"
-MYOPTIONS="exif gif jpeg tiff"
-
-DEPENDENCIES="
- build:
- dev-util/pkg-config[>=0.20]
- build+run:
- dev-libs/glib:2[>=2.2.3]
- x11-libs/cairo[>=1.6.5]
- media-libs/fontconfig
- media-libs/freetype:2
- media-libs/libpng[>=1.2]
- exif? ( media-libs/libexif )
- gif? ( media-libs/giflib )
- jpeg? ( media-libs/jpeg )
- tiff? ( media-libs/tiff )
-"
-
-DEFAULT_SRC_CONFIGURE_OPTION_WITHS=( 'exif libexif' 'gif libgif' 'jpeg libjpeg' 'tiff libtiff' )
-
diff --git a/packages/dev-dotnet/libgdiplus/libgdiplus-2.6.7.exheres-0 b/packages/dev-dotnet/libgdiplus/libgdiplus-2.6.7.exheres-0
index ae67afb..1edbd03 100644
--- a/packages/dev-dotnet/libgdiplus/libgdiplus-2.6.7.exheres-0
+++ b/packages/dev-dotnet/libgdiplus/libgdiplus-2.6.7.exheres-0
@@ -27,5 +27,10 @@ DEPENDENCIES="
tiff? ( media-libs/tiff )
"
+DEFAULT_SRC_PREPARE_PATCHES=(
+ "${FILES}"/506df13e6e1c9915c248305e47f0b67549732566.patch
+ "${FILES}"/180c02e0f2a2016eba8520b456ca929e9dcf03db.patch
+)
+
DEFAULT_SRC_CONFIGURE_OPTION_WITHS=( 'exif libexif' 'gif libgif' 'jpeg libjpeg' 'tiff libtiff' )