pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk Add a small Makefile fragment for packages requirin...
details: https://anonhg.NetBSD.org/pkgsrc/rev/14272af4fc6d
branches: trunk
changeset: 493547:14272af4fc6d
user: xtraeme <xtraeme%pkgsrc.org@localhost>
date: Mon May 09 13:01:29 2005 +0000
description:
Add a small Makefile fragment for packages requiring X11 clients
apps. Used at the moment for X11_TYPE=[xorg|XFree86] to fix
the build/installation of some packages, see
http://mail-index.netbsd.org/tech-pkg/2005/05/05/0024.html
for more information.
To switch between 'build' or 'full' dependency method use:
X11CLIENTS_DEPMETHOD=[full|build]
diffstat:
mk/x11-clients.buildlink3.mk | 42 ++++++++++++++++++++++++++++++++++++++++++
1 files changed, 42 insertions(+), 0 deletions(-)
diffs (46 lines):
diff -r c954adcbb60b -r 14272af4fc6d mk/x11-clients.buildlink3.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/mk/x11-clients.buildlink3.mk Mon May 09 13:01:29 2005 +0000
@@ -0,0 +1,42 @@
+# $NetBSD: x11-clients.buildlink3.mk,v 1.1 2005/05/09 13:01:29 xtraeme Exp $
+#
+# This Makefile fragment is meant to be used for packages requiring
+# X11 applications like bdftopcf and so on, this Makefile is useless
+# if you are using the X11 distribution that comes with your system,
+# but it's useful if you use xorg or XFree86 from pkgsrc.
+
+.if !defined(X11CLIENTS_BUILDLINK3_MK)
+X11CLIENTS_BUILDLINK3_MK= defined
+
+.include "../../mk/bsd.prefs.mk"
+
+X11CLIENTS_DEPMETHOD?= build
+
+# Require at least these versions for now.
+
+XORG_DISTVER?= 6.8.0
+XFREE86_DISTVER?= 4.4.0
+
+.if defined(X11_TYPE) && empty(X11_TYPE:Mnative)
+. if !empty(X11CLIENTS_DEPMETHOD:Mbuild)
+. if !empty(X11_TYPE:Mxorg)
+BUILD_DEPENDS+= \
+ xorg-clients>=${XORG_DISTVER}:../../x11/xorg-clients
+. elif !empty(X11_TYPE:MXFree86)
+BUILD_DEPENDS+= \
+ XFree86-clients>=${XFREE86_DISTVER}:../../x11/XFree86-clients
+. endif
+. endif
+
+. if !empty(X11CLIENTS_DEPMETHOD:Mfull)
+. if !empty(X11_TYPE:Mxorg)
+DEPENDS+= \
+ xorg-clients>=${XORG_DISTVER}:../../x11/xorg-clients
+. elif !empty(X11_TYPE:MXFree86)
+DEPENDS+= \
+ XFree86-clients>=${XFREE86_DISTVER}:../../x11/XFree86-clients
+. endif
+. endif
+.endif # X11_TYPE=native
+
+.endif # X11CLIENTS_BUILDLINK3_MK
Home |
Main Index |
Thread Index |
Old Index