summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Timo Gurr <tgurr@exherbo.org> 2014-12-18 16:51:57 +0100
committerAvatar Timo Gurr <tgurr@exherbo.org> 2014-12-18 17:58:23 +0100
commitcfbd78a82cfb41ae13177e92c4035fd0221d167f (patch)
tree22440dfa4beb88c8035f7e8267dbf337512c8bb7
parent1eeb41634f062e6505b269275b0770d40d0e6e0b (diff)
downloadmono-cfbd78a82cfb41ae13177e92c4035fd0221d167f.tar.gz
mono-cfbd78a82cfb41ae13177e92c4035fd0221d167f.tar.xz
libgdiplus: version bump to 3.8
-rw-r--r--packages/dev-dotnet/libgdiplus/files/1f5d122b9c4c197030db2c949668d4cc141a97cd.patch26
-rw-r--r--packages/dev-dotnet/libgdiplus/libgdiplus-3.8.exheres-045
2 files changed, 71 insertions, 0 deletions
diff --git a/packages/dev-dotnet/libgdiplus/files/1f5d122b9c4c197030db2c949668d4cc141a97cd.patch b/packages/dev-dotnet/libgdiplus/files/1f5d122b9c4c197030db2c949668d4cc141a97cd.patch
new file mode 100644
index 0000000..50906eb
--- /dev/null
+++ b/packages/dev-dotnet/libgdiplus/files/1f5d122b9c4c197030db2c949668d4cc141a97cd.patch
@@ -0,0 +1,26 @@
+From 1f5d122b9c4c197030db2c949668d4cc141a97cd Mon Sep 17 00:00:00 2001
+From: Marek Habersack <mhabersack@novell.com>
+Date: Tue, 25 Nov 2014 12:45:05 +0100
+Subject: [PATCH] Newer giflib defines the EGifOpen correctly. Prevent build
+ failures by making its redefinition conditional on presence of the EgifOpen
+ function declaration.
+
+---
+ src/gifcodec.c | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/src/gifcodec.c b/src/gifcodec.c
+index 8dee0eb..e1a0697 100644
+--- a/src/gifcodec.c
++++ b/src/gifcodec.c
+@@ -39,8 +39,10 @@ GUID gdip_gif_image_format_guid = {0xb96b3cb0U, 0x0728U, 0x11d3U, {0x9d, 0x7b, 0
+
+ #include "gifcodec.h"
+
++#ifdef EgifOpen
+ /* giflib declares this incorrectly as EgifOpen */
+ extern GifFileType *EGifOpen(void *userData, OutputFunc writeFunc);
++#endif
+
+ /* Data structure used for callback */
+ typedef struct
diff --git a/packages/dev-dotnet/libgdiplus/libgdiplus-3.8.exheres-0 b/packages/dev-dotnet/libgdiplus/libgdiplus-3.8.exheres-0
new file mode 100644
index 0000000..f2019e5
--- /dev/null
+++ b/packages/dev-dotnet/libgdiplus/libgdiplus-3.8.exheres-0
@@ -0,0 +1,45 @@
+# Copyright 2009 Saleem Abdulrasool <compnerd@compnerd.org>
+# Copyright 2013 Aleksandar Petrinic <petrinic@gmail.com>
+# Distributed under the terms of the GNU General Public License v2
+
+SUMMARY="An Open Source implementation of the GDI+ API"
+HOMEPAGE="http://www.mono-project.org"
+DOWNLOADS="http://download.mono-project.com/sources/${PN}/${PNV}.tar.gz"
+
+LICENCES="MIT"
+SLOT="0"
+PLATFORMS="~amd64 ~x86"
+MYOPTIONS="
+ exif
+ gif
+ tiff
+"
+
+DEPENDENCIES="
+ build:
+ virtual/pkg-config
+ build+run:
+ dev-libs/glib:2[>=2.2.3]
+ media-libs/fontconfig
+ media-libs/freetype:2
+ media-libs/jpeg:=
+ media-libs/libpng:=[>=1.5]
+ x11-libs/cairo[>=1.6.5]
+ x11-libs/libXrender
+ x11-libs/pango[>=1.10]
+ exif? ( media-libs/libexif )
+ gif? ( media-libs/giflib:= )
+ tiff? ( media-libs/tiff )
+"
+
+DEFAULT_SRC_PREPARE_PATCHES=(
+ "${FILES}"/1f5d122b9c4c197030db2c949668d4cc141a97cd.patch
+)
+
+DEFAULT_SRC_CONFIGURE_PARAMS=( --with-libjpeg )
+DEFAULT_SRC_CONFIGURE_OPTION_WITHS=(
+ 'exif libexif'
+ 'gif libgif'
+ 'tiff libtiff'
+)
+