summaryrefslogtreecommitdiff
path: root/x11/Xrandr-mixedcase
diff options
context:
space:
mode:
authorjlam <jlam>2005-06-03 19:12:49 +0000
committerjlam <jlam>2005-06-03 19:12:49 +0000
commit47102da65d769d6b88054ce7b0c328f196935fb3 (patch)
tree273ae49293fec799971070a5bd36642e4446f823 /x11/Xrandr-mixedcase
parent9d7ff2090c37e0ed57733d378012152b047c6ae6 (diff)
downloadpkgsrc-47102da65d769d6b88054ce7b0c328f196935fb3.tar.gz
Coalesce the common makefile code in the builtin.mk file that inspect
the X11 distribution using imake into mk/buildlink3/imake-check.mk. imake-check.mk calls out to a helper shell script mk/buildlink3/imake-check that generates the required Imakefiles and runs imake. Remove the now extraneous builtin-imake.mk files as the builtin.mk files can now contain the name of the imake symbol to check.
Diffstat (limited to 'x11/Xrandr-mixedcase')
-rw-r--r--x11/Xrandr-mixedcase/builtin-imake.mk12
-rw-r--r--x11/Xrandr-mixedcase/builtin.mk17
2 files changed, 4 insertions, 25 deletions
diff --git a/x11/Xrandr-mixedcase/builtin-imake.mk b/x11/Xrandr-mixedcase/builtin-imake.mk
deleted file mode 100644
index 7474999aba3..00000000000
--- a/x11/Xrandr-mixedcase/builtin-imake.mk
+++ /dev/null
@@ -1,12 +0,0 @@
-XCOMM $NetBSD: builtin-imake.mk,v 1.1 2005/06/01 18:03:27 jlam Exp $
-
-/*
- * Check the value of BuildRandRLibrary for the presence of
- * Xrandr in the X11 distribution.
- */
-builtin-test:
-#if BuildRandRLibrary
- @echo yes
-#else
- @echo no
-#endif
diff --git a/x11/Xrandr-mixedcase/builtin.mk b/x11/Xrandr-mixedcase/builtin.mk
index b162c179896..7a94c705b59 100644
--- a/x11/Xrandr-mixedcase/builtin.mk
+++ b/x11/Xrandr-mixedcase/builtin.mk
@@ -1,4 +1,4 @@
-# $NetBSD: builtin.mk,v 1.11 2005/06/03 17:02:36 jlam Exp $
+# $NetBSD: builtin.mk,v 1.12 2005/06/03 19:12:49 jlam Exp $
BUILTIN_PKG:= Xrandr
@@ -14,18 +14,9 @@ BUILTIN_FIND_FILES.H_XRANDR= ${X11BASE}/include/X11/extensions/Xrandr.h
.if !defined(IS_BUILTIN.Xrandr)
IS_BUILTIN.Xrandr= no
. if exists(${H_XRANDR})
-PKGSRC_USE_TOOLS+= imake # XXX
-IMAKE?= ${X11BASE}/bin/imake # XXX
-_BUILTIN_IMAKE_CMD= ${IMAKE:C/^/_asdf_/1:M_asdf_*:S/^_asdf_//}
-. if exists(${_BUILTIN_IMAKE_CMD})
-IS_BUILTIN.Xrandr!= \
- dir=`cd ${BUILDLINK_PKGSRCDIR.Xrandr} && ${PWD_CMD}`; \
- cd ${TMPDIR:U/tmp:Q} && \
- ${IMAKE} -DUseInstalled -I${X11BASE}/lib/X11/config \
- -f $$dir/builtin-imake.mk -C builtin-imake.$$$$.c \
- -s - | \
- ${IMAKE_MAKE} -f - builtin-test
-. endif
+BUILTIN_IMAKE_CHECK:= Xrandr:BuildRandRLibrary
+. include "../../mk/buildlink3/imake-check.mk"
+IS_BUILTIN.Xrandr= ${BUILTIN_IMAKE_CHECK.Xrandr}
. endif
.endif
MAKEVARS+= IS_BUILTIN.Xrandr