summaryrefslogtreecommitdiff
path: root/lang/php/ext.mk
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/php/ext.mk
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/php/ext.mk')
-rw-r--r--lang/php/ext.mk7
1 files changed, 6 insertions, 1 deletions
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)