summaryrefslogtreecommitdiffstats
path: root/devel/beautifyphp/Makefile
blob: 67009f650d932c1776dbeb4841e6e1e763bf5d24 (plain)
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
# New ports collection makefile for:	beautifyphp
# Date created:				03 August 2005
# Whom:	      				Yen-Ming Lee <leeym@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	beautifyphp
PORTVERSION=	0.5.0
CATEGORIES=	devel www pear
MASTER_SITES=	SF
DISTNAME=	beautify_php_${PORTVERSION}

MAINTAINER=	leeym@FreeBSD.org
COMMENT=	PEAR beautifier for PHP4

RUN_DEPENDS=	${LOCALBASE}/share/pear/System.php:${PORTSDIR}/devel/pear

NO_BUILD=	yes
WRKSRC=		${WRKDIR}/${PORTNAME}

PLIST_FILES=	bin/beautify_php share/${PORTNAME}/beautify_php.php \
		share/pear/beautify_php.class.inc
PLIST_DIRS=	share/${PORTNAME}

post-patch:
	@${REINPLACE_CMD} 's,/usr/bin/php,${LOCALBASE}/bin/php,g' ${WRKSRC}/beautify_php
	@${FIND} ${WRKSRC} -name "*.bak" -or -name "*.orig" -delete

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/beautify_php ${PREFIX}/bin
	@${MKDIR} ${DATADIR}
	${INSTALL_DATA} ${WRKSRC}/beautify_php.php ${DATADIR}
	@${MKDIR} ${PREFIX}/share/pear
	${INSTALL_DATA} ${WRKSRC}/beautify_php.class.inc ${PREFIX}/share/pear

.include <bsd.port.mk>
OpenPOWER on IntegriCloud