openbsd-ports/infrastructure/mk
espie 863226a22f Basic new lib dependency code for package.
LIB_DEPENDS are no longer part of ALWAYS_DEPEND for the new-depends code,
but use their own code.

The code does scan the list of libraries for dependent packages, and insert
corresponding @libdepend lines into the resulting package. There are a few
important consequences:

- no libdepend lines are inserted if only a static library is found. So
RUN_DEPENDS are now needed to supplement LIB_DEPENDS if a package requires
another package for something that isn't a library.
- dependency checking for installed stuff can go one step further, since
we have the major/minor number of the libraries used for the build.
At the moment, pkg resolve dependencies does nothing smart with the
inserted libdepends, but it will (soon). In fact, for most libdepends, if
the major/minor scheme are correct, no check on the installed pkgspec ought
to be necessary... which is why the `default pkgspec to check' is pkg-* for
libraries.
- resolving recursive run dependencies need to go one step further: a
RUN_DEPENDS pkg may have some LIB_DEPENDS, and the RUN_DEPENDS pkg will be
needed to explicitly write the required information into the resulting
package... Hence the necessity of being able to tune the list of libraries
to ask the uninstalled package (and to make sure the uninstalled package
is built).

This is only preliminary work. Currently, this doesn't yield any real
benefits to the old approach, as a few semantic details need to be
sharpened out. Also, there are now quite a few old targets that are a
complete mess and will need to be cleaned up/removed entirely.

Thanks to naddy@ for testing various preliminary versions of this patch
and helping me iron bugs out.
2001-11-12 14:32:52 +00:00
..
bsd.port.mk Basic new lib dependency code for package. 2001-11-12 14:32:52 +00:00
bsd.port.subdir.mk First cut at a lib-depends checker: this version does use WRKINST instead 2001-10-24 11:57:34 +00:00
gettext.port.mk Add iconv/gettext modules. 2001-09-23 05:29:47 +00:00
gnu.port.mk make sure config.guess is executable. 2001-09-30 17:14:33 +00:00
iconv.port.mk Add iconv/gettext modules. 2001-09-23 05:29:47 +00:00
imake.port.mk Cut out some parts of bsd.port.mk into separate modules. 2001-08-25 11:23:46 +00:00
modules.port.mk Recursive module support. 2001-10-29 12:51:59 +00:00
old-install.mk fix sudo install 2001-09-14 17:33:51 +00:00
perl.port.mk basic regression testing framework. 2001-10-03 08:53:18 +00:00
qt2.port.mk qt2 module support 2001-08-27 08:53:53 +00:00
qt.port.mk qt module 2001-08-27 09:08:57 +00:00