aboutsummaryrefslogtreecommitdiffstats
path: root/net/pear-Net_SMTP/Makefile
blob: 74b63743fac1ab88b3e5ec420b39ad56817ecd03 (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
# Ports collection makefile for:  pear-Net_SMTP
# Date created:           26 November 2002
# Whom:               Thierry Thomas (<thierry@pompo.net>)
#
# $FreeBSD$
#

PORTNAME=   Net_SMTP
PORTVERSION=    1.1.1
CATEGORIES= net mail www
MASTER_SITES=   http://pear.php.net/get/
PKGNAMEPREFIX=  pear-
EXTRACT_SUFX=   .tgz
DIST_SUBDIR=    PEAR

MAINTAINER= ports@FreeBSD.org
COMMENT=    PEAR class that provides an implementation of the SMTP protocol

BUILD_DEPENDS=  ${PEARDIR}/SASL.php:${PORTSDIR}/security/pear-Auth_SASL
RUN_DEPENDS=    ${BUILD_DEPENDS}

NO_BUILD=   yes

.include <bsd.port.pre.mk>

.if exists(${LOCALBASE}/bin/php-config)
PHP_BASE!=  ${LOCALBASE}/bin/php-config --prefix
.else
PHP_BASE=   ${LOCALBASE}
.endif
PEAR=       ${LOCALBASE}/bin/pear
LPHP_LIB=   lib/php
PEARDIR=    ${LOCALBASE}/${LPHP_LIB}
PLIST_SUB=  PEARDIR=${LPHP_LIB}
MANIFEST=   Net/SMTP.php

do-install:
    @${MV} ${PEARDIR}/${MANIFEST} ${PEARDIR}/${MANIFEST}.dist
    @${CP} -p ${WRKSRC}/SMTP.php ${PEARDIR}/Net
    @${CHOWN} ${SHAREOWN}:${SHAREGRP} ${PEARDIR}/${MANIFEST}

post-install:
# Register an upgraded package
    @${PEAR} upgrade -r -f ${WRKDIR}/package.xml

.include <bsd.port.post.mk>