pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Building X apps on OS X 10.9



On 11/01/2014 10:41 AM, Jonathan Perkin wrote:
* On 2014-01-10 at 23:26 GMT, John Ruschmeyer wrote:

Sorry if this is a FAQ... I've installed and bootstrapped pkgsrc on my
MacBook running 10.9 (Mavericks). Everything is fine until I try to build a
X11-based app whereupon it tell me that X11 is not installed (/opt/X11
can't be found). What do I need to do in order to be able to build
X11-based apps?
Can you try this patch?

   --- mk/bsd.prefs.mk  19 Dec 2013 23:50:29 -0000      1.339
   +++ mk/bsd.prefs.mk  10 Jan 2014 23:39:36 -0000
   @@ -573,7 +573,8 @@
    X11BASE?=   /usr
    .  elif !empty(MACHINE_PLATFORM:MDarwin-9.*-*) || \
            !empty(MACHINE_PLATFORM:MDarwin-10.*-*) || \
   -        !empty(MACHINE_PLATFORM:MDarwin-11.*-*)
   +        !empty(MACHINE_PLATFORM:MDarwin-11.*-*) || \
   +        !empty(MACHINE_PLATFORM:MDarwin-13.*-*)
    X11BASE?=   /usr/X11
    .  elif !empty(MACHINE_PLATFORM:MDarwin-??.*-*)
    X11BASE?=   /opt/X11

I don't have any Mountain Lion to verify, but it seems odd that it was the only
release to use /opt/X11 (and we should probably invert the test).

Otherwise, use X11_TYPE=modular in mk.conf to use X11 from pkgsrc.

Apple no longer supply an X11 (xquartz) and moved all dev to

http://xquartz.macosforge.org/trac

Newer versions appear to install in /opt/X11 though I don't know if they install in /opt on earlier versions either as i'm currently running mavricks. It might be best to test for existence in different locations instead.

Ian McWilliam


Home | Main Index | Thread Index | Old Index