diff options
author | reed <reed@pkgsrc.org> | 2004-05-08 02:13:00 +0000 |
---|---|---|
committer | reed <reed@pkgsrc.org> | 2004-05-08 02:13:00 +0000 |
commit | b1c2609f2121b0cb21a4b39811f701f7e2ce0078 (patch) | |
tree | 284b27839ab29ca3c3316320517f86b97213faa6 /mk/bsd.pkg.mk | |
parent | 5a8d597cdaac4b774fa6ecabf1fd5fa11f979a2b (diff) | |
download | pkgsrc-b1c2609f2121b0cb21a4b39811f701f7e2ce0078.tar.gz |
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.)
Diffstat (limited to 'mk/bsd.pkg.mk')
-rw-r--r-- | mk/bsd.pkg.mk | 5 |
1 files changed, 4 insertions, 1 deletions
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 |