diff options
author | jlam <jlam@pkgsrc.org> | 2005-07-26 20:00:50 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2005-07-26 20:00:50 +0000 |
commit | 4e9386339e3268946d2b6fc70d9e144461d1dcb7 (patch) | |
tree | e548513272a89de3f7f65646f8f0d7a00e9eec69 /mk | |
parent | ea62cc8fc85e329e5f727f1acb72dfaa00eb013e (diff) | |
download | pkgsrc-4e9386339e3268946d2b6fc70d9e144461d1dcb7.tar.gz |
Provide a "pod2man" tool used by some packages to build man pages.
Based on suggestion by Matthias Drochner.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/tools/defaults.mk | 3 | ||||
-rw-r--r-- | mk/tools/replace.mk | 14 |
2 files changed, 15 insertions, 2 deletions
diff --git a/mk/tools/defaults.mk b/mk/tools/defaults.mk index 479e4145aec..2c22aa5d320 100644 --- a/mk/tools/defaults.mk +++ b/mk/tools/defaults.mk @@ -1,4 +1,4 @@ -# $NetBSD: defaults.mk,v 1.36 2005/07/15 20:14:04 jlam Exp $ +# $NetBSD: defaults.mk,v 1.37 2005/07/26 20:00:50 jlam Exp $ # # Copyright (c) 2005 The NetBSD Foundation, Inc. # All rights reserved. @@ -105,6 +105,7 @@ _TOOLS_VARNAME.nroff= NROFF _TOOLS_VARNAME.patch= PATCH _TOOLS_VARNAME.pax= PAX _TOOLS_VARNAME.perl= PERL5 +_TOOLS_VARNAME.pod2man= POD2MAN _TOOLS_VARNAME.pwd= PWD_CMD _TOOLS_VARNAME.rm= RM _TOOLS_VARNAME.rmdir= RMDIR diff --git a/mk/tools/replace.mk b/mk/tools/replace.mk index c86e765a079..d894e908923 100644 --- a/mk/tools/replace.mk +++ b/mk/tools/replace.mk @@ -1,4 +1,4 @@ -# $NetBSD: replace.mk,v 1.121 2005/07/25 21:51:19 jlam Exp $ +# $NetBSD: replace.mk,v 1.122 2005/07/26 20:00:50 jlam Exp $ # # Copyright (c) 2005 The NetBSD Foundation, Inc. # All rights reserved. @@ -868,6 +868,18 @@ TOOLS_PATH.perl= ${TOOLS_PREFIX.perl}/bin/perl . endif .endif +.if !defined(TOOLS_IGNORE.pod2man) && !empty(_USE_TOOLS:Mpod2man) +. if !empty(PKGPATH:Mlang/perl5) +MAKEFLAGS+= TOOLS_IGNORE.pod2man= +. elif !empty(_TOOLS_USE_PKGSRC.pod2man:M[yY][eE][sS]) +. include "../../lang/perl5/version.mk" +TOOLS_DEPENDS.perl?= {perl>=${PERL5_REQD},perl-thread>=${PERL5_REQD}}:../../lang/perl5 +TOOLS_CREATE+= pod2man +TOOLS_FIND_PREFIX+= TOOLS_PREFIX.pod2man=perl +TOOLS_PATH.pod2man= ${TOOLS_PREFIX.pod2man}/bin/pod2man +. endif +.endif + .if !defined(TOOLS_IGNORE.pwd) && !empty(_USE_TOOLS:Mpwd) . if !empty(PKGPATH:Msysutils/coreutils) MAKEFLAGS+= TOOLS_IGNORE.pwd= |