How do I cause standalone X11 apps to use MacPorts X11?
Jeremy Lavergne
jeremy at lavergne.gotdns.org
Wed Mar 26 11:32:55 PDT 2014
Instructions from the maintainer of MacPorts' xorg-server (from the -dev list):
On Mar 26, 2014, at 14:28, Jeremy Huddleston Sequoia <jeremyhu at macports.org> wrote:
> The stubs are there for projects that linked against /usr/X11. All you really need to do is setup symlinks to redirect them to your MP prefix. I recommend starting with the XQuartz hook (which is installed on the system to setup the links to /opt/X11) and then just changing them to the MacPorts prefix (/opt/local in the example below):
>
> sudo port -v install xorg
> launchctl load -w /Library/LaunchAgents/org.macports.startx.plist
> sudo /usr/X11/libexec/xquartz_postinst.sh
> sudo rm /usr/X11
> sudo rm /usr/X11R6
> sudo ln -s /opt/local /usr/X11
> sudo ln -s /opt/local /usr/X11R6
>
> Note that loading the launchd.plist requires logout and login for $DISPLAY to propagate.
>
> --Jeremy
More information about the macports-users
mailing list