aboutsummaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2010-04-23 23:53:34 +0800
committerdinoex <dinoex@FreeBSD.org>2010-04-23 23:53:34 +0800
commit438d58d9723ef45449b0b20e93a8d07fb1d22f1c (patch)
treed5f48d3c38c78870c54e7a8323fa5415a0b1cb94 /graphics
parentf167e2b999889d7d90235d66054a7249a00d50f8 (diff)
downloadfreebsd-ports-gnome-438d58d9723ef45449b0b20e93a8d07fb1d22f1c.tar.gz
freebsd-ports-gnome-438d58d9723ef45449b0b20e93a8d07fb1d22f1c.tar.zst
freebsd-ports-gnome-438d58d9723ef45449b0b20e93a8d07fb1d22f1c.zip
- PHP 5.2 slave port
PR: 145772 Submitted by: Alex Keda
Diffstat (limited to 'graphics')
-rw-r--r--graphics/Makefile1
-rw-r--r--graphics/php52-gd/Makefile14
-rw-r--r--graphics/php52-gd/files/patch-config.m411
-rw-r--r--graphics/php52-gd/files/patch-libgd_gd_png.c14
4 files changed, 40 insertions, 0 deletions
diff --git a/graphics/Makefile b/graphics/Makefile
index 42d9c3a5c5b4..6c84711881f2 100644
--- a/graphics/Makefile
+++ b/graphics/Makefile
@@ -689,6 +689,7 @@
SUBDIR += php5-ffmpeg
SUBDIR += php5-gd
SUBDIR += php52-exif
+ SUBDIR += php52-gd
SUBDIR += phplot
SUBDIR += phpsview
SUBDIR += picpuz
diff --git a/graphics/php52-gd/Makefile b/graphics/php52-gd/Makefile
new file mode 100644
index 000000000000..5257868d44c7
--- /dev/null
+++ b/graphics/php52-gd/Makefile
@@ -0,0 +1,14 @@
+# New ports collection makefile for: php52-gd
+# Date created: 17 Apr 2010
+# Whom: Alex Keda <admin@lissyara.su>
+#
+# $FreeBSD$
+#
+
+CATEGORIES= graphics
+
+MASTERDIR= ${.CURDIR}/../../lang/php52
+
+PKGNAMESUFFIX= -gd
+
+.include "${MASTERDIR}/Makefile"
diff --git a/graphics/php52-gd/files/patch-config.m4 b/graphics/php52-gd/files/patch-config.m4
new file mode 100644
index 000000000000..03b69a1c248a
--- /dev/null
+++ b/graphics/php52-gd/files/patch-config.m4
@@ -0,0 +1,11 @@
+--- config.m4.orig Mon May 30 01:16:41 2005
++++ config.m4 Wed Dec 7 11:01:13 2005
+@@ -220,7 +220,7 @@
+ ],[
+ AC_MSG_ERROR([Problem with libt1.(a|so). Please check config.log for more information.])
+ ],[
+- -L$GD_T1_DIR/$PHP_LIBDIR
++ -L$GD_T1_DIR/$PHP_LIBDIR -lm
+ ])
+ fi
+ ])
diff --git a/graphics/php52-gd/files/patch-libgd_gd_png.c b/graphics/php52-gd/files/patch-libgd_gd_png.c
new file mode 100644
index 000000000000..95934bfc5089
--- /dev/null
+++ b/graphics/php52-gd/files/patch-libgd_gd_png.c
@@ -0,0 +1,14 @@
+--- libgd/gd_png.c.orig 2009-03-14 18:48:42.000000000 +0100
++++ libgd/gd_png.c 2010-04-05 19:54:05.000000000 +0200
+@@ -139,7 +139,11 @@
+ return NULL;
+ }
+
++#if PNG_LIBPNG_VER >= 10400
++ if (png_sig_cmp (sig, 0, 8)) { /* bad signature */
++#else
+ if (!png_check_sig (sig, 8)) { /* bad signature */
++#endif
+ return NULL;
+ }
+