diff options
author | rh <rh@pkgsrc.org> | 2000-10-15 11:31:41 +0000 |
---|---|---|
committer | rh <rh@pkgsrc.org> | 2000-10-15 11:31:41 +0000 |
commit | bdd5ffc77d811fa18d8c59f01b61b2069f1125ec (patch) | |
tree | 9bbfbc9102977916b86e5ab2921e662269c9a556 /mk/bsd.prefs.mk | |
parent | 02799eef44367d4d9a27da79aebf330fcaf3cd51 (diff) | |
download | pkgsrc-bdd5ffc77d811fa18d8c59f01b61b2069f1125ec.tar.gz |
Add USE_MESA and USE_GLX mechanism similar to USE_XPM that detects and
handles a builtin XFree86-4.x Mesa.
Diffstat (limited to 'mk/bsd.prefs.mk')
-rw-r--r-- | mk/bsd.prefs.mk | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/mk/bsd.prefs.mk b/mk/bsd.prefs.mk index 2aa181c1639..29b13915eac 100644 --- a/mk/bsd.prefs.mk +++ b/mk/bsd.prefs.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.prefs.mk,v 1.17 2000/06/03 22:33:22 mycroft Exp $ +# $NetBSD: bsd.prefs.mk,v 1.18 2000/10/15 11:31:42 rh Exp $ # # Make file, included to get the site preferences, if any. Should # only be included by package Makefiles before any .if defined() @@ -109,4 +109,21 @@ USE_INET6?= YES # or a pkg Makefile modifies them. .include <sys.mk> +# Check if we got Mesa distributed with XFree86 4.x or if we need to +# depend on the Mesa package. +.if (defined(CHECK_MESA) || defined(USE_MESA)) +X11BASE?= /usr/X11R6 +.if exists(${X11BASE}/include/GL/glx.h) +__BUILTIN_MESA!= egrep -c BuildGLXLibrary ${X11BASE}/lib/X11/config/X11.tmpl || true +.else +__BUILTIN_MESA= 0 +.endif +.if ${__BUILTIN_MESA} == "0" +HAVE_BUILTIN_MESA= NO +.else +HAVE_BUILTIN_MESA= YES .endif +.undef __BUILTIN_MESA +.endif # CHECK_MESA + +.endif # BSD_PKG_MK |