pkg-plist and installing under multiple prefixes

Sam Lawrance boris at brooknet.com.au
Thu Jun 17 16:20:42 GMT 2004


On Fri, 2004-06-18 at 00:55, Cyrille Lefevre wrote:
> "Sam Lawrance" <boris at 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%%"

-Sam



More information about the freebsd-ports mailing list