Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Dec 2012 13:51:23 +0000 (UTC)
From:      Alex Dupre <ale@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r309092 - head/Mk
Message-ID:  <201212171351.qBHDpNrd098491@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ale
Date: Mon Dec 17 13:51:22 2012
New Revision: 309092
URL: http://svnweb.freebsd.org/changeset/ports/309092

Log:
  - drop support for apache 1.3
  - add support for "event" mpm
  - improve IGNORE message [1]
  
  PR:		ports/173277 [1]
  Submitted by:	adamw

Modified:
  head/Mk/bsd.php.mk

Modified: head/Mk/bsd.php.mk
==============================================================================
--- head/Mk/bsd.php.mk	Mon Dec 17 13:36:43 2012	(r309091)
+++ head/Mk/bsd.php.mk	Mon Dec 17 13:51:22 2012	(r309092)
@@ -59,19 +59,15 @@ PHP_EXT_INC=	pcre spl
 
 HTTPD?=		${LOCALBASE}/sbin/httpd
 .if exists(${HTTPD})
-APACHE_VERSION!=	${HTTPD} -V | ${SED} -ne 's/^Server version: Apache\/\([0-9]\)\.\([0-9]*\).*/\1\2/p'
-.	if ${APACHE_VERSION} > 13
 APXS?=		${LOCALBASE}/sbin/apxs
 APACHE_MPM!=	${APXS} -q MPM_NAME
-.		if ${APACHE_MPM} == "worker"
+.	if ${APACHE_MPM} == "worker" || ${APACHE_MPM} == "event"
 PHP_EXT_DIR:=	${PHP_EXT_DIR}-zts
-.		endif
 .	endif
-.elif defined(APACHE_PORT)
-APACHE_VERSION!=	${ECHO_CMD} ${APACHE_PORT} | ${SED} -ne 's,.*/apache\([0-9]*\).*,\1,p'
-.	if ${APACHE_VERSION} > 13 && defined(WITH_MPM) && ${WITH_MPM} == "worker"
+.elif defined(APACHE_PORT) && (${APACHE_PORT:M*worker*} != "" || ${APACHE_PORT:M*event*} != "")
+PHP_EXT_DIR:=	${PHP_EXT_DIR}-zts
+.elif defined(WITH_MPM) && (${WITH_MPM} == "worker" || ${WITH_MPM} == "event")
 PHP_EXT_DIR:=	${PHP_EXT_DIR}-zts
-.	endif
 .endif
 
 .if defined(WITH_DEBUG)
@@ -81,10 +77,13 @@ PHP_SAPI?=	""
 .endif	# .if exists(${PHPBASE}/etc/php.conf)
 PHP_EXT_INC?=	""
 
+PHP5_LAST_VER=	54
+
 .if defined(IGNORE_WITH_PHP)
 .	for VER in ${IGNORE_WITH_PHP}
 .		if ${PHP_VER} == "${VER}"
-IGNORE=		cannot install: doesn't work with PHP version : ${PHP_VER} (Doesn't support PHP ${IGNORE_WITH_PHP})
+IGNORE=		cannot be installed: doesn't work with lang/php${PHP_VER} port\
+		(doesn't support PHP ${IGNORE_WITH_PHP:C/^5$/${PHP5_LAST_VER}/:C/^5/5./})
 .		endif
 .	endfor
 .endif



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201212171351.qBHDpNrd098491>