freebsd-ports/mail/pear-Mail_Mime/Makefile
2003-02-24 21:41:20 +00:00

48 lines
1.1 KiB
Makefile

# Ports collection makefile for: pear-Mail_Mime
# Date created: 24 October 2002
# Whom: Thierry Thomas (<thierry@pompo.net>)
#
# $FreeBSD$
#
PORTNAME= Mail_Mime
PORTVERSION= 1.2.1
PORTREVISION= 1
CATEGORIES= mail www
MASTER_SITES= http://pear.php.net/get/
PKGNAMEPREFIX= pear-
EXTRACT_SUFX= .tgz
DIST_SUBDIR= PEAR
MAINTAINER= ports@FreeBSD.org
COMMENT= PEAR classes to create and decode MIME messages
BUILD_DEPENDS= ${PEARDIR}/PEAR.php.dist:${PORTSDIR}/devel/pear-PEAR
RUN_DEPENDS= ${PEARDIR}.DIST_PHP:${PORTSDIR}/devel/pear-install
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= ${PHP_BASE}/${LPHP_LIB}
PLIST_SUB= PEARDIR=${LPHP_LIB}
do-install:
@${CP} -Rp ${WRKSRC}/* ${PEARDIR}/Mail
@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PEARDIR}/Mail/*
.for BUGMODE in mimeDecode.php mimePart.php xmail.dtd xmail.xsl
@${CHMOD} a-x ${PEARDIR}/Mail/${BUGMODE}
.endfor
post-install:
# Register a new package
@${PEAR} install -r -f ${WRKDIR}/package.xml
.include <bsd.port.post.mk>