mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-30 01:15:52 +00:00
52 lines
1.1 KiB
Makefile
52 lines
1.1 KiB
Makefile
# Created by: Zhen REN <bg1tpt@gmail.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= phpmailer
|
|
PORTVERSION= 5.2.6
|
|
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
|
|
|
|
WRKSRC= ${WRKDIR}/PHPMailer-${PORTVERSION}
|
|
|
|
USE_DOS2UNIX= yes
|
|
NO_BUILD= yes
|
|
USE_PHP= yes
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
NO_STAGE= yes
|
|
do-install:
|
|
@${MKDIR} ${DATADIR}
|
|
.for f in class.phpmailer.php class.pop3.php class.smtp.php composer.json
|
|
@${INSTALL_DATA} ${WRKSRC}/$f ${DATADIR}
|
|
.endfor
|
|
.for d in extras language test
|
|
@${MKDIR} ${DATADIR}/$d
|
|
@${INSTALL_DATA} ${WRKSRC}/$d/* ${DATADIR}/$d
|
|
.endfor
|
|
@${CP} -R ${WRKSRC}/test_script ${DATADIR}
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR}
|
|
.for f in changelog.md README.md LICENSE
|
|
@${INSTALL_DATA} ${WRKSRC}/$f ${DOCSDIR}
|
|
.endfor
|
|
@${CP} -R ${WRKSRC}/docs/* ${DOCSDIR}
|
|
.endif
|
|
|
|
.if !defined(NOPORTEXAMPLES)
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
@${CP} -R ${WRKSRC}/examples/* ${EXAMPLESDIR}
|
|
.endif
|
|
|
|
post-install:
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.mk>
|