diff options
Diffstat (limited to 'mk/texinfo.mk')
-rw-r--r-- | mk/texinfo.mk | 78 |
1 files changed, 2 insertions, 76 deletions
diff --git a/mk/texinfo.mk b/mk/texinfo.mk index 289b9522547..518f111e955 100644 --- a/mk/texinfo.mk +++ b/mk/texinfo.mk @@ -1,8 +1,8 @@ -# $NetBSD: texinfo.mk,v 1.31 2006/01/10 00:01:16 seb Exp $ +# $NetBSD: texinfo.mk,v 1.32 2006/03/05 16:27:29 jlam Exp $ # # This Makefile fragment is included by bsd.pkg.mk when INFO_FILES is -# not empty or USE_MAKEINFO is not "no". +# not empty. # .if !defined(TEXINFO_MK) @@ -45,78 +45,4 @@ FILES_SUBST+= INSTALL_INFO=${INSTALL_INFO:Q} FILES_SUBST+= INFO_DIR=${INFO_DIR:Q} .endif # INFO_FILES -.if empty(USE_MAKEINFO:M[nN][oO]) -# -# Handle makeinfo. -# - -# Minimum required version for the GNU makeinfo command. -TEXINFO_REQD?= 3.12 -_TEXINFO_REQD_MAJOR= ${TEXINFO_REQD:C|\..*$||} -_TEXINFO_REQD_MINOR= ${TEXINFO_REQD:C|^[0-9]+\.||:C|\..*$||} - -# Argument to specify maximum info files size for newer versions -# of makeinfo. This argument is supported since makeinfo 4.1. -_MAKEINFO_SPLIT_SIZE_ARG+= --split-size=50000 - -# The minimum version of makeinfo for which the default info files size -# was bumped from 50000. -_MAKEINFO_SPLIT_SIZE_VERSION= 4.6 - -# Add OPSYS specific flags if any. -MAKEINFO_ARGS+= ${_OPSYS_MAKEINFO_ARGS} - -# Does the system has a makeinfo command? -_MAKEINFO= -. for _i_ in /usr/bin/makeinfo -. if exists(${_i_}) -_MAKEINFO= ${_i_} -. endif -. endfor - -# Record makeinfo's version. -# If makeinfo's version contains useful information outside the first -# two dot separated numbers the following would have to be changed as well -# as _{MAKEINFO,TEXINFO_REQD}_{MAJOR,MINOR} and their comparison below. -. if !empty(_MAKEINFO) && !defined(MAKEINFO_VERSION) -MAKEINFO_VERSION_OUTPUT!= ${_MAKEINFO} --version 2>/dev/null || ${ECHO} -MAKEINFO_VERSION= -. for _i_ in ${MAKEINFO_VERSION_OUTPUT:M[0-9]*.[0-9]*:C/[^0-9.]//} -. if empty(MAKEINFO_VERSION) -MAKEINFO_VERSION= ${_i_} -. endif -. endfor -MAKEFLAGS+= MAKEINFO_VERSION=${MAKEINFO_VERSION:Q} -. endif - -# Sort out if the version provided by devel/gtexinfo is needed. -# If it is add it as build time dependency and set MAKEINFO -# to the makeinfo it provides. -# Here it is assumed devel/gtexinfo's makeinfo version will be -# superior or equal to TEXINFO_REQD. -_NEED_TEXINFO= YES -. if defined(MAKEINFO_VERSION) -_MAKEINFO_VERSION_MAJOR= ${MAKEINFO_VERSION:C|\..*$||} -_MAKEINFO_VERSION_MINOR= ${MAKEINFO_VERSION:C|^[0-9]+\.||:C|\..*$||} -. if ${_MAKEINFO_VERSION_MAJOR} > ${_TEXINFO_REQD_MAJOR} -_NEED_TEXINFO= NO -. elif ${_MAKEINFO_VERSION_MAJOR} == ${_TEXINFO_REQD_MAJOR} && ${_MAKEINFO_VERSION_MINOR} >= ${_TEXINFO_REQD_MINOR} -_NEED_TEXINFO= NO -. endif -. endif -. if !empty(_NEED_TEXINFO:M[yY][eE][sS]) -BUILD_DEPENDS+= gtexinfo>=${TEXINFO_REQD}:../../devel/gtexinfo -_GTEXINFO_PREFIX_DEFAULT= ${LOCALBASE} -EVAL_PREFIX+= _GTEXINFO_PREFIX=gtexinfo -# assume devel/gtexinfo version is >= ${_MAKEINFO_SPLIT_SIZE_VERSION} -MAKEINFO_ARGS+= ${_MAKEINFO_SPLIT_SIZE_ARG} -MAKEINFO= ${_GTEXINFO_PREFIX}/bin/makeinfo ${MAKEINFO_ARGS} -. else -. if defined(MAKEINFO_VERSION) && ${MAKEINFO_VERSION} >= ${_MAKEINFO_SPLIT_SIZE_VERSION} -MAKEINFO_ARGS+= ${_MAKEINFO_SPLIT_SIZE_ARG} -. endif -MAKEINFO= ${_MAKEINFO} ${MAKEINFO_ARGS} -. endif -.endif # USE_MAKEINFO - .endif # TEXINFO_MK |