Use GNU_PROGRAM_PREFIX. Based on a patch by Jeremy C. Reed.

This commit is contained in:
wiz 2002-12-23 19:12:51 +00:00
parent cd2fdb497c
commit caf430d1d6
2 changed files with 13 additions and 6 deletions

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.27 2002/11/30 14:29:23 grant Exp $
# $NetBSD: Makefile,v 1.28 2002/12/23 19:12:51 wiz Exp $
#
DISTNAME= indent-2.2.8a
@ -14,10 +14,17 @@ COMMENT= GNU version of pretty-printer for C source code
USE_BUILDLINK2= # defined
GNU_CONFIGURE= # defined
USE_PKGLOCALEDIR= # defined
CONFIGURE_ARGS= --program-prefix=g
INFO_FILES= indent.info
.include "../../mk/bsd.prefs.mk"
.if defined(GNU_PROGRAM_PREFIX)
CONFIGURE_ARGS= --program-prefix=${GNU_PROGRAM_PREFIX}
.endif
PLIST_SUBST+= GNU_PROGRAM_PREFIX=${GNU_PROGRAM_PREFIX}
BUILD_DEFS+= GNU_PROGRAM_PREFIX
.include "../../devel/gettext-lib/buildlink2.mk"
.include "../../mk/texinfo.mk"
.include "../../mk/bsd.pkg.mk"

View file

@ -1,7 +1,7 @@
@comment $NetBSD: PLIST,v 1.3 2002/08/31 00:29:59 wiz Exp $
bin/gindent
bin/gtexinfo2man
man/man1/gindent.1
@comment $NetBSD: PLIST,v 1.4 2002/12/23 19:12:51 wiz Exp $
bin/${GNU_PROGRAM_PREFIX}indent
bin/${GNU_PROGRAM_PREFIX}texinfo2man
man/man1/${GNU_PROGRAM_PREFIX}indent.1
@unexec ${INSTALL_INFO} --delete %D/info/indent.info %D/info/dir
info/indent.info
@exec ${INSTALL_INFO} %D/info/indent.info %D/info/dir