summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authortaca <taca@pkgsrc.org>2015-02-15 09:00:33 +0000
committertaca <taca@pkgsrc.org>2015-02-15 09:00:33 +0000
commit714894ee526384b5de4db06272e0d331da13a594 (patch)
treebd0ab39a714f4991722e86673b7600424b127e89 /lang
parent593c64cfab07f432cc5e81f12885ce1e8c1103c6 (diff)
downloadpkgsrc-714894ee526384b5de4db06272e0d331da13a594.tar.gz
Re-add part of revision 1.33 slighly different way; show "zend_extension"
instead of "extension".
Diffstat (limited to 'lang')
-rw-r--r--lang/php/MESSAGE.module4
-rw-r--r--lang/php/ext.mk7
2 files changed, 8 insertions, 3 deletions
diff --git a/lang/php/MESSAGE.module b/lang/php/MESSAGE.module
index 385e890b713..d6e79f29aac 100644
--- a/lang/php/MESSAGE.module
+++ b/lang/php/MESSAGE.module
@@ -1,9 +1,9 @@
===========================================================================
-$NetBSD: MESSAGE.module,v 1.2 2004/11/05 21:50:11 jdolecek Exp $
+$NetBSD: MESSAGE.module,v 1.3 2015/02/15 09:00:33 taca Exp $
To enable this module, add the following to ${PKG_SYSCONFDIR}/php.ini:
- extension=${MODNAME}.so
+ ${EXTENSION_DIRECTIVE}=${MODNAME}.so
and make sure extension_dir points to the dir where ${MODNAME}.so is.
diff --git a/lang/php/ext.mk b/lang/php/ext.mk
index 3de63b6255a..df24bd3c94d 100644
--- a/lang/php/ext.mk
+++ b/lang/php/ext.mk
@@ -1,4 +1,4 @@
-# $NetBSD: ext.mk,v 1.34 2015/02/02 12:26:21 obache Exp $
+# $NetBSD: ext.mk,v 1.35 2015/02/15 09:00:33 taca Exp $
#
# PHP extension package framework, for both PECL and bundled PHP extensions.
#
@@ -70,6 +70,11 @@ PLIST_SRC+= ${.CURDIR}/../../lang/php/PLIST.module
MESSAGE_SRC= ${.CURDIR}/../../lang/php/MESSAGE.module
MESSAGE_SUBST+= MODNAME=${PKGMODNAME}
MESSAGE_SUBST+= PHP_EXTENSION_DIR=${PHP_EXTENSION_DIR}
+.if !empty(PHP_ZEND_EXTENSION:U:M[Yy][Ye][Ss])
+MESSAGE_SUBST+= EXTENSION_DIRECTIVE=zend_extension
+.else
+MESSAGE_SUBST+= EXTENSION_DIRECTIVE=extension
+.endif
# Also include extension-specific message
.if exists(${.CURDIR}/MESSAGE)