summaryrefslogtreecommitdiffstats
path: root/devel/gindent/Makefile
blob: 4e859d23247653e7ac20ccb6d6e32442302e2569 (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
# Created by: Kapil Chowksey <kchowksey@hss.hns.com>
# $FreeBSD$

PORTNAME=	gindent
PORTVERSION=	2.2.10
PORTREVISION=	4
CATEGORIES=	devel
MASTER_SITES=	GNU/indent
DISTNAME=	indent-${PORTVERSION}

MAINTAINER=	johans@FreeBSD.org
COMMENT=	GNU indent

OPTIONS_DEFINE=	DOCS NLS

GNU_CONFIGURE=	yes
CPPFLAGS+=	-I${LOCALBASE}/include -DBERKELEY_DEFAULTS=1
LDFLAGS+=	-L${LOCALBASE}/lib
CONFIGURE_ARGS=	--program-prefix=g
MAKE_JOBS_UNSAFE=	yes

NLS_USES=	gettext
OPTIONS_SUB=	yes
NLS_CONFIGURE_OFF=	--disable-nls

INFO=		indent

post-patch:
	@${GREP} -lR "malloc\.h" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \
		's|malloc\.h|stdlib.h|g'

post-install:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/doc/indent.html ${STAGEDIR}${DOCSDIR}

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