freebsd-ports/www/ismail/Makefile

68 lines
1.5 KiB
Makefile
Raw Normal View History

2012-10-05 18:30:22 +02:00
# Created by: Kelley Reynolds <kelley@insidesystems.net>
# $FreeBSD$
PORTNAME= ismail
PORTVERSION= 2.1
PORTREVISION= 2
CATEGORIES= www mail
2012-04-18 15:56:27 +02:00
MASTER_SITES= http://az.semmy.ru/ISMail/
MAINTAINER= ports@FreeBSD.org
COMMENT= PHP-based webmail client
WRKSRC= ${WRKDIR}
NO_BUILD= yes
USES= tar:bzip2
USE_PHP= imap
WANT_PHP_WEB= yes
2014-09-08 21:32:59 +02:00
PLIST_SUB= WWWOWN="${WWWOWN}" WWWGRP="${WWWGRP}"
SUB_FILES= pkg-message
2012-10-05 18:30:22 +02:00
OPTIONS_DEFINE= DOCS
OPTIONS_SINGLE= DATASTORE
OPTIONS_SINGLE_DATASTORE= MYSQL PGSQL
OPTIONS_DEFAULT= MYSQL
.include <bsd.port.options.mk>
2012-10-05 18:30:22 +02:00
.if ${PORT_OPTIONS:MMYSQL}
USE_PHP+= mysql
PLIST_FILES+= ${EXAMPLESDIR_REL}/mysql4.schema
.endif
2012-10-05 18:30:22 +02:00
.if ${PORT_OPTIONS:MPGSQL}
USE_PHP+= pgsql
PLIST_FILES+= ${EXAMPLESDIR_REL}/pgsql.schema
.endif
2014-06-05 08:18:01 +02:00
LIB_DEPENDS+= libc-client4.so:${PORTSDIR}/mail/cclient
pre-install:
@${ECHO_MSG} ""
@${ECHO_MSG} "Inside Systems Mail will be installed to ${WWWDIR}"
@${ECHO_MSG} "Define WWWDIR to change it."
@${ECHO_MSG} ""
do-install:
2014-06-05 08:18:01 +02:00
@${MKDIR} ${STAGEDIR}${WWWDIR}
${TAR} --exclude '*~' -C ${WRKSRC}/${PORTNAME} -cf - . | ${TAR} -C ${STAGEDIR}${WWWDIR} -xf -
2012-10-05 18:30:22 +02:00
.if ${PORT_OPTIONS:MDOCS}
2014-06-05 08:18:01 +02:00
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/docs.html ${STAGEDIR}${DOCSDIR}
.endif
2012-10-05 18:30:22 +02:00
.if ${PORT_OPTIONS:MMYSQL}
2014-06-05 08:18:01 +02:00
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/examples/mysql4.schema ${STAGEDIR}${EXAMPLESDIR}
.endif
2012-10-05 18:30:22 +02:00
.if ${PORT_OPTIONS:MPGSQL}
2014-06-05 08:18:01 +02:00
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/examples/pgsql.schema ${STAGEDIR}${EXAMPLESDIR}
.endif
post-install:
@${CAT} ${PKGMEASSAGE}
2012-10-05 18:30:22 +02:00
.include <bsd.port.mk>