Tweak mail/squirrelmail-wetteronline-plugin version 0.1_1
[dports.git] / mail / squirrelmail-wetteronline-plugin / Makefile
1 # New ports collection makefile for:            squirrelmail-wetteronline-plugin
2 # Date created:         10 Feb 2006
3 # Whom:         Gerrit Beine <gerrit.beine@gmx.de>
4 #
5 # $FreeBSD: mail/squirrelmail-wetteronline-plugin/Makefile 315341 2013-03-27 00:34:41Z miwi $
6
7 PORTNAME=               squirrelmail-${SQUIRREL_PLUGIN_NAME}-plugin
8 PORTVERSION=            0.1
9 PORTREVISION=   1
10 CATEGORIES=             mail www
11 MASTER_SITES=           http://www.squirrelmail.org/plugins/
12 DISTNAME=               ${SQUIRREL_PLUGIN_NAME}-${PORTVERSION}
13 DIST_SUBDIR=            squirrelmail
14
15 MAINTAINER=             ports@FreeBSD.org
16 COMMENT=                Plugin for the weather in Germany
17
18 RUN_DEPENDS=            ${SQUIRRELDIR}/index.php:${PORTSDIR}/mail/squirrelmail \
19                         ${SQUIRRELDIR}/plugins/compatibility:${PORTSDIR}/mail/squirrelmail-compatibility-plugin
20
21 SQUIRREL_PLUGIN_NAME=   wetteronline
22
23 .ifdef SQUIRRELDIR
24 PLIST_SUB+=             SQUIRRELDIR=${SQUIRRELDIR}
25 SUB_LIST+=              "SQUIRRELDIR=${SQUIRRELDIR}"
26 .else
27 .       ifndef WITHOUT_WWWDIR
28 SQUIRRELDIR=            ${PREFIX}/www/squirrelmail
29 PLIST_SUB+=             SQUIRRELDIR=www/squirrelmail
30 SUB_LIST+=              "SQUIRRELDIR=www/squirrelmail"
31 .       else
32 SQUIRRELDIR=            ${PREFIX}/squirrelmail
33 PLIST_SUB+=             SQUIRRELDIR=squirrelmail
34 SUB_LIST+=              "SQUIRRELDIR=squirrelmail"
35 .       endif
36 .endif
37
38 NO_BUILD=               yes
39 NO_WRKSUBDIR=           yes
40 USE_PERL5_BUILD=        yes
41 USE_PHP=                yes
42 WANT_PHP_WEB=           yes
43 IGNORE_WITH_PHP=5 # known incompatibilities with php-5.4, use 5.3 for now
44 DEFAULT_PHP_VER=53
45
46 pre-everything::
47         @${ECHO} ""
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"
52 .else
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"
56 .endif
57         @${ECHO} ""
58
59 do-install:
60         ${CP} -rp ${WRKSRC}/${SQUIRREL_PLUGIN_NAME} ${SQUIRRELDIR}/plugins
61         ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${SQUIRRELDIR}/plugins/${SQUIRREL_PLUGIN_NAME}
62
63 post-install:
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}
68 .endif
69 .else
70         @${ECHO} "To activate the plug-in in SquirrelMail use"
71         @${ECHO} "${SQUIRRELDIR}/config/conf.pl --install-plugin ${SQUIRREL_PLUGIN_NAME}"
72 .endif
73         @${ECHO} ""
74
75 .include <bsd.port.mk>