diff options
author | wiz <wiz@pkgsrc.org> | 2002-12-23 19:12:51 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2002-12-23 19:12:51 +0000 |
commit | caf430d1d6242ed531b469fd178bc21d1c65adfb (patch) | |
tree | 585c8762455c96d38caf37d3d512363fef758daf /devel/gindent | |
parent | cd2fdb497c0c9462128026eb668f8ea33664677d (diff) | |
download | pkgsrc-caf430d1d6242ed531b469fd178bc21d1c65adfb.tar.gz |
Use GNU_PROGRAM_PREFIX. Based on a patch by Jeremy C. Reed.
Diffstat (limited to 'devel/gindent')
-rw-r--r-- | devel/gindent/Makefile | 11 | ||||
-rw-r--r-- | devel/gindent/PLIST | 8 |
2 files changed, 13 insertions, 6 deletions
diff --git a/devel/gindent/Makefile b/devel/gindent/Makefile index ec7a740ffc3..2a0ba8e5d88 100644 --- a/devel/gindent/Makefile +++ b/devel/gindent/Makefile @@ -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" diff --git a/devel/gindent/PLIST b/devel/gindent/PLIST index 5d2ea23120f..8b047f1aca8 100644 --- a/devel/gindent/PLIST +++ b/devel/gindent/PLIST @@ -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 |