From 90ba403f27828e91e78c8d1d03b539325d6dfe13 Mon Sep 17 00:00:00 2001 From: jlam Date: Fri, 3 Jun 2005 16:03:09 +0000 Subject: Don't require a read-write pkgsrc tree when invoking imake. We avoid this requirement by using TMPDIR as the read-write location demanded by using imake. --- textproc/expat/builtin.mk | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'textproc') diff --git a/textproc/expat/builtin.mk b/textproc/expat/builtin.mk index abbe9b8c61c..c5f1e0875bb 100644 --- a/textproc/expat/builtin.mk +++ b/textproc/expat/builtin.mk @@ -1,4 +1,4 @@ -# $NetBSD: builtin.mk,v 1.4 2005/06/01 18:33:02 jlam Exp $ +# $NetBSD: builtin.mk,v 1.5 2005/06/03 16:03:09 jlam Exp $ BUILTIN_PKG:= expat @@ -18,8 +18,10 @@ PKGSRC_USE_TOOLS+= imake # XXX IMAKE?= ${X11BASE}/bin/imake # XXX . if defined(IMAKE) && exists(${IMAKE}) IS_BUILTIN.expat!= \ + dir=`cd ${BUILDLINK_PKGSRCDIR.expat} && ${PWD_CMD}`; \ + cd ${TMPDIR:U/tmp:Q} && \ ${IMAKE} -DUseInstalled -I${X11BASE}/lib/X11/config \ - -f ${BUILDLINK_PKGSRCDIR.expat}/builtin-imake.mk \ + -f $$dir/builtin-imake.mk -C builtin-imake.$$$$.c \ -s - | \ ${IMAKE_MAKE} -f - builtin-test . endif -- cgit v1.2.3