Need help with package that only supplies subports ...

Chris Jones jonesc at
Thu Apr 9 17:23:07 UTC 2020

> On 9 Apr 2020, at 5:29 pm, Joshua Root <jmr at> wrote:
> ´╗┐On 2020-4-10 02:08 , Edward Maros wrote:
>> I have a project that does not distribute any files by default. Instead,
>> all distributed are part of various subports. This is because this
>> package only provides language bindings (python, etc.) for a dependent
>> package. I am getting the error message:
>> :error:destroot No files have been installed in the destroot directory!
>> :error:destroot Please make sure that this software supports 'make install DESTDIR=${destroot}' or implement an alternative destroot mechanism in the Portfile.
>> :error:destroot Files might have been installed directly into your system, check before proceeding.
>> Is there a way to set a subport to be built by default?
>> Is there a way to have an empty package?
> Add code to the Portfile to install at least one file into the destroot.
> This can be as simple as a README saying "This port is just a stub."
> This is what the python portgroup does for example.

Just to add, by convention these readme files are added to the share/doc area, under a port specific sub-dir. see for instance

Which is just the first port that springs to my mind that I know does this.


> - Josh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the macports-dev mailing list