diff options
author | jlam <jlam> | 2002-09-27 09:22:58 +0000 |
---|---|---|
committer | jlam <jlam> | 2002-09-27 09:22:58 +0000 |
commit | dfe296a75abc61097374603fe7b52099084774ed (patch) | |
tree | ab23a40fa63327e998107315ef50b72d2aa50d51 /pkgtools/x11-links/openwin.buildlink2.mk | |
parent | 433b0d465a90e4800d3147e2863fff177f78cb0a (diff) | |
download | pkgsrc-dfe296a75abc61097374603fe7b52099084774ed.tar.gz |
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.
Diffstat (limited to 'pkgtools/x11-links/openwin.buildlink2.mk')
-rw-r--r-- | pkgtools/x11-links/openwin.buildlink2.mk | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/pkgtools/x11-links/openwin.buildlink2.mk b/pkgtools/x11-links/openwin.buildlink2.mk index 1fbc4e6b899..f8d6fb70365 100644 --- a/pkgtools/x11-links/openwin.buildlink2.mk +++ b/pkgtools/x11-links/openwin.buildlink2.mk @@ -1,8 +1,7 @@ -# $NetBSD: openwin.buildlink2.mk,v 1.3 2002/08/26 06:28:21 jlam Exp $ +# $NetBSD: openwin.buildlink2.mk,v 1.4 2002/09/27 09:23:00 jlam Exp $ -.if defined(_FOR_X11_LINKS_ONLY) -.if !defined(X11_LINKS_BUILDLINK_MK) -X11_LINKS_BUILDLINK_MK= # defined +.if !defined(OPENWIN_BUILDLINK2_MK) +OPENWIN_BUILDLINK2_MK= # defined BUILDLINK_PACKAGES+= openwin BUILDLINK_PREFIX.openwin= ${X11BASE} @@ -1011,5 +1010,4 @@ BUILDLINK_TARGETS+= openwin-buildlink openwin-buildlink: _BUILDLINK_USE -.endif # X11_LINKS_BUILDLINK_MK -.endif # _FOR_X11_LINKS_ONLY +.endif # OPENWIN_BUILDLINK2_MK |