summaryrefslogtreecommitdiff
path: root/mk/x11.buildlink2.mk
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2002-09-27 09:22:58 +0000
committerjlam <jlam@pkgsrc.org>2002-09-27 09:22:58 +0000
commit84cb9a37e990b3ecf2ba972569e5ea5452219f63 (patch)
treeab23a40fa63327e998107315ef50b72d2aa50d51 /mk/x11.buildlink2.mk
parentb1cedbc5e22f8bfe2c4d1e545396da5e8d2f2680 (diff)
downloadpkgsrc-84cb9a37e990b3ecf2ba972569e5ea5452219f63.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 'mk/x11.buildlink2.mk')
-rw-r--r--mk/x11.buildlink2.mk17
1 files changed, 17 insertions, 0 deletions
diff --git a/mk/x11.buildlink2.mk b/mk/x11.buildlink2.mk
new file mode 100644
index 00000000000..814f463f7ef
--- /dev/null
+++ b/mk/x11.buildlink2.mk
@@ -0,0 +1,17 @@
+# $NetBSD: x11.buildlink2.mk,v 1.1 2002/09/27 09:22:58 jlam Exp $
+
+.if !defined(X11_BUILDLINK2_MK)
+X11_BUILDLINK2_MK= # defined
+
+USE_X11= # defined
+USE_X11_LINKS= no
+
+.include "../../mk/bsd.prefs.mk"
+
+.if !empty(X11BASE:M*openwin)
+. include "../../pkgtools/x11-links/openwin.buildlink2.mk"
+.else
+. include "../../pkgtools/x11-links/xfree.buildlink2.mk"
+.endif
+
+.endif # X11_BUILDLINK2_MK