From 60dbd8240938c9fb09fb10a8d02b98caf710dd0d Mon Sep 17 00:00:00 2001 From: reed Date: Sat, 8 May 2004 02:13:00 +0000 Subject: If using GNU_CONFIGURE then set --infodir to ${PREFIX}/${INFO_DIR}. I have used this successfully to install over 300 info files using INFO_DIR=share/info. Also add new variable called NO_CONFIGURE_INFODIR (as suggested by Greg Woods) because some autoconf-style configure scripts don't know --infodir. (The alternative is to use HAS_CONFIGURE and add the needed CONFIGURE_ARGS.) Please note that the info tool may not find custom INFO_DIR unless it is configure to know it. (I will update gtexinfo for this, but if using native info you are on your own if you customize this.) --- mk/bsd.pkg.mk | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'mk') diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index 9736baf7ad5..3fbc13a36a5 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.1454 2004/04/27 22:35:47 tv Exp $ +# $NetBSD: bsd.pkg.mk,v 1.1455 2004/05/08 02:13:00 reed Exp $ # # This file is in the public domain. # @@ -1305,6 +1305,9 @@ HAS_CONFIGURE= yes CONFIGURE_ARGS+= --x-includes=${X11BASE}/include CONFIGURE_ARGS+= --x-libraries=${X11BASE}/lib . endif +. if !empty(INFO_FILES) && !defined(NO_CONFIGURE_INFODIR) +CONFIGURE_ARGS+= --infodir=${PREFIX}/${INFO_DIR} +. endif # # By default, override config.guess and config.sub for GNU configure # packages. pkgsrc's updated versions of these scripts allows GNU -- cgit v1.2.3