<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">I suspect that the answer might not be entirely yes or no, but more like maybe sometimes. One can apparently cross-compile to iOS from the command line:<div class=""><a href="http://infinitepartitions.com/cgi-bin/showarticle.cgi?article=art024" class="">http://infinitepartitions.com/cgi-bin/showarticle.cgi?article=art024</a></div><div class=""><br class=""></div><div class="">but I'm not aware of ANY specific support within MacPorts for using cross-compiling tools (aside from universal builds, which do not apply, because right now there aren't fat binaries for both iOS/ARM and macOS/Intel); and various ports may have build dependencies that would be a problem. There may be any number of other things that need tweaking for iOS builds too, so although it might not be strictly impossible to configure (a perhaps preferably separate installation of) MacPorts to do that, I suspect that unless you want to build a LOT of ports for iOS, it''d be more trouble than it's worth.</div><div class=""><br class=""></div><div class="">I have no idea whether anyone has configured compilers, linkers, etc that run on macOS but cross-compile and build for Windows or Android; and even if they have, MacPorts almost certainly doesn't know about them; and the difficulties getting it to use them might be at least as great if not greater than those for cross-compiling to iOS.</div><div class=""><br class=""></div><div class="">Cross-compiling tools exist that run on Linux and target all the OS's you've mentioned. Supposedly, MacPorts can (experimentally) be gotten to work on Linux, although you have to to a lot of work yourself.</div><div class=""><a href="https://www.macports.org/install.php#other" class="">https://www.macports.org/install.php#other</a></div><div class=""><br class=""></div><div class="">If you're going to have to do a lot of work yourself anyway, that might be easier than building all the cross-compiling toolchains to run on macOS. Or not. And you could always run Linux in a VM under macOS, perhaps using VirtualBox, which is free for personal use.</div><div class=""><br class=""></div><div class="">Then again, I haven't spent any significant time reading about or looking at MacPorts internals, let alone experimental features. For someone with really deep knowledge, it might not be THAT difficult; but for most of us, it would be if not impossible, at least a lot of trouble.</div><div class=""><br class=""></div><div class=""><div><blockquote type="cite" class=""><div class="">On Jul 10, 2020, at 14:05, Ces VLC <<a href="mailto:cesarillovlc@gmail.com" class="">cesarillovlc@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class=""><br class=""></div><div class=""><div class="gmail_quote"><div dir="ltr" class="gmail_attr">El El vie, 10 jul 2020 a las 18:15, Ken Cunningham <<a href="mailto:ken.cunningham.webuse@gmail.com" class="">ken.cunningham.webuse@gmail.com</a>> escribió:<br class=""></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)">[...]<br class="">
There is a full description on the point-by-point details here:<br class="">
<br class="">
<<a href="https://guide.macports.org/chunked/development.local-repositories.html" rel="noreferrer" target="_blank" class="">https://guide.macports.org/chunked/development.local-repositories.html</a>><br class="">[...]</blockquote><div dir="auto" class=""></div><br class=""></div><div class="gmail_quote">Yes, I know how to do that, but I assumed MacPorts will build for MacOS only. Can you write a portfile that will crosscompile to other OSs such as Windows? And, if affirmative, can you also write portfiles that build to iOS and Android? That would greatly improve my workflow!!</div><div class="gmail_quote"><br class=""></div><div class="gmail_quote">Kind regards and thanks a lot,</div><div class="gmail_quote"><br class=""></div><div class="gmail_quote">César</div><div class="gmail_quote"><br class=""></div><div class="gmail_quote"><br class=""></div><div class="gmail_quote"><br class=""></div></div>
</div></blockquote></div><br class=""></div></body></html>