Subject: Re: CVS commit: pkgsrc
To: Johnny C. Lam <lamj@stat.cmu.edu>
From: Jason Beegan <jtb@kurwenal.com>
List: pkgsrc-changes
Date: 05/02/2001 15:30:00
> > 
> > Modified Files:
> > 	pkgsrc/graphics/geomview: Makefile
> > 
> > Log Message:
> > Use --with-opengl=${X11BASE} in CONFIGURE_ENV.
> 
> Isn't this incorrect if you are using XFree86 3.3.6 and have xpkgwedge
> installed?  Then the OpenGL headers from the Mesa package are
> installed into ${LOCALBASE}.  Perhaps we need something in bsd.pkg.mk
> or bsd.prefs.mk that sets MESADIR to the appropriate value depending
> on various factors:
> 
> 	XFree86-3.3.6               MESADIR=${X11BASE}
> 	XFree86-3.3.6 + xpkgwedge   MESADIR=${LOCALBASE}
> 	XFree86-4.0.1               MESADIR=${X11BASE}
> 	XFree86-4.0.1 + xpkgwedge   MESADIR=${X11BASE}
> 
> So, I guess something like:
> 
> 	.if ${HAVE_BUILTIN_MESA} != "NO"
> 	MESADIR=${X11BASE}
> 	.else
> 	MESADIR=${X11PREFIX}
> 	.endif
> 
> would work in bsd.pkg.mk.
> 
>      -- Johnny C. Lam <lamj@stat.cmu.edu>
>         Department of Statistics, Carnegie Mellon University
>         http://www.stat.cmu.edu/~lamj/
> 


Yes.  I think it would be good to have MESABASE defined in
"bsd.pkg.mk", similar to X11BASE and MOTIFBASE.  I wondered why it
wasn't there already and noticed that some other packages assume Mesa
is installed in X11BASE. (Don't ask me which ones, I can't recall).

- Jason.