> But I'm wondering if there's some way of tricking the system so that I
> could write for example a custom portfile for the packages I need, with
> this portfile modified for cross compiling to windows.

It's very simple to do this.

TL;DR

set up a directory somewhere with good access permissions
make that directory in your custom directory
tell macports where it is to use it by editing 
${prefix}/etc/macports/sources.conf


I have literally hundreds of these ports. I believe you will find this very 
powerful for you.

There is a full description on the point-by-point details here:

<https://guide.macports.org/chunked/development.local-repositories.html>

Ask when you run into troubles.

Best,

Ken


Reply via email to