Subject: how to use buildlink2
To: None <tech-pkg@netbsd.org>
From: Klaus Heinz <k.heinz.okt.zwei@onlinehome.de>
List: tech-pkg
Date: 10/02/2002 22:06:57
Hi,

I have several questions regarding buildlink2.

- What purpose does it serve?
- Should buildlink2 be used in new/updated packages?
- What do I have to change? Simply including buildlink.mk instead of
  buildlink2.mk seems not to be enough, at least for Perl/X11 packages:

../../lang/perl5/buildlink.mk:

  $ make
  ...
  => Creating  .../.buildlink/...
  ...
  cc ...-I/usr/pkgsrc/somepackage/work/.buildlink/include ...
  ...

../../lang/perl5/buildlink2.mk:
  $ make
  ...
  [ no .buildlink directory created ]
  ...
  cc ... -I/usr/pkg/include ...
  ...

Similar behaviour for a x11 package:

../../mk/x11.buildlink.mk: 
  -I/usr/pkg/share/x11-links/include is used

../../mk/x11.buildlink2.mk:
  No dependence on x11-links and the compiler does not find the
  necessary include files.


Am I missing something obvious?

My pkgsrc/mk/ directory was updated on 2002-10-01.

ciao
     Klaus