* php-sqlite is obsoleted by PHP 5.4.

* Add usage of PHP_BASE_VERS in PKGNAME.
This commit is contained in:
taca 2012-06-16 02:54:11 +00:00
parent a2d6659378
commit 4d64b0d641

View file

@ -1,18 +1,23 @@
# $NetBSD: Makefile,v 1.13 2010/03/15 16:45:59 taca Exp $
# $NetBSD: Makefile,v 1.14 2012/06/16 02:54:11 taca Exp $
MODNAME= sqlite
PKGNAME= ${PHP_PKG_PREFIX}-${MODNAME}-${PHP_BASE_VERS}.1.0.3
CATEGORIES+= databases
COMMENT= PHP extension for SQLite 2.x databases
#
# Above PKGNAME definition should be removed after next release of lang/php5.
#
PKG_DESTDIR_SUPPORT= user-destdir
CONFLICTS= php-sqlite-[0-9]*
PHP_VERSIONS_ACCEPTED= 52 53
.include "../../lang/php/phpversion.mk"
# Remove these PKGNAME tweak after PHP 5.2.18 (or end of supporting php52)
# *AND* after PHP 5.3.14 release
.if ${PHP_BASE_VERS} == "5.2.17" || ${PHP_BASE_VERS} == "5.3.14"
PKGNAME= ${PHP_PKG_PREFIX}-${MODNAME}-${PHP_BASE_VERS}.1.0.3
.endif
CONFIGURE_ARGS+= --with-${PKGMODNAME}=shared,${BUILDLINK_PREFIX.sqlite}
CONFIGURE_ENV+= PHP_PDO=no