aboutsummaryrefslogtreecommitdiffstats
path: root/devel/gindent/Makefile
blob: af9013b6441ed8cf58e27531442fa34bb100111d (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
PORTNAME=	gindent
DISTVERSION=	2.2.12
PORTREVISION=	2
CATEGORIES=	devel
MASTER_SITES=	GNU/indent
DISTNAME=	indent-${DISTVERSION}

MAINTAINER=	moritz@schmi.tt
COMMENT=	C source code reformatter
WWW=		https://www.gnu.org/software/indent/indent.html

LICENSE=	GPLv3+
LICENSE_FILE=	${WRKSRC}/COPYING

USES=	groff:run localbase:ldflags makeinfo

INFO=	indent

GNU_CONFIGURE=	yes
GNU_CONFIGURE_MANPREFIX=${PREFIX}/share
CONFIGURE_ARGS=	--program-prefix=g --htmldir=${DOCSDIR}

CPPFLAGS+=	-DBERKELEY_DEFAULTS=1

OPTIONS_DEFINE=		DOCS NLS
OPTIONS_SUB=		yes
NLS_DESC=		Native Language Support via gettext utilities
NLS_USES=		gettext
NLS_CONFIGURE_OFF=	--disable-nls

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

.include <bsd.port.mk>