aboutsummaryrefslogtreecommitdiffstats
path: root/mail/phpmailer/Makefile
blob: 20d9850694859f6d8def4747e1024baaa19098c6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# New ports collection makefile for:    phpmailer
# Date created:     6 April 2007
# Whom:         Zhen REN <bg1tpt@gmail.com>
#
# $FreeBSD$
#

PORTNAME=   phpmailer
PORTVERSION=    1.73
CATEGORIES= mail
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
DISTNAME=   ${PORTNAME}-${DISTVERSION}

MAINTAINER= bg1tpt@gmail.com
COMMENT=    Full Featured Email Transfer Class for PHP

WRKSRC=     ${WRKDIR}/${PORTNAME}

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.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>