Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Jun 2004 12:12:17 +1000
From:      Sam Lawrance <boris@brooknet.com.au>
To:        Oliver Eikemeier <eikemeier@fillmore-labs.com>
Cc:        Cyrille Lefevre <clefevre-lists@9online.fr>
Subject:   Re: pkg-plist and installing under multiple prefixes
Message-ID:  <1087524736.905.5.camel@dirk>
In-Reply-To: <D82CE5F3-C07F-11D8-9250-00039312D914@fillmore-labs.com>
References:  <D82CE5F3-C07F-11D8-9250-00039312D914@fillmore-labs.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 2004-06-18 at 03:00, Oliver Eikemeier wrote:
> Am Donnerstag den, 17. Juni 2004, um 18:14, schrieb Sam Lawrance:
> 
> > On Fri, 2004-06-18 at 00:55, Cyrille Lefevre wrote:
> >> "Sam Lawrance" <boris@brooknet.com.au> wrote:
> >>>
> >>> I'm porting a binary distributiono of a java application.
> >>>
> >>> Like a number of similar ports, it installs into 
> >>> ${PREFIX}/${PORTNAME}.
> >>> I want to also install gnome application entries, but these are 
> >>> usually
> >>> under ${X11BASE}/share/gnome/applications.
> >>>
> >>> Just doing
> >>>
> >>> PLIST_FILES += ${X11BASE}/share/gnome/applications/xyzzy.desktop
> >>
> >> PLIST_FILES += @cwd %%X11BASE%%
> >> PLIST_FILES += share/gnome/applications/xyzzy.desktop
> >> ...
> >> PLIST_FILES += @cwd %%PREFIX%%
> >
> > Cheers, that got me on the right track.
> >
> > %%PREFIX%% is set to substitute for %D. I don't understand this - but
> > setting the substitution to ${PREFIX} works. Also the substitutions
> > needed to be quoted.
> >
> > This works:
> >
> > PLIST_SUB+=	PREFIX=${PREFIX}
> > PLIST_FILES+=	"@cwd %%X11BASE%%"
> > PLIST_FILES+=	share/gnome/applications/xyzzy.desktop
> > PLIST_FILES+=	"@cwd %%PREFIX%%"
> >
> 
> You shouldn't do things like this in the Makefile. Use a real pkg-plist.
> -Oliver

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).




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1087524736.905.5.camel>