aboutsummaryrefslogtreecommitdiff
path: root/graphics/pecl-imlib2
diff options
context:
space:
mode:
authorGreg Larkin <glarkin@FreeBSD.org>2010-04-17 00:19:27 +0000
committerGreg Larkin <glarkin@FreeBSD.org>2010-04-17 00:19:27 +0000
commitd71408c2572fe5b84f92172dcf11d952dec398be (patch)
treec68d4be3ecdc18900dcbe22f25b846a4b6978d25 /graphics/pecl-imlib2
parent4bf44fe3f6eb4d2b7063e0c481ede8387dfa7341 (diff)
downloadports-d71408c2572fe5b84f92172dcf11d952dec398be.tar.gz
ports-d71408c2572fe5b84f92172dcf11d952dec398be.zip
Notes
Diffstat (limited to 'graphics/pecl-imlib2')
-rw-r--r--graphics/pecl-imlib2/Makefile2
-rw-r--r--graphics/pecl-imlib2/files/patch-imlib2.c23
2 files changed, 17 insertions, 8 deletions
diff --git a/graphics/pecl-imlib2/Makefile b/graphics/pecl-imlib2/Makefile
index e3f9dc7aafc3..46983ca4cce9 100644
--- a/graphics/pecl-imlib2/Makefile
+++ b/graphics/pecl-imlib2/Makefile
@@ -21,8 +21,6 @@ USE_PHP= yes
USE_PHPEXT= yes
USE_EFL= imlib2
-BROKEN= does not compile with PHP 5.3.2
-
# libImlib2 may or may not depend on X, however,
# imlib2 extension doesn't need X related functions in libImlib2
CFLAGS+= -DX_DISPLAY_MISSING
diff --git a/graphics/pecl-imlib2/files/patch-imlib2.c b/graphics/pecl-imlib2/files/patch-imlib2.c
index 150b40bd035c..57706077decd 100644
--- a/graphics/pecl-imlib2/files/patch-imlib2.c
+++ b/graphics/pecl-imlib2/files/patch-imlib2.c
@@ -1,6 +1,17 @@
---- imlib2.c.orig Wed Sep 20 10:05:27 2006
-+++ imlib2.c Wed Sep 20 10:06:15 2006
-@@ -643,8 +643,8 @@
+--- ./imlib2.c.orig 2004-01-01 18:57:55.000000000 -0500
++++ ./imlib2.c 2010-04-16 20:02:16.000000000 -0400
+@@ -47,6 +47,10 @@
+ static int le_imlib2_img;
+ static int le_imlib2_poly;
+
++ZEND_BEGIN_ARG_INFO(second_arg_force_ref, 0)
++ ZEND_ARG_PASS_INFO(0)
++ ZEND_ARG_PASS_INFO(1)
++ ZEND_END_ARG_INFO();
+
+ function_entry imlib2_functions[] = {
+ PHP_FE(imlib2_image_modify_gamma,NULL)
+@@ -643,8 +647,8 @@
zval **img, **gamma;
Imlib_Image im;
Imlib_Color_Modifier cm;
@@ -10,7 +21,7 @@
if (ZEND_NUM_ARGS() != 2 | zend_get_parameters_ex(2, &img, &gamma) == FAILURE) {
WRONG_PARAM_COUNT;
-@@ -675,8 +675,8 @@
+@@ -675,8 +679,8 @@
zval **img, **contrast;
Imlib_Image im;
Imlib_Color_Modifier cm;
@@ -20,7 +31,7 @@
if (ZEND_NUM_ARGS() != 2 | zend_get_parameters_ex(2, &img, &contrast) == FAILURE) {
WRONG_PARAM_COUNT;
-@@ -707,8 +707,8 @@
+@@ -707,8 +711,8 @@
zval **img, **bv;
Imlib_Image im;
Imlib_Color_Modifier cm;
@@ -30,7 +41,7 @@
if (ZEND_NUM_ARGS() != 2 | zend_get_parameters_ex(2, &img, &bv) == FAILURE) {
WRONG_PARAM_COUNT;
-@@ -760,9 +760,9 @@
+@@ -760,9 +764,9 @@
{
zval **img, **angle;
double rot_angle, rads, pi;