adding additional empty target in

Stanislav Sedov ssedov at
Fri Aug 4 19:05:09 UTC 2006


Some of some ports install files into shared location, e.g.
several ruby ports installs docs into subdirectory under
${RUBY_DOCDIR}, ocaml ports - into subdirectory of ${OCAML_DOCSDIR}.
As this directories might not exists before installing, they should
be removed after uninstall, so there should be something about "@dirrmtry
share/doc/ruby18" in pkg-plist.

The problem begins when we are trying to use PORTDOCS macro. In that
case PORTDOCS entries will be added in plist in add-plist-docs target
of, and therefore this "@dirrmtry share/doc/ruby18" should
be added after add-plist-docs target either it will not be deleted.
But there are no free targets after add-plist-docs... One of possible
solutions is to redefine add-plist-post target, that currently assigned
for non-standard PREFIX processing. But isn't very good, since we need
to make a copy of original add-plist-target in our Makefile. Furthermore
it can't be used in some cases, where target can be defined only after
inclusion of (such is my case of inclusion of - I
need to add some plist entries in after all other entries, but
this file should be included only after, as I need some
variables defined)

Is it possible to add one more empty target after add-plist-docs to use
by ports? I can investigate a patch, although it will be pretty simple.


Stanislav Sedov         MBSD labs, Inc.         <ssedov at>
Россия, Москва

If the facts don't fit the theory, change the facts.  -- A. Einstein
PGP fingerprint:  F21E D6CC 5626 9609 6CE2  A385 2BF5 5993 EB26 9581
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url :

More information about the freebsd-ports mailing list