Building MacPorts

Ryan Schmidt ryandesign at macports.org
Tue Dec 16 09:25:01 PST 2014


Remember to Reply All so that your reply goes to the mailing list too, not just to me.

On Dec 16, 2014, at 9:20 AM, Jonathan Moore wrote:

> > Subject: Re: Building MacPorts
> > From: ryandesign at macports.org
> > Date: Mon, 15 Dec 2014 14:38:25 -0600
> > CC: macports-dev at lists.macosforge.org
> > To: quicksort33 at live.com
> > 
> > 
> > On Dec 15, 2014, at 2:03 PM, Jonathan Moore wrote:
> > 
> > > I checked out the Macports via svn and my FreeBSD VM cant find the Objective-C runtime headers.
> > > Do I need to set an environment variable.
> > 
> > Where do you have them installed?
> > 
> > And just to check: why are you building MacPorts on FreeBSD? MacPorts is meant to be used on OS X.
> 
> The root folder. Where should I?

Really? The root folder? That's unusual. One usually installs software in a particular prefix. For example, the default MacPorts prefix is /opt/local, so its libraries go in /opt/local/lib, its headers go in /opt/local/include, and so on.

I'm not really sure how to build MacPorts on non-OS X systems; I've never tried. My remark was just meant to point out that 1) you have to install the Objective-C runtime stuff, however one does that on non-OS X systems (GNUstep?), and 2) depending on where you put it, you may need to tell the build to do that (by adding -I flags to CPPFLAGS and adding -L flags to LDFLAGS).

How exactly did you install the Objective-C components? Where exactly are they on disk? i.e. show us a complete path of one of the headers that it installs. Exactly what commands are you running to build MacPorts? Exactly what error message does it give?

> And a FreeBSD build is supported but would be considered experimental if you read on the MacPorts
> site.

Yes, MacPorts itself should be installable on non-OS X operating systems. However, the collection of ports we have in MacPorts is meant for OS X and many of them won't be installable on non-OS X operating systems. So if your intention in installing MacPorts on FreeBSD is to install our ports on FreeBSD, you're likely to be disappointed.



More information about the macports-dev mailing list