diff options
author | garga <garga@FreeBSD.org> | 2006-02-14 22:54:30 +0800 |
---|---|---|
committer | garga <garga@FreeBSD.org> | 2006-02-14 22:54:30 +0800 |
commit | f8ec6f2baf0140da64faa0f13bc5f5b8656a274d (patch) | |
tree | f35fb971ddac34a4929008f478f3f0934527fb79 /databases | |
parent | f7cd9ab0c1b961dc1f72c20e9a2c1c980319c6a6 (diff) | |
download | freebsd-ports-gnome-f8ec6f2baf0140da64faa0f13bc5f5b8656a274d.tar.gz freebsd-ports-gnome-f8ec6f2baf0140da64faa0f13bc5f5b8656a274d.tar.zst freebsd-ports-gnome-f8ec6f2baf0140da64faa0f13bc5f5b8656a274d.zip |
Paradox is an extension to read and write Paradox .DB and .PX files.
It can handle almost all field types and binary large objects stored
in .MB files.
WWW: http://pecl.php.net/package/paradox
PR: ports/93211
Submitted by: Alexander Zhuravlev <zaa@zaa.pp.ru>
Diffstat (limited to 'databases')
-rw-r--r-- | databases/Makefile | 1 | ||||
-rw-r--r-- | databases/pecl-paradox/Makefile | 35 | ||||
-rw-r--r-- | databases/pecl-paradox/distinfo | 3 | ||||
-rw-r--r-- | databases/pecl-paradox/files/patch-paradox.c | 35 | ||||
-rw-r--r-- | databases/pecl-paradox/pkg-descr | 5 |
5 files changed, 79 insertions, 0 deletions
diff --git a/databases/Makefile b/databases/Makefile index a30c3c5dcec3..881ce61c43f7 100644 --- a/databases/Makefile +++ b/databases/Makefile @@ -279,6 +279,7 @@ SUBDIR += pecl-PDO_PGSQL SUBDIR += pecl-PDO_SQLITE SUBDIR += pecl-memcache + SUBDIR += pecl-paradox SUBDIR += pecl-sqlite SUBDIR += pgaccess SUBDIR += pgadmin3 diff --git a/databases/pecl-paradox/Makefile b/databases/pecl-paradox/Makefile new file mode 100644 index 000000000000..5641ab406670 --- /dev/null +++ b/databases/pecl-paradox/Makefile @@ -0,0 +1,35 @@ +# Ports collection makefile for: pecl-paradox +# Date created: 2006-02-11 +# Whom: Alexander Zhuravlev <zaa@zaa.pp.ru> +# +# $FreeBSD$ +# + +PORTNAME= paradox +DISTVERSION= 1.4.0 +CATEGORIES= databases www +MASTER_SITES= http://pecl.php.net/get/ +PKGNAMEPREFIX= pecl- +EXTRACT_SUFX= .tgz +DIST_SUBDIR= PECL + +MAINTAINER= zaa@zaa.pp.ru +COMMENT= An extension to read and write Paradox files + +LIB_DEPENDS= px.6:${PORTSDIR}/databases/pxlib + +USE_PHP= yes +USE_PHPIZE= yes +USE_PHPEXT= yes +DEFAULT_PHP_VER=5 +BROKEN_WITH_PHP=4 +PHP_MODNAME= paradox + +CONFIGURE_ARGS+= --with-paradox=${LOCALBASE} +CONFIGURE_ENV= CPPFLAGS=-I${LOCALBASE}/include LDFLAGS=-L${LOCALBASE}/lib + +post-patch: + @${REINPLACE_CMD} -E 's/(lib -lm) -ldl/\1 -liconv -lintl/g' \ + ${WRKSRC}/config.m4 + +.include <bsd.port.mk> diff --git a/databases/pecl-paradox/distinfo b/databases/pecl-paradox/distinfo new file mode 100644 index 000000000000..54f8d29d9605 --- /dev/null +++ b/databases/pecl-paradox/distinfo @@ -0,0 +1,3 @@ +MD5 (PECL/paradox-1.4.0.tgz) = 6780ffc7863e7940e05e811b93d19e58 +SHA256 (PECL/paradox-1.4.0.tgz) = f46979446f3de4aa1f8047497bc731593e155f58ff3f44360e463ae06cad939a +SIZE (PECL/paradox-1.4.0.tgz) = 18696 diff --git a/databases/pecl-paradox/files/patch-paradox.c b/databases/pecl-paradox/files/patch-paradox.c new file mode 100644 index 000000000000..29be7c5bddb2 --- /dev/null +++ b/databases/pecl-paradox/files/patch-paradox.c @@ -0,0 +1,35 @@ +--- paradox.c.orig Tue Feb 14 12:36:43 2006 ++++ paradox.c Tue Feb 14 12:37:11 2006 +@@ -425,6 +425,7 @@ + FILE *fp = NULL; + pxdoc_t *pxdoc = NULL; + zval *object = getThis(); ++ php_stream *stream; + + if (object) { + if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r", &zfp)) { +@@ -438,8 +439,6 @@ + PXDOC_FROM_ZVAL(pxdoc, &zpx); + } + +- php_stream *stream; +- + php_stream_from_zval(stream, &zfp); + + if (php_stream_cast(stream, PHP_STREAM_AS_STDIO, (void*)&fp, 1) == FAILURE) { +@@ -468,6 +467,7 @@ + pxfield_t *pxf; + int numfields, i; + zval *object = getThis(); ++ php_stream *stream; + + if (object) { + if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rz", &zfp, &schema)) { +@@ -486,7 +486,6 @@ + RETURN_FALSE; + } + +- php_stream *stream; + php_stream_from_zval(stream, &zfp); + + if (php_stream_cast(stream, PHP_STREAM_AS_STDIO, (void*)&fp, 1) == FAILURE) { diff --git a/databases/pecl-paradox/pkg-descr b/databases/pecl-paradox/pkg-descr new file mode 100644 index 000000000000..a5e068568485 --- /dev/null +++ b/databases/pecl-paradox/pkg-descr @@ -0,0 +1,5 @@ +Paradox is an extension to read and write Paradox .DB and .PX files. +It can handle almost all field types and binary large objects stored +in .MB files. + +WWW: http://pecl.php.net/package/paradox |