2000-12-19 20:13:50 +01:00
|
|
|
# ex:ts=8
|
1997-08-29 11:20:02 +02:00
|
|
|
# New ports collection makefile for: indent
|
|
|
|
# Date created: 28 August 1997
|
|
|
|
# Whom: Kapil Chowksey <kchowksey@hss.hns.com>
|
|
|
|
#
|
1999-08-25 07:57:29 +02:00
|
|
|
# $FreeBSD$
|
1997-08-29 11:20:02 +02:00
|
|
|
#
|
1999-06-28 21:12:19 +02:00
|
|
|
|
2000-04-11 23:30:15 +02:00
|
|
|
PORTNAME= gindent
|
2004-03-01 19:11:28 +01:00
|
|
|
PORTVERSION= 2.2.9
|
1999-10-01 03:50:35 +02:00
|
|
|
CATEGORIES= devel
|
2004-03-01 19:11:28 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_GNU}
|
1999-01-27 08:41:29 +01:00
|
|
|
MASTER_SITE_SUBDIR= indent
|
2000-04-11 23:30:15 +02:00
|
|
|
DISTNAME= indent-${PORTVERSION}
|
1997-08-29 11:20:02 +02:00
|
|
|
|
2002-06-08 19:33:41 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-20 18:07:10 +01:00
|
|
|
COMMENT= GNU indent
|
1997-08-29 11:20:02 +02:00
|
|
|
|
2000-11-21 17:00:03 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2005-04-11 10:04:41 +02:00
|
|
|
CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
|
2004-03-01 19:11:28 +01:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -DBERKELEY_DEFAULTS=1" \
|
2002-06-25 08:38:17 +02:00
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
2002-09-18 14:32:37 +02:00
|
|
|
CONFIGURE_ARGS= --program-prefix=g
|
1999-07-16 06:45:50 +02:00
|
|
|
|
2004-03-25 12:42:35 +01:00
|
|
|
.if !defined(WITHOUT_NLS)
|
|
|
|
USE_GETTEXT= yes
|
|
|
|
PLIST_SUB+= NLS=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-nls
|
|
|
|
PLIST_SUB+= NLS="@comment "
|
|
|
|
.endif
|
|
|
|
|
2000-11-21 17:00:03 +01:00
|
|
|
MAN1= gindent.1
|
2004-03-01 19:11:28 +01:00
|
|
|
INFO= indent
|
1997-08-29 11:20:02 +02:00
|
|
|
|
2002-07-13 18:54:13 +02:00
|
|
|
post-patch:
|
2004-03-01 19:11:28 +01:00
|
|
|
@${GREP} -lR "malloc\.h" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \
|
|
|
|
's|malloc\.h|stdlib.h|g'
|
2002-07-13 18:54:13 +02:00
|
|
|
|
2002-09-18 14:32:37 +02:00
|
|
|
post-install:
|
2004-03-01 19:11:28 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
2002-09-18 14:32:37 +02:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/indent.html ${DOCSDIR}
|
|
|
|
.endif
|
|
|
|
|
1997-08-29 11:20:02 +02:00
|
|
|
.include <bsd.port.mk>
|