Building under OS X

Daniel edited this page Jul 16, 2015 · 10 revisions

I suppose you already got git working on your command line. If not, you're probably in the wrong place.

Install macports. Not fink, since its version of glib is too old. (If this is too hard, just keep on using your GUI XMPP client)

Get the required tools, executing

$ sudo port install automake autoconf pkgconfig glib2 curl
$ sudo port install ossp-uuid

You'll also need to get libstrophe, so in whatever directory suits you:

$ git clone https://github.com/strophe/libstrophe.git
$ cd libstrophe
$ ./bootstrap.sh
$ ./configure
$ make && sudo make install

You will get some warnings, but we don't care about that right now.

Then, assuming macports is installed in /opt/local (which is the case if you just followed the GUI), go to the directory where you checked out profanity and run

$ ./bootstrap.sh
$ LDFLAGS=-L/opt/local/lib ./configure
$ make

The LDFLAGS=-L/opt/local/lib variable tells ./configure to find your non-mac libraries in macports library folder /opt/local/lib.

If setting LDFLAGS does not work for you, configure may not be able to find the readline directory. Here is a jury rig fix (if not using readline 6.3, change as necessary):

$ cd /usr/local
$ sudo mkdir opt && cd opt
$ sudo mkdir readline && cd readline
$ sudo mkdir lib && cd lib
$ sudo ln -s /opt/local/lib/libreadline.6.3.dylib libreadline.6.3.dylib

Done! Now you might want to try out profanity locally before injecting it into your system with make install. In fact, there's no real reason to copy it over if you ask me, you could just run it from the build directory.

In case you want to control where make install is going to ejaculate the binary and whatever other files make decides to copy over, run ./configure with the --prefix. Even better: read it's manual with ./configure --help

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.