pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk If using GNU_CONFIGURE then set --infodir to ${PREF...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6653b32c4481
branches:  trunk
changeset: 474964:6653b32c4481
user:      reed <reed%pkgsrc.org@localhost>
date:      Sat May 08 02:13:00 2004 +0000

description:
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:

 mk/bsd.pkg.mk |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r 3242dd00b699 -r 6653b32c4481 mk/bsd.pkg.mk
--- a/mk/bsd.pkg.mk     Sat May 08 02:12:32 2004 +0000
+++ b/mk/bsd.pkg.mk     Sat May 08 02:13:00 2004 +0000
@@ -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 @@
 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



Home | Main Index | Thread Index | Old Index