<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div><blockquote type="cite" class=""><div class="">On Jul 20, 2018, at 12:41 AM, Manav Bhatia <<a href="mailto:bhatiamanav@gmail.com" class="">bhatiamanav@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html; charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi, <div class=""><br class=""></div><div class="">  I have an application code that uses several dependencies that I typically install using macports. I am interested in creating an installer that can include these dependencies in addition to my compiled code. The objective is to be able to give it to other users so that they can use it on their computer without having to install macports. </div><div class=""> </div><div class="">  I have seen the instructions on macports: </div><div class=""><a href="https://guide.macports.org/chunked/using.binaries.html" class="">https://guide.macports.org/chunked/using.binaries.html</a></div><div class=""><a href="https://guide.macports.org/chunked/installing.macports.html#installing.macports.source.multiple" class="">https://guide.macports.org/chunked/installing.macports.html#installing.macports.source.multiple</a> </div><div class=""><br class=""></div><div class=""><br class=""></div></div></div></blockquote>You should also look at:</div><div><br class=""></div><div><a href="https://trac.macports.org/wiki/howto/CreateInstallers" class="">https://trac.macports.org/wiki/howto/CreateInstallers</a></div><div><br class=""><blockquote type="cite" class=""><div class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class="">  There are a few points that are still unclear to me. </div><div class=""><br class=""></div><div class="">— I have compiled macports from source with —prefix=/my/home/director/macports , and I am installing relevant ports there. If I create a package using macports, does it also need to exist in the same location on some other users’s computer? Or can it be moved around to any folder in the user’s directory. </div><div class=""><br class=""></div><div class="">— I am suspecting that there is a way to set library paths/rpaths/etc. relative to the package directory. (For example, <a href="https://wincent.com/wiki/%40executable_path%2C_%40load_path_and_%40rpath" class="">https://wincent.com/wiki/%40executable_path%2C_%40load_path_and_%40rpath</a>). Is this automatically done by the macports package builder?</div><div class=""><br class=""></div></div></div></blockquote><div>The packaged software will be delivered to exactly the same location as it was on your build machine.  I’ve packaged a digital video recorder application so I used the prefix ‘/opt/dvr’.  I suggest using something similar for your app.</div><br class=""><blockquote type="cite" class=""><div class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class=""><div class="">— can the precompiled binaries only be used for macports in /opt/local?  My current installation process (to the non-standard directory) is compiling from scratch. (NOTE: this is on Mac OS 10.13.6). </div></div><div class=""><br class=""></div></div></div></blockquote>That is expected; it isn’t possible for MacPorts to re-locate from one install prefix to another.  There is no definitive list of the things that depend on the install location.  May include libraries, scripts, help files, etc.</div><div><br class=""></div><div>You also need to determine what target operating systems you can and will support.  I found it helpful to set up VM’s with the oldest and newest OS versions and test deployment to each.  </div><div><br class=""><blockquote type="cite" class=""><div class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class="">  I would greatly appreciate some guidance on these. </div><div class=""><br class=""></div><div class="">Thanks,</div><div class="">Manav</div><div class=""><br class=""></div></div></div></blockquote>Hope this helps; feel free to ask any other questions.</div><div><br class=""></div><div>Craig</div></body></html>