mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-11 02:50:24 +00:00
7e5fec4f93
PR: ports/120744 Submitted by: Joe Horn <joehorn@gmail.com Approved by: Zhen REN <bg1tpt@gmail.com> (maintainer)
52 lines
1.2 KiB
Makefile
52 lines
1.2 KiB
Makefile
# New ports collection makefile for: phpmailer
|
|
# Date created: 6 April 2007
|
|
# Whom: Zhen REN <bg1tpt@gmail.com>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= phpmailer
|
|
PORTVERSION= 2.0.0
|
|
CATEGORIES= mail
|
|
MASTER_SITES= SF
|
|
DISTNAME= PHPMailer_v${DISTVERSION}
|
|
|
|
MAINTAINER= bg1tpt@gmail.com
|
|
COMMENT= Full Featured Email Transfer Class for PHP
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}
|
|
|
|
USE_DOS2UNIX= yes
|
|
NO_BUILD= yes
|
|
USE_PHP= pcre
|
|
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
|
MSG_SRC= ${FILESDIR}/pkg-message
|
|
|
|
MSG_SUB= DATADIR=${DATADIR} LOCALBASE=${LOCALBASE}
|
|
|
|
do-install:
|
|
@${MKDIR} ${DATADIR}
|
|
.for f in class.phpmailer.php class.pop3.php class.smtp.php
|
|
@${INSTALL_DATA} ${WRKSRC}/$f ${DATADIR}
|
|
.endfor
|
|
@${MKDIR} ${DATADIR}/language
|
|
@${INSTALL_DATA} ${WRKSRC}/language/* ${DATADIR}/language
|
|
@${MKDIR} ${DATADIR}/test
|
|
@${INSTALL_DATA} ${WRKSRC}/test/* ${DATADIR}/test
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR}
|
|
.for f in README LICENSE
|
|
@${INSTALL_DATA} ${WRKSRC}/$f ${DOCSDIR}
|
|
.endfor
|
|
@${CP} -R ${WRKSRC}/docs/* ${DOCSDIR}
|
|
@${CP} -R ${WRKSRC}/phpdoc/* ${DOCSDIR}
|
|
.endif
|
|
|
|
post-install:
|
|
@${SED} ${MSG_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} ${MSG_SRC} > \
|
|
${PKGMESSAGE}
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.mk>
|