[Midnightbsd-cvs] mports [24798] trunk/graphics: update php graphics ports

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Tue Jan 15 19:23:55 EST 2019


Revision: 24798
          http://svnweb.midnightbsd.org/mports/?rev=24798
Author:   laffer1
Date:     2019-01-15 19:23:55 -0500 (Tue, 15 Jan 2019)
Log Message:
-----------
update php graphics ports

Modified Paths:
--------------
    trunk/graphics/Makefile

Added Paths:
-----------
    trunk/graphics/php71-exif/
    trunk/graphics/php71-exif/Makefile
    trunk/graphics/php71-gd/
    trunk/graphics/php71-gd/Makefile
    trunk/graphics/php71-gd/files/
    trunk/graphics/php71-gd/files/patch-config.m4
    trunk/graphics/php71-gd/files/patch-gd.c

Removed Paths:
-------------
    trunk/graphics/php56-exif/
    trunk/graphics/php56-gd/

Modified: trunk/graphics/Makefile
===================================================================
--- trunk/graphics/Makefile	2019-01-16 00:22:54 UTC (rev 24797)
+++ trunk/graphics/Makefile	2019-01-16 00:23:55 UTC (rev 24798)
@@ -144,10 +144,10 @@
 SUBDIR += p5-Image-Size
 SUBDIR += p5-Chart
 SUBDIR += pecl-imlib2
-SUBDIR += php56-exif
-SUBDIR += php56-gd
 SUBDIR += php70-exif
 SUBDIR += php70-gd
+SUBDIR += php71-exif
+SUBDIR += php71-gd
 SUBDIR += pixen
 SUBDIR += plotutils
 SUBDIR += png

Added: trunk/graphics/php71-exif/Makefile
===================================================================
--- trunk/graphics/php71-exif/Makefile	                        (rev 0)
+++ trunk/graphics/php71-exif/Makefile	2019-01-16 00:23:55 UTC (rev 24798)
@@ -0,0 +1,12 @@
+# $MidnightBSD$
+# $FreeBSD: head/graphics/php71-exif/Makefile 475229 2018-07-24 08:44:32Z tz $
+
+CATEGORIES=	graphics
+
+MASTERDIR=	${.CURDIR}/../../lang/php71
+
+PKGNAMESUFFIX=	-exif
+
+TEST_TARGET=    test
+
+.include "${MASTERDIR}/Makefile"


Property changes on: trunk/graphics/php71-exif/Makefile
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/graphics/php71-gd/Makefile
===================================================================
--- trunk/graphics/php71-gd/Makefile	                        (rev 0)
+++ trunk/graphics/php71-gd/Makefile	2019-01-16 00:23:55 UTC (rev 24798)
@@ -0,0 +1,14 @@
+# $MidnightBSD$
+# $FreeBSD: head/graphics/php71-gd/Makefile 477442 2018-08-17 19:02:36Z joneum $
+
+CATEGORIES=	graphics
+
+MASTERDIR=	${.CURDIR}/../../lang/php71
+
+PKGNAMESUFFIX=	-gd
+
+TEST_TARGET=    test
+
+.include "${MASTERDIR}/Makefile"
+
+LIB_DEPENDS+=	libgd.so:graphics/gd


