summaryrefslogtreecommitdiff
path: root/x11/xextensions
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2005-03-05 18:16:21 +0000
committerwiz <wiz@pkgsrc.org>2005-03-05 18:16:21 +0000
commit8a95eb450573436053fe8a1307dcff3f6bdc786e (patch)
tree27a2e01a3237611b8dd40c17375bcb0442cc37e9 /x11/xextensions
parent5c8006c83dad253c5ed0a6a7bc636c524cdc4348 (diff)
downloadpkgsrc-8a95eb450573436053fe8a1307dcff3f6bdc786e.tar.gz
Instead of disabling the randrext and Xrandr packages on systems
which have no extutil.h header file, just make them depend on the xextensions package which provides it. Bump PKGREVISION for Xrandr and randrext. Add builtin.mk file for xextensions. jlam says ok.
Diffstat (limited to 'x11/xextensions')
-rw-r--r--x11/xextensions/builtin.mk46
1 files changed, 46 insertions, 0 deletions
diff --git a/x11/xextensions/builtin.mk b/x11/xextensions/builtin.mk
new file mode 100644
index 00000000000..ab0f16cae1b
--- /dev/null
+++ b/x11/xextensions/builtin.mk
@@ -0,0 +1,46 @@
+# $NetBSD: builtin.mk,v 1.1 2005/03/05 18:16:21 wiz Exp $
+
+_X11_EXTENSIONS_EXTUTIL_H= ${X11BASE}/include/X11/extensions/extutil.h
+
+.if !defined(IS_BUILTIN.xextensions)
+IS_BUILTIN.xextensions= no
+. if exists(${_X11_EXTENSIONS_EXTUTIL_H})
+IS_BUILTIN.xextensions= yes
+# hardcode version for now, since there currently is only one, really
+BUILTIN_PKG.xextensions= xextensions-1.0.1
+BUILDLINK_VARS+= BUILTIN_PKG.xextensions
+. endif
+BUILDLINK_VARS+= IS_BUILTIN.xextensions
+.endif # IS_BUILTIN.xextensions
+
+.if !defined(USE_BUILTIN.xextensions)
+USE_BUILTIN.xextensions?= ${IS_BUILTIN.xextensions}
+
+. if defined(BUILTIN_PKG.xextensions)
+USE_BUILTIN.xextensions= yes
+. for _depend_ in ${BUILDLINK_DEPENDS.xextensions}
+. if !empty(USE_BUILTIN.xextensions:M[yY][eE][sS])
+USE_BUILTIN.xextensions!= \
+ if ${PKG_ADMIN} pmatch '${_depend_}' ${BUILTIN_PKG.xextensions}; then \
+ ${ECHO} "yes"; \
+ else \
+ ${ECHO} "no"; \
+ fi
+. endif
+. endfor
+. endif
+.endif # USE_BUILTIN.xextensions
+
+CHECK_BUILTIN.xextensions?= no
+.if !empty(CHECK_BUILTIN.xextensions:M[nN][oO])
+
+.if !empty(USE_BUILTIN.xextensions:M[nN][oO])
+BUILDLINK_DEPENDS.xextensions+= xextensions>=1.0
+.endif
+
+.if !empty(USE_BUILTIN.xextensions:M[yY][eE][sS])
+BUILDLINK_PREFIX.xextensions= ${X11BASE}
+USE_X11= yes
+.endif
+
+.endif # CHECK_BUILTIN.xextensions