diff options
author | jlam <jlam@pkgsrc.org> | 2001-10-16 06:28:06 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2001-10-16 06:28:06 +0000 |
commit | 9b0ee25ff964013537b0a7283a0619e1c8dd5690 (patch) | |
tree | c03791763ce8d3f941d0d08bce74ef51dbc3c309 /textproc/php4-wddx | |
parent | 550d0718ab928499e8477e75b63dd3c5141111d3 (diff) | |
download | pkgsrc-9b0ee25ff964013537b0a7283a0619e1c8dd5690.tar.gz |
textproc/php4-wddx: PHP4 extension for WDDX (Web Direct Data eXchange).
This version is from the php-4.0.6 distribution.
Diffstat (limited to 'textproc/php4-wddx')
-rw-r--r-- | textproc/php4-wddx/Makefile | 18 | ||||
-rw-r--r-- | textproc/php4-wddx/distinfo | 7 | ||||
-rw-r--r-- | textproc/php4-wddx/patches/patch-aa | 12 | ||||
-rw-r--r-- | textproc/php4-wddx/patches/patch-ab | 32 | ||||
-rw-r--r-- | textproc/php4-wddx/patches/patch-ac | 24 | ||||
-rw-r--r-- | textproc/php4-wddx/pkg/DESCR | 2 |
6 files changed, 95 insertions, 0 deletions
diff --git a/textproc/php4-wddx/Makefile b/textproc/php4-wddx/Makefile new file mode 100644 index 00000000000..919eaeb3248 --- /dev/null +++ b/textproc/php4-wddx/Makefile @@ -0,0 +1,18 @@ +# $NetBSD: Makefile,v 1.1.1.1 2001/10/16 06:28:06 jlam Exp $ + +.include "../php4/Makefile.module" + +MODNAME= wddx +CATEGORIES+= textproc +PHP_PKG_VERS= # empty +COMMENT= PHP4 extension for WDDX support + +DEPENDS+= php-session>=${PHP_BASE_VERS}:../../www/php4-session +DEPENDS+= php-xml>=${PHP_BASE_VERS}:../../www/php4-xml + +USE_BUILDLINK_ONLY= YES +CONFIGURE_ARGS+= --enable-${MODNAME}=shared,${BUILDLINK_DIR} +CONFIGURE_ARGS+= --with-expat-dir=shared,${BUILDLINK_DIR} + +.include "../../textproc/expat/buildlink.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/textproc/php4-wddx/distinfo b/textproc/php4-wddx/distinfo new file mode 100644 index 00000000000..b38e4e22e05 --- /dev/null +++ b/textproc/php4-wddx/distinfo @@ -0,0 +1,7 @@ +$NetBSD: distinfo,v 1.1.1.1 2001/10/16 06:28:06 jlam Exp $ + +SHA1 (php-4.0.6.tar.gz) = 6544eb1085b916541af914a11074e9bb8a037a03 +Size (php-4.0.6.tar.gz) = 3157346 bytes +SHA1 (patch-aa) = 6d5a269572190be29252cf018fa1d33fa5d49984 +SHA1 (patch-ab) = 3c496d57ad35656b68281c3a783ef1806acd0be1 +SHA1 (patch-ac) = 73063f9a05764ffb3b3d77d7ce562b8345f811bd diff --git a/textproc/php4-wddx/patches/patch-aa b/textproc/php4-wddx/patches/patch-aa new file mode 100644 index 00000000000..1ed08b49da4 --- /dev/null +++ b/textproc/php4-wddx/patches/patch-aa @@ -0,0 +1,12 @@ +$NetBSD: patch-aa,v 1.1.1.1 2001/10/16 06:28:06 jlam Exp $ + +--- Makefile.in.orig Mon May 1 18:38:34 2000 ++++ Makefile.in +@@ -1,5 +1,7 @@ + + LTLIBRARY_NAME = libwddx.la + LTLIBRARY_SOURCES = wddx.c ++LTLIBRARY_SHARED_NAME = wddx.la ++LTLIBRARY_SHARED_LIBADD = $(WDDX_SHARED_LIBADD) + + include $(top_srcdir)/build/dynlib.mk diff --git a/textproc/php4-wddx/patches/patch-ab b/textproc/php4-wddx/patches/patch-ab new file mode 100644 index 00000000000..e7c8c4628b6 --- /dev/null +++ b/textproc/php4-wddx/patches/patch-ab @@ -0,0 +1,32 @@ +$NetBSD: patch-ab,v 1.1.1.1 2001/10/16 06:28:06 jlam Exp $ + +--- config.m4.orig Mon May 7 04:22:34 2001 ++++ config.m4 +@@ -4,6 +4,9 @@ + PHP_ARG_ENABLE(wddx,for WDDX support, + [ --enable-wddx Enable WDDX support]) + ++PHP_ARG_WITH(expat-dir, libexpat dir for WDDX, ++[ --with-expat-dir=DIR libexpat dir for WDDX]) ++ + if test "$PHP_WDDX" != "no"; then + if test "$ext_shared" != "yes" && test "$enable_xml" = "no"; then + AC_MSG_WARN(Activating XML) +@@ -11,4 +14,17 @@ + fi + AC_DEFINE(HAVE_WDDX, 1, [ ]) + PHP_EXTENSION(wddx, $ext_shared) ++ PHP_SUBST(WDDX_SHARED_LIBADD) ++ ++ if test "$PHP_EXPAT_DIR" != "no"; then ++ if test -f $PHP_EXPAT_DIR/lib/libexpat.a -o -f $PHP_EXPAT_DIR/lib/libexpat.s?; then ++ AC_DEFINE(HAVE_LIBEXPAT2,1,[ ]) ++ PHP_ADD_LIBRARY_WITH_PATH(expat, $PHP_EXPAT_DIR/lib, WDDX_SHARED_LIBADD) ++ PHP_ADD_INCLUDE($PHP_EXPAT_DIR/include) ++ else ++ PHP_ADD_LIBRARY_WITH_PATH(xmlparse, $PHP_EXPAT_DIR/lib, WDDX_SHARED_LIBADD) ++ PHP_ADD_LIBRARY_WITH_PATH(xmltok, $PHP_EXPAT_DIR/lib, WDDX_SHARED_LIBADD) ++ PHP_ADD_INCLUDE($PHP_EXPAT_DIR/include) ++ fi ++ fi + fi diff --git a/textproc/php4-wddx/patches/patch-ac b/textproc/php4-wddx/patches/patch-ac new file mode 100644 index 00000000000..e62fc211ee5 --- /dev/null +++ b/textproc/php4-wddx/patches/patch-ac @@ -0,0 +1,24 @@ +$NetBSD: patch-ac,v 1.1.1.1 2001/10/16 06:28:06 jlam Exp $ + +--- wddx.c.orig Tue May 1 13:01:51 2001 ++++ wddx.c Fri Oct 5 16:20:05 2001 +@@ -25,3 +25,8 @@ ++#define IS_EXT_MODULE ++ ++#ifdef HAVE_CONFIG_H ++#include "config.h" ++#endif + + #include "php.h" + #include "php_wddx.h" +@@ -107,6 +112,10 @@ + PHP_FE(wddx_deserialize, NULL) + {NULL, NULL, NULL} + }; ++ ++#ifdef COMPILE_DL_WDDX ++ZEND_GET_MODULE(wddx) ++#endif /* COMPILE_DL_WDDX */ + + PHP_MINIT_FUNCTION(wddx); + PHP_MINFO_FUNCTION(wddx); diff --git a/textproc/php4-wddx/pkg/DESCR b/textproc/php4-wddx/pkg/DESCR new file mode 100644 index 00000000000..1703d46cc75 --- /dev/null +++ b/textproc/php4-wddx/pkg/DESCR @@ -0,0 +1,2 @@ +PHP is a programming language designed to be embedded into web pages. +This module provides support for WDDX (Web Direct Data eXchange) in PHP4. |