224eb510f9
1) fix 'indent -npro -nip' when compiled with BERKELEY_DEFAULTS symptom: command line: unknown option "nhnl" Note that the "nhnl" above is just luck due to layout by the compiler. It could be random garbage. explanation: PRO_SETTINGS lists need to be terminated with two nulls. 2) fix error message for args prefixed with '--', like 'indent -npro --no-such-arg' symptom: command line: unknown option "-no-such-arg" explanation: the error message uses 'option - 1' instead of 'option - option_length' and -- options have option_length == 2. Note that the update looks more complicated than just this patch, because the original port patches were re-aligned as well. John has submitted his patches upstream as well. Submitted by: John Hein <jhein@symmetricom.com> Feature safe: yes
49 lines
1 KiB
Makefile
49 lines
1 KiB
Makefile
# 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
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -DBERKELEY_DEFAULTS=1" \
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
|
CONFIGURE_ARGS= --program-prefix=g
|
|
MAKE_JOBS_UNSAFE= yes
|
|
|
|
.if !defined(WITHOUT_NLS)
|
|
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>
|