aboutsummaryrefslogtreecommitdiffstats
path: root/devel/gindent/Makefile
blob: 01d9aec01d0bfe6a5630dfc4046a20983a7f4eb9 (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
43
44
45
46
47
48
49
50
51
# ex:ts=8
# New ports collection makefile for:   indent
# Date created:        28 August 1997
# Whom:                Kapil Chowksey <kchowksey@hss.hns.com>
#
# $FreeBSD$
#

PORTNAME=   gindent
PORTVERSION=    2.2.10
PORTREVISION=   2
CATEGORIES= devel
MASTER_SITES=   ${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR= indent
DISTNAME=   indent-${PORTVERSION}

MAINTAINER= johans@FreeBSD.org
COMMENT=    GNU indent

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

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MNLS}
USE_GETTEXT=    yes
PLIST_SUB+= NLS=""
.else
CONFIGURE_ARGS+=--disable-nls
PLIST_SUB+= NLS="@comment "
.endif

MAN1=       gindent.1
INFO=       indent

.include <bsd.port.pre.mk>

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

post-install:
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/doc/indent.html ${DOCSDIR}
.endif

.include <bsd.port.post.mk>