mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-04 01:48:54 +00:00
5fd6da9c78
- While I'm here: - Add DOCS and EXAMPLES to OPTIONS_DEFINE - Use USES=dos2unix Changes: https://github.com/Synchro/PHPMailer/blob/master/changelog.md PR: ports/190032 Submitted by: Joe Horn <joehorn@gmail.com> (maintainer)
44 lines
1.1 KiB
Makefile
44 lines
1.1 KiB
Makefile
# Created by: Zhen REN <bg1tpt@gmail.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= phpmailer
|
|
PORTVERSION= 5.2.7
|
|
CATEGORIES= mail
|
|
MASTER_SITES= https://github.com/Synchro/PHPMailer/archive/
|
|
DISTNAME= v${PORTVERSION}
|
|
|
|
MAINTAINER= joehorn@gmail.com
|
|
COMMENT= Full Featured Email Transfer Class for PHP
|
|
|
|
LICENSE= LGPL3
|
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
|
|
|
WRKSRC= ${WRKDIR}/PHPMailer-${PORTVERSION}
|
|
|
|
NO_BUILD= yes
|
|
USE_PHP= yes
|
|
USES= dos2unix
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
do-install:
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}
|
|
.for f in PHPMailerAutoload.php class.phpmailer.php class.pop3.php \
|
|
class.smtp.php composer.json
|
|
@${INSTALL_DATA} ${WRKSRC}/$f ${STAGEDIR}${DATADIR}
|
|
.endfor
|
|
.for d in extras language test
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}/$d
|
|
@${INSTALL_DATA} ${WRKSRC}/$d/* ${STAGEDIR}${DATADIR}/$d
|
|
.endfor
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
.for f in changelog.md README.md LICENSE
|
|
@${INSTALL_DATA} ${WRKSRC}/$f ${STAGEDIR}${DOCSDIR}
|
|
@${CP} -R ${WRKSRC}/docs/* ${STAGEDIR}${DOCSDIR}
|
|
.endfor
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
@${CP} -R ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
.include <bsd.port.mk>
|