# Ports collection makefile for: pear-HTML_Common
# Date created: 29 November 2002
# Whom: Thierry Thomas ()
#
# $FreeBSD$
#
PORTNAME= HTML_Common
PORTVERSION= 1.0
PORTREVISION= 1
CATEGORIES= devel www
MASTER_SITES= http://pear.php.net/get/
PKGNAMEPREFIX= pear-
EXTRACT_SUFX= .tgz
DIST_SUBDIR= PEAR
MAINTAINER= ports@FreeBSD.org
COMMENT= PEAR::HTML_Common is a base class for other HTML classes
BUILD_DEPENDS= ${PEARDIR}/PEAR.php.dist:${PORTSDIR}/devel/pear-PEAR
RUN_DEPENDS= ${BUILD_DEPENDS}
NO_BUILD= yes
.include
.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:
@${MKDIR} ${PEARDIR}/HTML
@${CP} -Rp ${WRKSRC}/Common.php ${PEARDIR}/HTML
@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PEARDIR}/HTML
post-install:
# Register a new package
@${PEAR} install -r -f ${WRKDIR}/package.xml
.include