1 # New ports collection makefile for: squirrelmail-wetteronline-plugin
2 # Date created: 10 Feb 2006
3 # Whom: Gerrit Beine <gerrit.beine@gmx.de>
5 # $FreeBSD: mail/squirrelmail-wetteronline-plugin/Makefile 315341 2013-03-27 00:34:41Z miwi $
7 PORTNAME= squirrelmail-${SQUIRREL_PLUGIN_NAME}-plugin
11 MASTER_SITES= http://www.squirrelmail.org/plugins/
12 DISTNAME= ${SQUIRREL_PLUGIN_NAME}-${PORTVERSION}
13 DIST_SUBDIR= squirrelmail
15 MAINTAINER= ports@FreeBSD.org
16 COMMENT= Plugin for the weather in Germany
18 RUN_DEPENDS= ${SQUIRRELDIR}/index.php:${PORTSDIR}/mail/squirrelmail \
19 ${SQUIRRELDIR}/plugins/compatibility:${PORTSDIR}/mail/squirrelmail-compatibility-plugin
21 SQUIRREL_PLUGIN_NAME= wetteronline
24 PLIST_SUB+= SQUIRRELDIR=${SQUIRRELDIR}
25 SUB_LIST+= "SQUIRRELDIR=${SQUIRRELDIR}"
27 . ifndef WITHOUT_WWWDIR
28 SQUIRRELDIR= ${PREFIX}/www/squirrelmail
29 PLIST_SUB+= SQUIRRELDIR=www/squirrelmail
30 SUB_LIST+= "SQUIRRELDIR=www/squirrelmail"
32 SQUIRRELDIR= ${PREFIX}/squirrelmail
33 PLIST_SUB+= SQUIRRELDIR=squirrelmail
34 SUB_LIST+= "SQUIRRELDIR=squirrelmail"
43 IGNORE_WITH_PHP=5 # known incompatibilities with php-5.4, use 5.3 for now
48 .ifndef WITHOUT_ACTIVATE
49 @${ECHO} "Activating plug-in in SquirrelMail after installation."
50 @${ECHO} "If you don't want to automatically activate the plug-in set"
51 @${ECHO} "WITHOUT_ACTIVATE=yes"
53 @${ECHO} "NOT Activating plug-in in SquirrelMail after installation."
54 @${ECHO} "If you want to automatically activate the plug-in unset"
55 @${ECHO} "WITHOUT_ACTIVATE"
60 ${CP} -rp ${WRKSRC}/${SQUIRREL_PLUGIN_NAME} ${SQUIRRELDIR}/plugins
61 ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${SQUIRRELDIR}/plugins/${SQUIRREL_PLUGIN_NAME}
64 .ifndef WITHOUT_ACTIVATE
65 .if exists( ${SQUIRRELDIR}/config/config.php )
66 @${ECHO} "Activating plug-in in SquirrelMail"
67 ${SQUIRRELDIR}/config/conf.pl --install-plugin ${SQUIRREL_PLUGIN_NAME}
70 @${ECHO} "To activate the plug-in in SquirrelMail use"
71 @${ECHO} "${SQUIRRELDIR}/config/conf.pl --install-plugin ${SQUIRREL_PLUGIN_NAME}"
75 .include <bsd.port.mk>