diff options
author | jdolecek <jdolecek@pkgsrc.org> | 2005-10-09 13:11:18 +0000 |
---|---|---|
committer | jdolecek <jdolecek@pkgsrc.org> | 2005-10-09 13:11:18 +0000 |
commit | a18af922eb637de6fdb2792676c719155de02f9b (patch) | |
tree | f3d425d9097919e34a6ab1e4ea4137d358a3e42f /databases/php-pdo | |
parent | 454e4772bc7f57d2705e1a3c7a2dc83ccedf3317 (diff) | |
download | pkgsrc-a18af922eb637de6fdb2792676c719155de02f9b.tar.gz |
Add PDO (PHP Data Objects) extensions. These implement unified,
object-oriented interface to various databases. PDO comes bundled
with upcoming PHP 5.1, but can also be used with PHP 5.0 via PECL.
Diffstat (limited to 'databases/php-pdo')
-rw-r--r-- | databases/php-pdo/DESCR | 6 | ||||
-rw-r--r-- | databases/php-pdo/Makefile | 27 | ||||
-rw-r--r-- | databases/php-pdo/PLIST.pdo | 4 | ||||
-rw-r--r-- | databases/php-pdo/buildlink3.mk | 21 | ||||
-rw-r--r-- | databases/php-pdo/distinfo | 6 | ||||
-rw-r--r-- | databases/php-pdo/module.mk | 15 |
6 files changed, 79 insertions, 0 deletions
diff --git a/databases/php-pdo/DESCR b/databases/php-pdo/DESCR new file mode 100644 index 00000000000..f7e14600f58 --- /dev/null +++ b/databases/php-pdo/DESCR @@ -0,0 +1,6 @@ +PHP is a programming language designed to be embedded into web pages. + +PDO provides a uniform data access interface, sporting advanced +features such as prepared statements and bound parameters. PDO +drivers are dynamically loadable and may be developed independently +from the core, but still accessed using the same API. diff --git a/databases/php-pdo/Makefile b/databases/php-pdo/Makefile new file mode 100644 index 00000000000..253e9f8699b --- /dev/null +++ b/databases/php-pdo/Makefile @@ -0,0 +1,27 @@ +# $NetBSD: Makefile,v 1.1.1.1 2005/10/09 13:11:18 jdolecek Exp $ + +MODNAME= PDO +PKGMODNAME= pdo +PKGNAME= php-${PKGMODNAME}-${PHP_BASE_VERS}.${PECL_VERSION} +PKGREVISION= # empty +PECL_VERSION= 1.0RC1 +CATEGORIES+= databases +MAINTAINER= tech-pkg@NetBSD.org +COMMENT= PHP extension for PHP Data Objects (base) + +CONFIGURE_ARGS+= --with-${PKGMODNAME} + +PHP_VERSION_REQD= 5 + +PLIST_SRC+= ${.CURDIR}/../../databases/php-pdo/PLIST.pdo + +PDO_INCLUDES= php_pdo_driver.h php_pdo.h + +post-install: + ${INSTALL_DATA_DIR} ${PREFIX}/include/php/ext/pdo + for inc in ${PDO_INCLUDES}; do \ + ${INSTALL_DATA} ${WRKSRC}/$$inc ${PREFIX}/include/php/ext/pdo/$$inc;\ + done + +.include "../../lang/php/ext.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/databases/php-pdo/PLIST.pdo b/databases/php-pdo/PLIST.pdo new file mode 100644 index 00000000000..24ba0a3a4f7 --- /dev/null +++ b/databases/php-pdo/PLIST.pdo @@ -0,0 +1,4 @@ +@comment $NetBSD: PLIST.pdo,v 1.1.1.1 2005/10/09 13:11:18 jdolecek Exp $ +include/php/ext/pdo/php_pdo.h +include/php/ext/pdo/php_pdo_driver.h +@dirrm include/php/ext/pdo diff --git a/databases/php-pdo/buildlink3.mk b/databases/php-pdo/buildlink3.mk new file mode 100644 index 00000000000..061cedf10c1 --- /dev/null +++ b/databases/php-pdo/buildlink3.mk @@ -0,0 +1,21 @@ +# $NetBSD: buildlink3.mk,v 1.1.1.1 2005/10/09 13:11:18 jdolecek Exp $ + +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ +PHP_PDO_BUILDLINK3_MK:= ${PHP_PDO_BUILDLINK3_MK}+ + +.if !empty(BUILDLINK_DEPTH:M+) +BUILDLINK_DEPENDS+= php-pdo +.endif + +BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nphp-pdo} +BUILDLINK_PACKAGES+= php-pdo + +.if !empty(PHP_PDO_BUILDLINK3_MK:M+) +BUILDLINK_DEPENDS.php-pdo+= php-pdo-*.1.0RC1 +BUILDLINK_PKGSRCDIR.php-pdo?= ../../databases/php-pdo +BUILDLINK_INCDIRS.php-pdo?= include/php/ext/pdo +.endif # PHP_PDO_BUILDLINK3_MK + + +.include "../../lang/php/ext.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/databases/php-pdo/distinfo b/databases/php-pdo/distinfo new file mode 100644 index 00000000000..b28bba886bb --- /dev/null +++ b/databases/php-pdo/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1.1.1 2005/10/09 13:11:18 jdolecek Exp $ + +SHA1 (php-PDO/PDO-1.0RC1.tgz) = 1d70df41f1f61294e6a90694aa43f38252059876 +RMD160 (php-PDO/PDO-1.0RC1.tgz) = b3603614c301862b3e77c634ab9a8d6718603e63 +Size (php-PDO/PDO-1.0RC1.tgz) = 46925 bytes +SHA1 (patch-aa) = cfc560a992bd8706f79828f31b7210fcef14e25f diff --git a/databases/php-pdo/module.mk b/databases/php-pdo/module.mk new file mode 100644 index 00000000000..f60f007c259 --- /dev/null +++ b/databases/php-pdo/module.mk @@ -0,0 +1,15 @@ +# $NetBSD: module.mk,v 1.1.1.1 2005/10/09 13:11:18 jdolecek Exp $ + +# Items common for all PDO drivers + +MODNAME= PDO_${PDO_DRIVER:tu} +PKGMODNAME= pdo_${PDO_DRIVER} +PKGNAME= php-${PKGMODNAME}-${PHP_BASE_VERS}.${PECL_VERSION} +PKGREVISION= # empty +PDO_VERSION?= 1.0RC1 +PECL_VERSION?= ${PDO_VERSION} +CATEGORIES+= databases +MAINTAINER= jdolecek@NetBSD.org +COMMENT= PHP PDO extension for ${PDO_COMMENT} databases + +.include "../../databases/php-pdo/buildlink3.mk" |