summaryrefslogtreecommitdiff
path: root/lang/php53
diff options
context:
space:
mode:
authorfhajny <fhajny>2012-07-25 13:18:43 +0000
committerfhajny <fhajny>2012-07-25 13:18:43 +0000
commit720fbcb93d85878a9ec48ed448021e6801ef99a5 (patch)
tree154d8326be55b6fad04a19c8c03091363adaa86c /lang/php53
parent32a24cfeccf12422dde07b3819a5a71e596e3c58 (diff)
downloadpkgsrc-720fbcb93d85878a9ec48ed448021e6801ef99a5.tar.gz
Add support for readline (for interactive PHP CLI).
Diffstat (limited to 'lang/php53')
-rw-r--r--lang/php53/Makefile.php11
1 files changed, 9 insertions, 2 deletions
diff --git a/lang/php53/Makefile.php b/lang/php53/Makefile.php
index 1fd5b7c1a80..8c6240f826f 100644
--- a/lang/php53/Makefile.php
+++ b/lang/php53/Makefile.php
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.php,v 1.19 2012/07/20 12:28:17 taca Exp $
+# $NetBSD: Makefile.php,v 1.20 2012/07/25 13:18:43 fhajny Exp $
# used by lang/php53/Makefile
# used by www/ap-php/Makefile
@@ -44,7 +44,7 @@ CONFIGURE_ARGS+= --with-libxml-dir=${PREFIX}
# Note: This expression is the same as ${PKGBASE}, but the latter is
# not defined yet, so we cannot use it here.
PKG_OPTIONS_VAR= PKG_OPTIONS.${PKGNAME:C/-[0-9].*//}
-PKG_SUPPORTED_OPTIONS+= inet6 ssl maintainer-zts suhosin
+PKG_SUPPORTED_OPTIONS+= inet6 ssl maintainer-zts suhosin readline
PKG_SUGGESTED_OPTIONS+= inet6 ssl
#SUBST_CLASSES+= ini
@@ -95,5 +95,12 @@ CONFIGURE_ARGS+= --without-openssl
CONFIGURE_ARGS+= --enable-maintainer-zts
.endif
+.if !empty(PKG_OPTIONS:Mreadline)
+.include "../../devel/readline/buildlink3.mk"
+CONFIGURE_ARGS+= --with-readline=${BUILDLINK_PREFIX.readline}
+.else
+CONFIGURE_ARGS+= --without-readline
+.endif
+
DL_AUTO_VARS= yes
.include "../../mk/dlopen.buildlink3.mk"