Subject: Re: CVS commit: pkgsrc
To: None <hubertf@netbsd.org>
From: Alistair G. Crooks <agc@ftp.netbsd.org>
List: source-changes
Date: 06/30/2000 06:43:49
> On Thu, 29 Jun 2000, John Darrow wrote:
> > >On Wed, 28 Jun 2000, Alistair G. Crooks wrote:
> > >> Add a new X11PREFIX definition, which reflects the PREFIX for X11
> > >> packages, and set it to LOCALBASE or X11BASE accordingly.
> > 
> > >What's the difference to PREFIX?
> > >Are X pkgs expected to use X11PREFIX instead of PREFIX?
> > 
> > No, it's for non-X packages which need to know where an X package is located.
> > For example, net/ethereal is not USE_X11BASE, but it needs to know where
> > GTK (which _is_ USE_X11BASE) is located.
> 
> Uh, and why not just use $X11BASE to find gtk?
> AFACT, we've alwayse used $LOCALBASE and $X11BASE to reference files from
> other pkgs...

X11BASE reflects the root of the installed X11 tree.

X11PREFIX reflects the installed location of X11 packages. If
xpkgwedge is not installed, this will be ${X11BASE}. If xpkgwedge
is installed, this will be ${LOCALBASE}.

If you install xpkgwedge, the X11 packages (such as gtk) are
installed into ${LOCALBASE}. So the following statement in
net/ethereal/Makefile

CONFIGURE_ARGS+=        --with-gtk-prefix=${X11BASE}

will not find gtk if xpkgwedge is installed. The statement needs
to be changed to

CONFIGURE_ARGS+=        --with-gtk-prefix=${X11PREFIX}

so that the package will work whether xpkgwedge is installed or not.

Regards,
Alistair