summaryrefslogtreecommitdiff
path: root/devel/fastdep/Makefile
blob: 29c6ee270788e5f508cc92d8a8d5c2aa03c20321 (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
# ex:ts=8
# Ports collection makefile for:	fastdep
# Date created:			Oct 30, 2002
# Whom:				ijliao
#
# $FreeBSD$
#

PORTNAME=	fastdep
PORTVERSION=	0.14
CATEGORIES=	devel
MASTER_SITES=	http://www.irule.be/bvh/c++/fastdep/

MAINTAINER=	ports@FreeBSD.org

LIB_DEPENDS=	gnugetopt.1:${PORTSDIR}/devel/libgnugetopt

USE_REINPLACE=	yes
USE_GMAKE=	yes
HAS_CONFIGURE=	yes
MAKE_ENV=	CXX="${CXX} -I${LOCALBASE}/include" \
		CXXFLAGS="${CXXFLAGS}"

post-patch:
.for file in Makefile config/link.mk build/dependencies.mk
	@${REINPLACE_CMD} -e 's|g++|\$$\(CXX\)|g ; \
		 s|[\$$][(]CFLAGS[)]||g ; \
		 s|\. -l|\$$\{LOCALBASE\}/lib -l|g' ${WRKSRC}/${file}
.endfor
	@${REINPLACE_CMD} -e 's|PREFIX=|PREFIX?=|g' ${WRKSRC}/Makefile.options

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/fastdep ${PREFIX}/bin
.if !defined(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/doc/*.* ${DOCSDIR}
.endif

.include <bsd.port.mk>