# ex:ts=8 # New ports collection makefile for: indent # Date created: 28 August 1997 # Whom: Kapil Chowksey # # $FreeBSD$ # PORTNAME= gindent PORTVERSION= 2.2.9 CATEGORIES= devel MASTER_SITES= ${MASTER_SITE_GNU} MASTER_SITE_SUBDIR= indent DISTNAME= indent-${PORTVERSION} MAINTAINER= ports@FreeBSD.org COMMENT= GNU indent USE_GETTEXT= yes USE_REINPLACE= yes GNU_CONFIGURE= yes CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -DBERKELEY_DEFAULTS=1" \ LDFLAGS="-L${LOCALBASE}/lib" CONFIGURE_ARGS= --program-prefix=g MAN1= gindent.1 INFO= indent 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