Subject: CVS commit: pkgsrc/mk/buildlink3
To: None <pkgsrc-changes@NetBSD.org>
From: Johnny C. Lam <jlam@netbsd.org>
List: pkgsrc-changes
Date: 05/24/2005 03:44:04
Module Name:	pkgsrc
Committed By:	jlam
Date:		Tue May 24 03:44:04 UTC 2005

Added Files:
	pkgsrc/mk/buildlink3: find-libs.mk

Log Message:
Add a new file find-libs.mk that can be included by builtin.mk files
to detect the presence of libraries in the base system.

The input variable is BUILDLINK_FIND_LIBS, which is a list of library
names, e.g. ncurses, iconv, etc., that will be sought in the base
system.  BUILDLINK_LIB_FOUND.<lib> is set to "yes" or "no" depending
on the result of the search.

An example use is:

BUILDLINK_FIND_LIBS:= intl iconv
.include "../../mk/buildlink3/find-libs.mk"
# ${BUILDLINK_LIB_FOUND.intl} and ${BUILDLINK_LIB_FOUND.iconv} are now
# either "yes" or "no".


To generate a diff of this commit:
cvs rdiff -r0 -r1.1 pkgsrc/mk/buildlink3/find-libs.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.