Property changes on: trunk/graphics/php71-gd/Makefile
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/graphics/php71-gd/files/patch-config.m4
===================================================================
--- trunk/graphics/php71-gd/files/patch-config.m4	                        (rev 0)
+++ trunk/graphics/php71-gd/files/patch-config.m4	2019-01-16 00:23:55 UTC (rev 24798)
@@ -0,0 +1,28 @@
+--- config.m4.orig	2018-07-19 06:17:29 UTC
++++ config.m4
+@@ -295,6 +295,7 @@ dnl enable the support in bundled GD library
+ 
+   if test -n "$GD_XPM_DIR"; then
+     AC_DEFINE(HAVE_GD_XPM, 1, [ ])
++    AC_DEFINE(HAVE_XPM, 1, [ ])
+     GDLIB_CFLAGS="$GDLIB_CFLAGS -DHAVE_XPM"
+   fi
+ 
+@@ -358,7 +359,7 @@ if test "$PHP_GD" != "no"; then
+ 
+   if test "$GD_MODULE_TYPE" = "builtin"; then 
+     PHP_ADD_BUILD_DIR($ext_builddir/libgd)
+-    GDLIB_CFLAGS="-I$ext_srcdir/libgd $GDLIB_CFLAGS"
++    GDLIB_CFLAGS="-I../.. -I$ext_srcdir/libgd $GDLIB_CFLAGS"
+     GD_HEADER_DIRS="ext/gd/ ext/gd/libgd/"
+ 
+     PHP_TEST_BUILD(foobar, [], [
+@@ -366,7 +367,7 @@ if test "$PHP_GD" != "no"; then
+     ], [ $GD_SHARED_LIBADD ], [char foobar () {}])
+   else
+     GD_HEADER_DIRS="ext/gd/"
+-    GDLIB_CFLAGS="-I$GD_INCLUDE $GDLIB_CFLAGS"
++    GDLIB_CFLAGS="-I../.. -I$ext_srcdir/libgd $GDLIB_CFLAGS"
+     PHP_ADD_INCLUDE($GD_INCLUDE)
+     PHP_CHECK_LIBRARY(gd, gdImageCreate, [], [
+       AC_MSG_ERROR([GD build test failed. Please check the config.log for details.])


Property changes on: trunk/graphics/php71-gd/files/patch-config.m4
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/graphics/php71-gd/files/patch-gd.c
===================================================================
--- trunk/graphics/php71-gd/files/patch-gd.c	                        (rev 0)
+++ trunk/graphics/php71-gd/files/patch-gd.c	2019-01-16 00:23:55 UTC (rev 24798)
@@ -0,0 +1,83 @@
+--- gd.c.orig	2018-07-19 06:17:30 UTC
++++ gd.c
+@@ -53,7 +53,7 @@
+ # include <Wingdi.h>
+ #endif
+ 
+-#ifdef HAVE_GD_XPM
++#if defined(HAVE_XPM) && defined(HAVE_GD_XPM)
+ # include <X11/xpm.h>
+ #endif
+ 
+@@ -79,7 +79,7 @@ static int le_gd, le_gd_font;
+ # endif
+ #endif
+ 
+-#if defined(HAVE_GD_XPM) && defined(HAVE_GD_BUNDLED)
++#if defined(HAVE_XPM) && defined(HAVE_GD_XPM) && defined(HAVE_GD_BUNDLED)
+ # include "X11/xpm.h"
+ #endif
+ 
+@@ -327,7 +327,7 @@ ZEND_BEGIN_ARG_INFO(arginfo_imagecreatefromxbm, 0)
+ 	ZEND_ARG_INFO(0, filename)
+ ZEND_END_ARG_INFO()
+ 
+-#if defined(HAVE_GD_XPM)
++#if defined(HAVE_XPM) && defined(HAVE_GD_XPM)
+ ZEND_BEGIN_ARG_INFO(arginfo_imagecreatefromxpm, 0)
+ 	ZEND_ARG_INFO(0, filename)
+ ZEND_END_ARG_INFO()
+@@ -901,7 +901,7 @@ const zend_function_entry gd_functions[] = {
+ #endif
+ 	PHP_FE(imagecreatefromwbmp,						arginfo_imagecreatefromwbmp)
+ 	PHP_FE(imagecreatefromxbm,						arginfo_imagecreatefromxbm)
+-#if defined(HAVE_GD_XPM)
++#if defined(HAVE_XPM) && defined(HAVE_GD_XPM)
+ 	PHP_FE(imagecreatefromxpm,						arginfo_imagecreatefromxpm)
+ #endif
+ 	PHP_FE(imagecreatefromgd,						arginfo_imagecreatefromgd)
+@@ -1252,7 +1252,7 @@ PHP_MINFO_FUNCTION(gd)
+ 	php_info_print_table_row(2, "libPNG Version", gdPngGetVersionString());
+ #endif
+ 	php_info_print_table_row(2, "WBMP Support", "enabled");
+-#if defined(HAVE_GD_XPM)
++#if defined(HAVE_XPM) && defined(HAVE_GD_XPM)
+ 	php_info_print_table_row(2, "XPM Support", "enabled");
+ 	{
+ 		char tmp[12];
+@@ -1307,7 +1307,7 @@ PHP_FUNCTION(gd_info)
+ 	add_assoc_bool(return_value, "PNG Support", 0);
+ #endif
+ 	add_assoc_bool(return_value, "WBMP Support", 1);
+-#if defined(HAVE_GD_XPM)
++#if defined(HAVE_XPM) && defined(HAVE_GD_XPM)
+ 	add_assoc_bool(return_value, "XPM Support", 1);
+ #else
+ 	add_assoc_bool(return_value, "XPM Support", 0);
+@@ -2147,7 +2147,7 @@ PHP_FUNCTION(imagetypes)
+ 	ret |= 4;
+ #endif
+ 	ret |= 8;
+-#if defined(HAVE_GD_XPM)
++#if defined(HAVE_XPM) && defined(HAVE_GD_XPM)
+ 	ret |= 16;
+ #endif
+ #ifdef HAVE_GD_WEBP
+@@ -2397,7 +2397,7 @@ static void _php_image_create_from(INTERNAL_FUNCTION_P
+ 			case PHP_GDIMG_TYPE_GD2PART:
+ 				im = (*func_p)(fp, srcx, srcy, width, height);
+ 				break;
+-#if defined(HAVE_GD_XPM)
++#if defined(HAVE_XPM) && defined(HAVE_GD_XPM)
+ 			case PHP_GDIMG_TYPE_XPM:
+ 				im = gdImageCreateFromXpm(file);
+ 				break;
+@@ -2479,7 +2479,7 @@ PHP_FUNCTION(imagecreatefromxbm)
+ }
+ /* }}} */
+ 
+-#if defined(HAVE_GD_XPM)
++#if defined(HAVE_XPM) && defined(HAVE_GD_XPM)
+ /* {{{ proto resource imagecreatefromxpm(string filename)
+    Create a new image from XPM file or URL */
+ PHP_FUNCTION(imagecreatefromxpm)


Property changes on: trunk/graphics/php71-gd/files/patch-gd.c
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property


More information about the Midnightbsd-cvs mailing list