summaryrefslogtreecommitdiff
path: root/lang/php
diff options
context:
space:
mode:
authorjperkin <jperkin>2015-02-16 10:20:24 +0000
committerjperkin <jperkin>2015-02-16 10:20:24 +0000
commitc4e60cd1e512d207a44e4ea8ec484d2d0c9db90d (patch)
treeb17605a126af1f2dd5c9bc1c72084441ad4735b1 /lang/php
parentf7dd898a7e03bef80fe11484ae39df6e237cebf1 (diff)
downloadpkgsrc-c4e60cd1e512d207a44e4ea8ec484d2d0c9db90d.tar.gz
Put back custom PHP_ZEND_EXTENSION MESSAGE file.
Diffstat (limited to 'lang/php')
-rw-r--r--lang/php/MESSAGE.zend-module9
-rw-r--r--lang/php/ext.mk6
2 files changed, 14 insertions, 1 deletions
diff --git a/lang/php/MESSAGE.zend-module b/lang/php/MESSAGE.zend-module
new file mode 100644
index 00000000000..15de1b23aac
--- /dev/null
+++ b/lang/php/MESSAGE.zend-module
@@ -0,0 +1,9 @@
+===========================================================================
+$NetBSD: MESSAGE.zend-module,v 1.3 2015/02/16 10:20:24 jperkin Exp $
+
+To enable this module, add the following to ${PKG_SYSCONFDIR}/php.ini:
+
+ zend_extension=${PREFIX}/${PHP_EXTENSION_DIR}/${MODNAME}.so
+
+Then restart your ${PKG_PHP}-enabled HTTP server to load this module.
+===========================================================================
diff --git a/lang/php/ext.mk b/lang/php/ext.mk
index df24bd3c94d..b72149d9f95 100644
--- a/lang/php/ext.mk
+++ b/lang/php/ext.mk
@@ -1,4 +1,4 @@
-# $NetBSD: ext.mk,v 1.35 2015/02/15 09:00:33 taca Exp $
+# $NetBSD: ext.mk,v 1.36 2015/02/16 10:20:24 jperkin Exp $
#
# PHP extension package framework, for both PECL and bundled PHP extensions.
#
@@ -67,7 +67,11 @@ LDFLAGS+= ${EXPORT_SYMBOLS_LDFLAGS}
MAKE_ENV+= EXPORT_SYMBOLS_LDFLAGS="${EXPORT_SYMBOLS_LDFLAGS}"
PLIST_SRC+= ${.CURDIR}/../../lang/php/PLIST.module
+.if !empty(PHP_ZEND_EXTENSION:U:M[Yy][Ye][Ss])
+MESSAGE_SRC= ${.CURDIR}/../../lang/php/MESSAGE.zend-module
+.else
MESSAGE_SRC= ${.CURDIR}/../../lang/php/MESSAGE.module
+.endif
MESSAGE_SUBST+= MODNAME=${PKGMODNAME}
MESSAGE_SUBST+= PHP_EXTENSION_DIR=${PHP_EXTENSION_DIR}
.if !empty(PHP_ZEND_EXTENSION:U:M[Yy][Ye][Ss])