Date: Mon, 10 Sep 2001 16:29:18 +0300 (EEST) From: Maxim Sobolev <sobomax@FreeBSD.ORG> To: esk@ira.uka.de (Espen Skoglund) Cc: nbm@mithrandr.moria.org (Neil Blakey-Milner), esk@ira.uka.de (Espen Skoglund), ports@FreeBSD.ORG Subject: Re: WANT_GNOME gives unwanted CONFIGURE_ARGS Message-ID: <200109101330.f8ADUJZ35911@vega.vega.com> In-Reply-To: <no.id> from "Espen Skoglund" at Sep 10, 2001 01:34:15 PM
next in thread | previous in thread | raw e-mail | index | archive | help
> > [Neil Blakey-Milner] > > On Fri 2001-09-07 (20:35), Espen Skoglund wrote: > >> I was just looking at ports/30414, and it seems there are some > >> unexpected (at least for me) results of defining WANT_GNOME in the > >> port's Makefile. I would expect bsd.gnome.mk to include a proper > >> --datadir switch to the configure script, but > >> > >> .if !defined(HAVE_GNOME) && ... > >> CONFIGURE_ARGS+=--datadir=${PREFIX}/share/gnome > >> .endif > >> > >> on line 287 ensures that this does not happen because WANT_GNOME > >> will (potentially) define HAVE_GNOME=yes. Have I missed something > >> here? > > > bsd.gnome.mk has: > > > # Ports which optionally depend on GNOME can add '--datadir=${PREFIX}/share' > > # to CONFIGURE_ARGS before including <bsd.port.post.mk> if they do not wish > > # to install their data files in /usr/X11R6/share/gnome. Please be aware > > # that you will need to make non standard patches to get the rest of the > > # files into the correct places. Specifically, the help files and pixmaps > > # must still go into /usr/X11R6/share/gnome/help and > > # /usr/X11R6/share/gnome/pixmaps respectively. %%DATADIR%% will still be > > # defined for you to use. > > But I *do* want to install the data files in /usr/X11R6/share/gnome. > That's what DATADIR is set to, and that's what I expect CONFIGURE_ARGS > to contain. Do I really have to set datadir even when I want the > files to go into the default gnome location? For ports with optional GNOME dependency you have to include the following into the Makefile: [...] WANT_GNOME= yes [...] .include <bsd.port.pre.mk> .if defined(HAVE_GNOME) USE_GNOME= yes .endif [...] .include <bsd.port.post.mk> -Maxim To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200109101330.f8ADUJZ35911>