freebsd-ports/devel/gindent/Makefile
Baptiste Daroussin 21b4d1d456 Reduce over inclusion of bsd.port.mk
Use options helpers
2014-01-16 00:01:37 +00:00

37 lines
800 B
Makefile

# Created by: Kapil Chowksey <kchowksey@hss.hns.com>
# $FreeBSD$
PORTNAME= gindent
PORTVERSION= 2.2.10
PORTREVISION= 3
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR= 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>