Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Jun 2004 04:22:10 +0200
From:      "Cyrille Lefevre" <clefevre-lists@9online.fr>
To:        "Sam Lawrance" <boris@brooknet.com.au>, "Oliver Eikemeier" <eikemeier@fillmore-labs.com>
Cc:        ports@freebsd.org
Subject:   Re: pkg-plist and installing under multiple prefixes
Message-ID:  <078d01c454db$101f8a50$7890a8c0@dyndns.org>
References:  <D82CE5F3-C07F-11D8-9250-00039312D914@fillmore-labs.com> <1087524736.905.5.camel@dirk>

next in thread | previous in thread | raw e-mail | index | archive | help
"Sam Lawrance" <boris@brooknet.com.au> wrote:
> On Fri, 2004-06-18 at 03:00, Oliver Eikemeier wrote:
[snip]
> I do have a real pkg-plist, but the lines above are used to add the
> gnome links conditionally.
> 
> Is there another way? (It may be a moot point if I just have the port
> install them unconditionally).


the usual way is something like that :

in Makefile

.if defined(HAVE_SOMETHING)
PLIST_SUB+=    SOMETHING=""
.else
PLIST_SUB+=    SOMETHING="@comment "
.endif

and in pkg-plist

@comment in your case, cd to ${X11BASE}
@cwd %%X11BASE%%
%%SOMETHING%%share/gnome/applications/xyzzy.desktop
@comment then go back to ${PREFIX}
@cwd %%PREFIX%%

Cyrille Lefevre.
-- 
mailto:clefevre-lists@9online.fr



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?078d01c454db$101f8a50$7890a8c0>