freebsd-ports/graphics/pecl-imlib2/files/patch-php_imlib
Mikhail Teterin 4df3b4e029 Unbreak by fixing the code to work newer PHP. I'm not sure, if this
extension is all that useful considering the ImageMagick- and
GD-based alternatives, but if it has to go, it will not be for
reasons of being "php-5.3 only".

While here change hard-coded default of /usr/share to ${LOCALBASE}/share,
define LICENSE and otherwise pet portlint.

Approved by:	being condemned
2015-04-09 20:34:09 +00:00

22 lines
673 B
Text

--- php_imlib2.h 2004-01-01 18:01:13.000000000 -0500
+++ php_imlib2.h 2015-04-09 13:10:05.000000000 -0400
@@ -2,5 +2,4 @@
#define PHP_IMLIB2_H
-#include "X11/Xlib.h"
#include <Imlib2.h>
@@ -86,5 +85,5 @@
int font_cache_max_size;
int font_cache_status;
- char *font_path;
+ const char *font_path;
ZEND_END_MODULE_GLOBALS(imlib2)
@@ -104,5 +103,5 @@
#ifdef ZTS
#define IMLIB2_G(v) TSRMG(imlib2_globals_id, zend_imlib2_globals *, v)
-#define IMLIB2_LS_FETCH() imlib2_globals *imlib2_globals = ts_resource(gd_imlib_id)
+#define IMLIB2_LS_FETCH() zend_imlib2_globals *imlib2_globals = ts_resource(imlib2_globals_id)
#else
#define IMLIB2_G(v) (imlib2_globals.v)