diff options
author | Norikatsu Shigemura <nork@FreeBSD.org> | 2003-07-03 06:02:38 +0000 |
---|---|---|
committer | Norikatsu Shigemura <nork@FreeBSD.org> | 2003-07-03 06:02:38 +0000 |
commit | 2efdd507c9eb063194cd2e9adba98fa71072b291 (patch) | |
tree | dddb10e2aff4c0e828db0e8c4b9e167e76ecea83 /lang/php4/files/patch-ext::gd::gd.c | |
parent | Goodbye PA, hello MA. (diff) |
o Switch to libtool 1.4.
o Add WITHOUT_IPV6 knob (Requested by Jens Rehsack <rehsack@liwing.de>
in ports/53754, implemented in a slightly different way).
o Add GIF and animated GIF write support by default in GD and add
WITH_LZW knob to enable the LZW compression algorithm (patented
in some countries).
o Removed gd_gif_out.diff patch and added many new patches.
PR: ports/53754, ports/53879
Requested by: Jens Rehsack <rehsack@liwing.de>
Submitted by: Alex Dupre <sysadmin@alexdupre.com> (maintainer)
Notes
Notes:
svn path=/head/; revision=84110
Diffstat (limited to 'lang/php4/files/patch-ext::gd::gd.c')
-rw-r--r-- | lang/php4/files/patch-ext::gd::gd.c | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/lang/php4/files/patch-ext::gd::gd.c b/lang/php4/files/patch-ext::gd::gd.c new file mode 100644 index 000000000000..98be8d330e4e --- /dev/null +++ b/lang/php4/files/patch-ext::gd::gd.c @@ -0,0 +1,50 @@ +--- ext/gd/gd.c.orig Wed Jun 4 02:22:30 2003 ++++ ext/gd/gd.c Sat Jun 28 15:47:56 2003 +@@ -206,6 +206,11 @@ + #ifdef HAVE_GD_GIF_CREATE + PHP_FE(imagegif, NULL) + #endif ++#ifdef HAVE_GD_GIF_ANIM ++ PHP_FE(imagegifanimbegin, NULL) ++ PHP_FE(imagegifanimadd, NULL) ++ PHP_FE(imagegifanimend, NULL) ++#endif + #ifdef HAVE_GD_JPG + PHP_FE(imagejpeg, NULL) + #endif +@@ -1707,11 +1712,35 @@ + #ifdef HAVE_GD_GIF_CTX + _php_image_output_ctx(INTERNAL_FUNCTION_PARAM_PASSTHRU, PHP_GDIMG_TYPE_GIF, "GIF", gdImageGifCtx); + #else ++ ++#ifdef HAVE_GD_BUNDLED ++#error "I really think there should be ctx version of imagegif in the bundled GD library. Fix the configuration." ++#endif ++ + _php_image_output(INTERNAL_FUNCTION_PARAM_PASSTHRU, PHP_GDIMG_TYPE_GIF, "GIF", gdImageGif); + #endif + } + /* }}} */ + #endif /* HAVE_GD_GIF_CREATE */ ++ ++#ifdef HAVE_GD_GIF_ANIM ++/* {{{ proto int imagegifanimbegin(int im [, string filename [, int GlobalColormap [, int Loops]]]) ++ Begin GIF animation. Image parameter is only used for size and colormap, ++ all animation frames must be added separately. */ ++PHP_FUNCTION(imagegifanimbegin) ++{ ++ _php_image_output_ctx(INTERNAL_FUNCTION_PARAM_PASSTHRU, PHP_GDIMG_TYPE_GIFANIMBEGIN, "GIF", gdImageGifAnimBeginCtx); ++} ++/* }}} */ ++ ++/* {{{ proto int imagegifanimadd(int im [, string filename [, int LocalColormap [, LeftOfs [, int TopOfs [, int Delay [, int Disposal]]]]]]) ++ Append GIF image to animation */ ++PHP_FUNCTION(imagegifanimadd) ++{ ++ _php_image_output_ctx(INTERNAL_FUNCTION_PARAM_PASSTHRU, PHP_GDIMG_TYPE_GIFANIMADD, "GIF", gdImageGifAnimAddCtx); ++} ++/* }}} */ ++#endif /* HAVE_GD_GIF_ANIM */ + + #ifdef HAVE_GD_PNG + /* {{{ proto int imagepng(int im [, string filename]) |