summaryrefslogtreecommitdiff
path: root/devel/make++/Makefile
blob: e0d09be57d6749fdb5e6170fa9b6734a73a55f15 (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
# ex:ts=8
# New ports collection makefile for:	make++
# Date created:			Fab 21, 2001
# Whom:				Ying-Chieh Liao <ijliao@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	make++
PORTVERSION=	1.18
CATEGORIES=	devel perl5
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	${PORTNAME:S/+/p/g}
DISTNAME=	${PORTNAME:S/+/p/g}-${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org

RUN_DEPENDS=	${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/Digest/MD5.pm:${PORTSDIR}/security/p5-Digest-MD5

PORTCOMMENT=	A drop-in replacement for GNU make

USE_PERL5=	yes
DATADIR=	${PREFIX}/share/makepp

do-build:
	@${PERL} -pi -e "s|\@htmldir\@|${PREFIX}/share/makepp/html|g ; \
		s|\@datadir\@|${PREFIX}/share/makepp|g" ${WRKSRC}/makepp

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/makepp ${PREFIX}/bin
	@${MKDIR} ${DATADIR}/Signature
	${INSTALL_SCRIPT} ${WRKSRC}/recursive_makepp ${DATADIR}
	@(cd ${WRKSRC} ; \
	  ${FIND} . -name "*.pm" -maxdepth 1 -exec ${INSTALL_SCRIPT} {} ${DATADIR} \;)
	@(cd ${WRKSRC}/Signature ; \
	  ${FIND} . -name "*.pm" -exec ${INSTALL_SCRIPT} {} ${DATADIR}/Signature \;)
	@(cd ${WRKSRC} ; \
	  ${FIND} . -name "*.mk" -exec ${INSTALL_SCRIPT} {} ${DATADIR} \;)
	@${MKDIR} ${DATADIR}/html
	${CP} ${WRKSRC}/doc/* ${DATADIR}/html

.include <bsd.port.mk>