Subject: how to "make" a target in a different pkgsrc directory?
To: None <tech-pkg@NetBSD.org>
From: Klaus Heinz <k.heinz@oktsieben.kh-22.de>
List: tech-pkg
Date: 10/13/2007 03:02:36
Hi,

the following example

  SOME_PKGSRCDIR=foo/bar

  pre-extract:
    set -e; cd ${.CURDIR}/../../${SOME_PKGSRCDIR}; make configure

  post-clean:
    set -e; cd ${.CURDIR}/../../${SOME_PKGSRCDIR}; make clean

works for "make clean" but not for "make extract". The result of
"make extract" is mostly (if the distfile for bar-08.15 is available
locally): 

  $ make extract
  ...
  ===> Extracting for bla-1.0
  set -e; cd /usr/pkgsrc/bla/bla/../../foo/bar; make configure
  ===> Overriding tools for bar-08.15
  ...
  ===> Creating toolchain wrappers for bar-08.15
  make: don't know how to make generate-wrappers. Stop

I suppose this kind of "reach-over" configuration or build is not
supported.
Is there some other way I can make a target in a different pkgsrc directory?

ciao
     Klaus