summaryrefslogtreecommitdiff
path: root/databases/php-pdo_mysql
diff options
context:
space:
mode:
authorsborrill <sborrill>2009-03-13 10:57:20 +0000
committersborrill <sborrill>2009-03-13 10:57:20 +0000
commit3881e6df4565b6ebb8d9a5c0c1f4f3062a874a75 (patch)
treeeea3a98ed7bd9df021198aeac79b05bef96c5de6 /databases/php-pdo_mysql
parent7af88457d0e4f5c4a29273d1a4b6c90cb2e05226 (diff)
downloadpkgsrc-3881e6df4565b6ebb8d9a5c0c1f4f3062a874a75.tar.gz
The php_pdo* packages have not kept step with PHP changes. The PDO
components are now built into PHP rather than maintained separately in PECL. The old PECL versions are unmaintained and haven't been altered for 3 years. This is confusing as the package versions report themselves to be 5.2.9.1.0.2, etc. but they are in fact based on the 5.1.x code-base. Therefore, we need to switch to building the PDO modules like any other PHP module. A side-effect of this is that the PECL version number will get stripped off the end meaning that the new version numbers are just 5.2.9 instead of 5.2.9.1.0.2 (for example). Unfortunately, 5.2.9 is considered to be older than 5.2.9.1.0.2 meaning that it will appear as though a downgrade has taken place. Therefore, while we are still using PHP 5.2.9, add .99 on the end (i.e. 5.2.9.99) so that the package appears newer. When PHP 5.2.10 is released this can be removed (the module.mk file explicitly cgecks for 5.2.9 before adding the .99 suffix so that it will not alter 5.2.10 if the hack is forgotten. However, for the record, when 5.2.10 is released, php-pdo/module.mk can be removed along with the references to it in each php-pdo*/Makefile
Diffstat (limited to 'databases/php-pdo_mysql')
-rw-r--r--databases/php-pdo_mysql/Makefile19
1 files changed, 13 insertions, 6 deletions
diff --git a/databases/php-pdo_mysql/Makefile b/databases/php-pdo_mysql/Makefile
index 06fdc0c497e..76ed8b08600 100644
--- a/databases/php-pdo_mysql/Makefile
+++ b/databases/php-pdo_mysql/Makefile
@@ -1,17 +1,24 @@
-# $NetBSD: Makefile,v 1.7 2009/03/05 20:58:37 joerg Exp $
+# $NetBSD: Makefile,v 1.8 2009/03/13 10:57:20 sborrill Exp $
-PDO_DRIVER= mysql
-PDO_COMMENT= MySQL
-PDO_VERSION= 1.0.1
+MODNAME= pdo_mysql
+CATEGORIES+= databases
+COMMENT= PHP extension for PHP Data Objects (MySQL)
+
+PHP_VERSIONS_ACCEPTED= 5
PKG_DESTDIR_SUPPORT= user-destdir
+USE_PHP_EXT_PATCHES= yes
+
+.include "../../mk/bsd.prefs.mk"
+.include "../../lang/php/ext.mk"
+# Remove the following line when PHP >= 5.2.10 is released
.include "../../databases/php-pdo/module.mk"
+CONFIGURE_ARGS+= --with-${MODNAME}
CONFIGURE_ARGS+= --with-${PKGMODNAME}=shared,${BUILDLINK_PREFIX.mysql-client}
.include "../../mk/mysql.buildlink3.mk"
.include "../../databases/php-pdo/buildlink3.mk"
-
-.include "../../lang/php/ext.mk"
.include "../../mk/bsd.pkg.mk"
+