pkg-plist and installing under multiple prefixes
Cyrille Lefevre
clefevre-lists at 9online.fr
Fri Jun 18 02:22:28 GMT 2004
"Sam Lawrance" <boris at 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 at 9online.fr
More information about the freebsd-ports
mailing list