diff options
author | reed <reed> | 2004-05-08 02:13:00 +0000 |
---|---|---|
committer | reed <reed> | 2004-05-08 02:13:00 +0000 |
commit | 4095eb4a922a6384301c8ac79d06071e714df16f (patch) | |
tree | 284b27839ab29ca3c3316320517f86b97213faa6 /mk | |
parent | c3bc1d5db7bc32b2f83b6bf15a642703a93f721b (diff) | |
download | pkgsrc-4095eb4a922a6384301c8ac79d06071e714df16f.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')
-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 |