summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorminskim <minskim@pkgsrc.org>2017-02-09 03:27:30 +0000
committerminskim <minskim@pkgsrc.org>2017-02-09 03:27:30 +0000
commitb653ee44ca3e576fabc10476fbdd1df7caa452ac (patch)
tree9f7b3bc5a5db8258b08a7851f0944b6e373ee253 /graphics
parent7b00c690db889a291323fdf1f985f336aec79460 (diff)
downloadpkgsrc-b653ee44ca3e576fabc10476fbdd1df7caa452ac.tar.gz
Make gd build on Darwin
Include limits.h to use INT_MAX.
Diffstat (limited to 'graphics')
-rw-r--r--graphics/gd/distinfo3
-rw-r--r--graphics/gd/patches/patch-src_gd__gd2.c12
2 files changed, 14 insertions, 1 deletions
diff --git a/graphics/gd/distinfo b/graphics/gd/distinfo
index 2154107b28c..a6cbe929a77 100644
--- a/graphics/gd/distinfo
+++ b/graphics/gd/distinfo
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.43 2017/02/04 23:05:51 spz Exp $
+$NetBSD: distinfo,v 1.44 2017/02/09 03:27:30 minskim Exp $
SHA1 (libgd-2.2.4.tar.xz) = 67779817d7aecb94594c43ace949af350ca1df7f
RMD160 (libgd-2.2.4.tar.xz) = 4b0ac89bf547aa7b6550e33d79fe5ca05801b4e6
SHA512 (libgd-2.2.4.tar.xz) = 07903f322c4f6ab392508b0f60c38ca133699111ea92995dc6cd9379210d598bcb24a46c19657884d9e252f8663d0ee8c89c600e3a382a5ae598198c190f39b5
Size (libgd-2.2.4.tar.xz) = 2478528 bytes
+SHA1 (patch-src_gd__gd2.c) = b4c53140dfbdb4251ae3058034b66cbf889672b9
diff --git a/graphics/gd/patches/patch-src_gd__gd2.c b/graphics/gd/patches/patch-src_gd__gd2.c
new file mode 100644
index 00000000000..a847919d6ac
--- /dev/null
+++ b/graphics/gd/patches/patch-src_gd__gd2.c
@@ -0,0 +1,12 @@
+$NetBSD: patch-src_gd__gd2.c,v 1.1 2017/02/09 03:27:30 minskim Exp $
+
+--- src/gd_gd2.c.orig 2017-01-18 10:49:29.000000000 +0000
++++ src/gd_gd2.c
+@@ -73,6 +73,7 @@
+ #endif
+
+ /* 2.0.29: no more errno.h, makes windows happy */
++#include <limits.h>
+ #include <math.h>
+ #include <string.h>
+ #include "gd.h"