From 085b4d0365dc7a08c5c6b21f9a25724fd9700977 Mon Sep 17 00:00:00 2001 From: jlam Date: Fri, 29 Jun 2001 05:07:36 +0000 Subject: Add new section: Converting packages to use buildlink.mk files. It needs to be expanded, but what's there should help others to start using buildlink.mk files. --- Packages.txt | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) (limited to 'Packages.txt') diff --git a/Packages.txt b/Packages.txt index b30fad6aa19..dffe65740e1 100644 --- a/Packages.txt +++ b/Packages.txt @@ -1,4 +1,4 @@ -# $NetBSD: Packages.txt,v 1.166 2001/06/23 14:29:29 jlam Exp $ +# $NetBSD: Packages.txt,v 1.167 2001/06/29 05:07:36 jlam Exp $ ########################################################################### ========================== @@ -1571,6 +1571,34 @@ for a mythical package foo follows: > .include "../../mk/bsd.buildlink.mk" + 8.3 Converting packages to use buildlink.mk files + ================================================= + +The process of converting existing packages to use the buildlink.mk +infrastructure is fairly straightforward. If a dependency on a particular +package is required for its libraries and headers, then rather than +directly adding a dependency on that package, include that package's +buildlink.mk instead. The following variables may also be replaced with +buildlink.mk files: + + USE_CURSES --> .include "../../devel/ncurses/buildlink.mk" + USE_LIBINTL --> .include "../../devel/gettext-lib/buildlink.mk" + USE_LTDL --> .include "../../devel/libtool/buildlink.mk" + USE_MESA --> .include "../../graphics/Mesa/buildlink.mk" + USE_SSL --> .include "../../security/openssl/buildlink.mk" + USE_XPM --> .include "../../graphics/xpm/buildlink.mk" + +If the required dependency pattern for a package differs from the default +specified in the package's buildlink.mk file, then it may be set by +defining BUILDLINK_DEPENDS. in the Makefile to the dependency +pattern required. + +A package that builds correctly with USE_BUILDLINK_ONLY set should have +that setting added to its Makefile to note that it doesn't use any +libraries or headers in ${LOCALBASE} directly, but rather references them +only through ${BUILDLINK_DIR}. + + 9 Debugging =========== -- cgit v1.2.3