pkg-plist and installing under multiple prefixes

Cyrille Lefevre clefevre-lists at
Fri Jun 18 02:22:28 GMT 2004

"Sam Lawrance" <boris at> wrote:
> On Fri, 2004-06-18 at 03:00, Oliver Eikemeier wrote:
> 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="@comment "

and in pkg-plist

@comment in your case, cd to ${X11BASE}
@cwd %%X11BASE%%
@comment then go back to ${PREFIX}
@cwd %%PREFIX%%

Cyrille Lefevre.
mailto:clefevre-lists at

More information about the freebsd-ports mailing list