Packaging a compiled port to App

Ryan Schmidt ryandesign at macports.org
Thu Feb 18 11:48:14 PST 2016


> On Feb 17, 2016, at 1:35 PM, Alejandro Imass <aimass at yabarana.com> wrote:
> 
> 
> 
> On Wednesday, February 17, 2016, Craig Treleaven <ctreleaven at macports.org> wrote:
> > On Feb 17, 2016, at 1:57 PM, Alejandro Imass <aimass at yabarana.com> wrote:
> >
> > Is it possible to package a compiled port into an OS X App for distribution inside a company for users that don't have MacPorts ?
> >
> > Specifically I'd like to package DIA and it's dependencies into an App that I can post on a company server and other team members can easily install.
> 
> You want to use ‘port mdmg …’ or ‘port mpkg …’.  Brief documentation at:
> 
> https://guide.macports.org/#using.binaries.binary-packages
> 
> Either of these will create a self-containted installer for whichever package you need.  No need to install MacPorts or Xcode.
> 
> 
> This is awesome! Exactly what I was asking!
> Thanks !!

But if you do this, make sure you are *not* using a MacPorts installation whose prefix is /opt/local, because that will interfere with users who already do have MacPorts installed, or those who may install it in the future. Instead, build MacPorts from source in a different prefix, one chosen specifically for the thing you are packaging. For DIA, /opt/dia could be a good choice.




More information about the macports-users mailing list