Subject: Re: questions on package system
To: David Maxwell <david@fundy.ca>
From: Hubert Feyrer <feyrer@rfhs8012.fh-regensburg.de>
List: tech-pkg
Date: 03/12/2000 01:44:03
On Sat, 11 Mar 2000, David Maxwell wrote:
> > > 3. Is there recommended way to test for X installed on the
> > >    build target in the Makefile?
> > USE_X11=yes
> 
> That says the package uses X. To test for X - (For a package 
> that builds both text and gui mode apps?) I don't see
> a canonical example. How about this?
> 
> .if exists (${X11BASE})

From bsd.pkg.mk (rev 1.414), line 874+:

.elif ((defined(USE_IMAKE) || defined(USE_MOTIF) || \
        defined(USE_X11BASE) || defined(USE_X11)) && \
       !exists(${X11BASE}))
IGNORE= "uses X11, but ${X11BASE} not found"


 - Hubert

-- 
Microsoft: "Where do you want to go today?"
Linux:     "Where do you want to be tomorrow?"
BSD:       "Are you guys coming, or what?"