2007-04-10 09:29:39 +02:00
|
|
|
# New ports collection makefile for: phpmailer
|
|
|
|
# Date created: 6 April 2007
|
|
|
|
# Whom: Zhen REN <bg1tpt@gmail.com>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= phpmailer
|
2012-12-16 07:19:48 +01:00
|
|
|
PORTVERSION= 5.2.2
|
2007-04-10 09:29:39 +02:00
|
|
|
CATEGORIES= mail
|
2012-02-05 11:28:24 +01:00
|
|
|
MASTER_SITES= http://${PORTNAME}.apache-extras.org.codespot.com/files/
|
|
|
|
DISTNAME= PHPMailer_${PORTVERSION}
|
2007-04-10 09:29:39 +02:00
|
|
|
|
2010-04-27 01:30:24 +02:00
|
|
|
MAINTAINER= joehorn@gmail.com
|
2007-04-10 09:29:39 +02:00
|
|
|
COMMENT= Full Featured Email Transfer Class for PHP
|
|
|
|
|
2012-02-05 11:28:24 +01:00
|
|
|
LICENSE= LGPL3
|
|
|
|
|
2009-05-29 14:00:59 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}
|
2007-04-10 09:29:39 +02:00
|
|
|
|
2012-02-05 11:28:24 +01:00
|
|
|
USE_ZIP= yes
|
2007-04-10 09:29:39 +02:00
|
|
|
USE_DOS2UNIX= yes
|
|
|
|
NO_BUILD= yes
|
2009-05-29 14:00:59 +02:00
|
|
|
IGNORE_WITH_PHP= 4
|
2007-04-10 09:29:39 +02:00
|
|
|
USE_PHP= pcre
|
|
|
|
|
2010-01-31 04:44:21 +01:00
|
|
|
SUB_FILES= pkg-message
|
2007-04-10 09:29:39 +02:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
@${MKDIR} ${DATADIR}
|
2008-02-29 06:52:33 +01:00
|
|
|
.for f in class.phpmailer.php class.pop3.php class.smtp.php
|
2007-04-10 09:29:39 +02:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/$f ${DATADIR}
|
|
|
|
.endfor
|
2012-02-05 11:28:24 +01:00
|
|
|
.for d in extras language test
|
|
|
|
@${MKDIR} ${DATADIR}/$d
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/$d/* ${DATADIR}/$d
|
|
|
|
.endfor
|
|
|
|
@${CP} -R ${WRKSRC}/test_script ${DATADIR}
|
|
|
|
|
2007-04-10 09:29:39 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
2012-02-05 11:28:24 +01:00
|
|
|
.for f in changelog.txt README LICENSE
|
2007-04-10 09:29:39 +02:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/$f ${DOCSDIR}
|
|
|
|
.endfor
|
|
|
|
@${CP} -R ${WRKSRC}/docs/* ${DOCSDIR}
|
|
|
|
.endif
|
2012-02-05 11:28:24 +01:00
|
|
|
|
2008-07-07 01:28:49 +02:00
|
|
|
.if !defined(NOPORTEXAMPLES)
|
|
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
|
|
@${CP} -R ${WRKSRC}/examples/* ${EXAMPLESDIR}
|
|
|
|
.endif
|
2007-04-10 09:29:39 +02:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|