freebsd-ports/mail/phplist/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

45 lines
1.3 KiB
Makefile

# Created by: Nick Hilliard <nick@foobar.org>
# $FreeBSD$
PORTNAME= phplist
PORTVERSION= 3.3.1
CATEGORIES= mail www
MASTER_SITES= SF
MAINTAINER= ports@bsdserwis.com
COMMENT= Full-featured open-source newsletter manager
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING
RUN_DEPENDS= ${PEARDIR}/HTTP/Request.php:www/pear-HTTP_Request@${PHP_FLAVOR}
USES= cpe tar:tgz php:web
USE_PHP= hash iconv imap mysqli pcre session xml zlib
NO_BUILD= yes
NO_ARCH= yes
PEARDIR?= ${LOCALBASE}/share/pear
PORTDOCS= CONTRIBUTING.md COPYING INSTALL PEOPLE README.md TODO UPGRADE VERSION
OPTIONS_DEFINE= DOCS
SUB_FILES= phplist
post-extract:
@${MV} ${WRKSRC}/public_html/lists/config/config.php ${WRKSRC}/public_html/lists/config/config.php.sample
# Note: there is file(s) with non-ascii filenames. So it's difficult to add
# such files to pkg-plist. That's why there is find with delete
#
do-install:
@${FIND} ${WRKSRC}/public_html/ -type f -regex '.*[^!-~].*' -delete
@${FIND} ${WRKSRC}/public_html/ -type l -delete
${MKDIR} ${STAGEDIR}${WWWDIR}/
(cd ${WRKSRC}/public_html/ && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR})
${INSTALL_SCRIPT} ${WRKDIR}/phplist ${STAGEDIR}${PREFIX}/bin
${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR})
(cd ${WRKSRC}/doc/ && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
.include <bsd.port.mk>