summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjlam <jlam>2005-06-03 21:11:06 +0000
committerjlam <jlam>2005-06-03 21:11:06 +0000
commitd6250b5681945052113ac2f78fcc0c56961e3c34 (patch)
treeb38f8dec3b986363d15bcca33f29ba56ac6befc0 /mk
parent939b176831a05274f745d8f4757d26ab55840ab6 (diff)
downloadpkgsrc-d6250b5681945052113ac2f78fcc0c56961e3c34.tar.gz
Teach the tools framework about bdftopcf and remove
x11-clients.buildlink3.mk. Packages that need bdftopcf should say: USE_TOOLS+= bdftopcf
Diffstat (limited to 'mk')
-rw-r--r--mk/tools/replace.mk21
-rw-r--r--mk/x11-clients.buildlink3.mk42
2 files changed, 20 insertions, 43 deletions
diff --git a/mk/tools/replace.mk b/mk/tools/replace.mk
index 67280276a71..0eac56a0bc0 100644
--- a/mk/tools/replace.mk
+++ b/mk/tools/replace.mk
@@ -1,4 +1,4 @@
-# $NetBSD: replace.mk,v 1.97 2005/06/02 21:03:32 jlam Exp $
+# $NetBSD: replace.mk,v 1.98 2005/06/03 21:11:07 jlam Exp $
#
# Copyright (c) 2005 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -196,6 +196,25 @@ TOOLS_${_TOOLS_VARNAME.basename}= ${TOOLS_REAL_CMD.basename}
. endif
.endif
+.if !defined(TOOLS_IGNORE.bdftopcf) && !empty(_USE_TOOLS:Mbdftopcf)
+. if !empty(PKGPATH:Mx11/XFree86-clients) || !empty(PKGPATH:Mx11/xorg-clients)
+MAKEFLAGS+= TOOLS_IGNORE.bdftopcf=
+. elif !empty(_TOOLS_USE_PKGSRC.bdftopcf:M[yY][eE][sS])
+TOOLS_CREATE+= bdftopcf
+. if defined(X11_TYPE) && !empty(X11_TYPE:MXFree86)
+TOOLS_DEPENDS.bdftopcf?= XFree86-clients>=4.4.0:../../x11/XFree86-clients
+TOOLS_FIND_PREFIX+= TOOLS_PREFIX.bdftopcf=imake
+TOOLS_REAL_CMD.bdftopcf= ${TOOLS_PREFIX.bdftopcf}/${X11ROOT_PREFIX}/bin/bdftopcf
+. elif defined(X11_TYPE) && !empty(X11_TYPE:Mxorg)
+TOOLS_DEPENDS.bdftopcf?= xorg-clients>=6.8:../../x11/xorg-clients
+TOOLS_FIND_PREFIX+= TOOLS_PREFIX.bdftopcf=xorg-clients
+TOOLS_REAL_CMD.bdftopcf= ${TOOLS_PREFIX.bdftopcf}/${X11ROOT_PREFIX}/bin/bdftopcf
+. else # !empty(X11_TYPE:Mnative)
+TOOLS_REAL_CMD.bdftopcf= ${X11BASE}/bin/bdftopcf
+. endif
+. endif
+.endif
+
.if !defined(TOOLS_IGNORE.bison) && !empty(_USE_TOOLS:Mbison)
. if !empty(PKGPATH:Mdevel/bison)
MAKEFLAGS+= TOOLS_IGNORE.bison=
diff --git a/mk/x11-clients.buildlink3.mk b/mk/x11-clients.buildlink3.mk
deleted file mode 100644
index 6c6d949bf00..00000000000
--- a/mk/x11-clients.buildlink3.mk
+++ /dev/null
@@ -1,42 +0,0 @@
-# $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