From d6b724fc80d707c1bed707d803b056c673e4fd8d Mon Sep 17 00:00:00 2001 From: jmmv Date: Sun, 8 Feb 2004 20:57:29 +0000 Subject: Automatically override intltool utilities in a package using this file. This will use the latest version of the tools and also handle (hidden) build dependancies automatically and in a consistent way. --- textproc/intltool/buildlink2.mk | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'textproc/intltool') diff --git a/textproc/intltool/buildlink2.mk b/textproc/intltool/buildlink2.mk index bcdfd541b7b..5bbc19ad8de 100644 --- a/textproc/intltool/buildlink2.mk +++ b/textproc/intltool/buildlink2.mk @@ -1,4 +1,4 @@ -# $NetBSD: buildlink2.mk,v 1.7 2004/02/06 18:41:02 minskim Exp $ +# $NetBSD: buildlink2.mk,v 1.8 2004/02/08 20:57:29 jmmv Exp $ .if !defined(INTLTOOL_BUILDLINK2_MK) INTLTOOL_BUILDLINK2_MK= # defined @@ -14,6 +14,17 @@ BUILDLINK_PREFIX.intltool_DEFAULT= ${LOCALBASE} USE_PERL5?= build .include "../../lang/perl5/buildlink2.mk" +CONFIGURE_ENV+= INTLTOOL_PERL="${PERL5}" + +INTLTOOLIZE= ${BUILDLINK_PREFIX.intltool}/bin/intltoolize + +_CONFIGURE_PREREQ+= intltoolize + +intltoolize: + ${_PKG_SILENT}${_PKG_DEBUG} \ + ${ECHO} "=> Overriding intltool." + @cd ${WRKSRC} && ${INTLTOOLIZE} --force >/dev/null 2>&1 + BUILDLINK_TARGETS+= intltool-buildlink intltool-buildlink: _BUILDLINK_USE -- cgit v1.2.3