aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mail/squirrelmail/Makefile11
1 files changed, 5 insertions, 6 deletions
diff --git a/mail/squirrelmail/Makefile b/mail/squirrelmail/Makefile
index c7136f84e9c6..14b4e895b76c 100644
--- a/mail/squirrelmail/Makefile
+++ b/mail/squirrelmail/Makefile
@@ -17,11 +17,7 @@ COMMENT?= A webmail system which accesses mail over IMAP
CONFLICTS?= ja-squirrelmail-1.*
-.if defined(WITH_APACHE2)
-RUN_DEPENDS+= ${LOCALBASE}/libexec/apache2/libphp4.so:${PORTSDIR}/www/mod_php4
-.else
-RUN_DEPENDS+= ${LOCALBASE}/libexec/apache/libphp4.so:${PORTSDIR}/www/mod_php4
-.endif
+WANT_PHP_WEB= yes
USE_BZIP2= yes
@@ -42,6 +38,9 @@ PLIST_SUB+= PORTVERSION=${PORTVERSION} \
MASTERDIR= ${.CURDIR}
.endif
+.include <bsd.port.pre.mk>
+.include "${PORTSDIR}/lang/php4/bsd.php.mk"
+
pre-everything::
@${ECHO_CMD} "SquirrelMail is installed into ${SQUIRRELDIR}"
@${ECHO_CMD} "To use the old location ${PREFIX}/squirrelmail define"
@@ -106,4 +105,4 @@ post-install:
@${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
@${CAT} ${PKGMESSAGE}
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>