diff options
author | jlam <jlam@pkgsrc.org> | 2005-06-03 19:12:49 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2005-06-03 19:12:49 +0000 |
commit | 3d7747eacc5527d9a5d859ed22057439102e5849 (patch) | |
tree | 273ae49293fec799971070a5bd36642e4446f823 /x11/xcursor/builtin.mk | |
parent | 0cf49e49ff0dfe41a37ce14756824d71ae819cd3 (diff) | |
download | pkgsrc-3d7747eacc5527d9a5d859ed22057439102e5849.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/xcursor/builtin.mk')
-rw-r--r-- | x11/xcursor/builtin.mk | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/x11/xcursor/builtin.mk b/x11/xcursor/builtin.mk index 4d4fc7d8ac4..8647e24523d 100644 --- a/x11/xcursor/builtin.mk +++ b/x11/xcursor/builtin.mk @@ -1,4 +1,4 @@ -# $NetBSD: builtin.mk,v 1.8 2005/06/03 17:02:36 jlam Exp $ +# $NetBSD: builtin.mk,v 1.9 2005/06/03 19:12:50 jlam Exp $ BUILTIN_PKG:= xcursor @@ -14,18 +14,9 @@ BUILTIN_FIND_FILES.H_XCURSOR= ${X11BASE}/include/X11/Xcursor/Xcursor.h .if !defined(IS_BUILTIN.xcursor) IS_BUILTIN.xcursor= no . if exists(${H_XCURSOR}) -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.xcursor!= \ - dir=`cd ${BUILDLINK_PKGSRCDIR.xcursor} && ${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:= xcursor:BuildXcursorLibrary +. include "../../mk/buildlink3/imake-check.mk" +IS_BUILTIN.Xcursor= ${BUILTIN_IMAKE_CHECK.Xcursor} . endif .endif MAKEVARS+= IS_BUILTIN.xcursor |