freebsd-ports/mail/squirrelmail-sasql-plugin/Makefile
Mathieu Arnold a1993564e0 Introduce PHP flavors.
Ports using USES=php:phpize, php:ext, php:zend, and php:pecl are now
  flavored.  They will automatically get flavors (php56, php70, php71, php72)
  depending of the versions they support (set with IGNORE_WITH_PHP).  As a
  consequence, ports using USES=pear and USES=horde are also flavored.

PR:		226242
Submitted by:	mat
Exp-run by:	antoine
Approved by:	portmgr
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D14208
2018-03-08 19:48:41 +00:00

24 lines
744 B
Makefile

# Created by: Gerrit Beine <gerrit.beine@gmx.de>
# $FreeBSD$
PORTNAME= sasql
PORTVERSION= 3.2.0
PORTREVISION= 3
CATEGORIES= mail www
MAINTAINER= ports@FreeBSD.org
COMMENT= Edit SpamAssassin settings stored in an SQL DB
RUN_DEPENDS= ${LOCALBASE}/share/pear/DB.php:databases/pear-DB@${PHP_FLAVOR}
USE_SM_COMPAT= yes
USE_GENERIC_PKGMESSAGE= yes
post-patch:
@${REINPLACE_CMD} -e "s/\(\$$imap_server_type == \'cyrus\'\)/\1 || \$$imap_server_type == \'courier\'/g" \
-e 's/session_register/sqsession_register/g' \
${WRKSRC}/${SQUIRREL_PLUGIN_NAME}/sasql_hooks.php
-@${RM} ${WRKSRC}/${SQUIRREL_PLUGIN_NAME}/*.bak ${WRKSRC}/${SQUIRREL_PLUGIN_NAME}/.cvsignore
.include "${.CURDIR}/../squirrelmail/bsd.squirrelmail.mk"
.include <bsd.port.mk>