Subject: CVS commit: pkgsrc
To: None <pkgsrc-changes@netbsd.org>
From: Johnny C. Lam <jlam@netbsd.org>
List: pkgsrc-changes
Date: 09/27/2002 12:23:01
Module Name:	pkgsrc
Committed By:	jlam
Date:		Fri Sep 27 09:23:00 UTC 2002

Modified Files:
	pkgsrc/mk/buildlink2: bsd.buildlink2.mk
	pkgsrc/pkgtools/x11-links: Makefile openwin.buildlink2.mk
	    xfree.buildlink2.mk
Added Files:
	pkgsrc/mk: x11.buildlink2.mk

Log Message:
Create a new variable USE_X11_LINKS that controls whether packages that
use buildlink2 and set USE_X11 will use x11-links, or if they will simply
symlink the X11 files directly into ${BUILDLINK_DIR}.  If USE_X11_LINKS is
"YES" (the default), then x11-links is used.  If USE_X11_LINKS is "NO",
then the X11 files are symlinked directly.

There is a choice here between speed and flexibility.  Using x11-links is
faster since you don't need to spend time symlinking all of the X11 files
into ${BUILDLINK_DIR}.  However, if you update your X11 installation, then
the x11-links package will likely be out-of-date.  Conversely, directly
symlinking the X11 files will protect you from changes in your X11
installation when you update, but there is a (small) time penalty to have
to do it for every package that uses X11.


To generate a diff of this commit:
cvs rdiff -r0 -r1.1 pkgsrc/mk/x11.buildlink2.mk
cvs rdiff -r1.32 -r1.33 pkgsrc/mk/buildlink2/bsd.buildlink2.mk
cvs rdiff -r1.17 -r1.18 pkgsrc/pkgtools/x11-links/Makefile
cvs rdiff -r1.3 -r1.4 pkgsrc/pkgtools/x11-links/openwin.buildlink2.mk \
    pkgsrc/pkgtools/x11-links/xfree.buildlink2.mk

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