Skip to content

Instantly share code, notes, and snippets.

@cyphunk
Last active March 10, 2016 11:18
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save cyphunk/5048773 to your computer and use it in GitHub Desktop.
Save cyphunk/5048773 to your computer and use it in GitHub Desktop.
install latest pidgin with OTR support, from source on OSX

Pidgin+OTR OSX

Auto download,verify,compile script for Linux may work for OSX as well:
https://gist.github.com/cyphunk/d6af7a0a56b0b3d26e60

update: updated to pidgin 2.10.11. update: updated to pidgin 2.10.9. update: updated to pidgin 2.10.8. Downloaded from source since current brew does not support and there are way too many brew related dependencies to deal with to merge a new formula.

  • OSX 10.10
  • XCode 6
  • homebrew (for macports use ./configure --prefix=/opt/local instead)
  • libotr 4.1.0
  • pidgin 2.10.11
  • pidgin-otr 4.0.1

http://lists.cypherpunks.ca/pipermail/otr-dev/2013-January/001556.html

For homebrew: export PATH=/usr/local/bin:$PATH
For macports: export PATH=/opt/local/bin:$PATH

Enchant

cd enchant-1.6.0
./configure && make && make install

GTKSpell

Things get slightly harry here. When I compiled with macports I already had a large installation of ports so only configure/compile was needed. Now I'm starting with a fresh homebrew setup and needed to guide pkg-config a bit and install some missing gtk packages. I build up the PKG_CONFIG_PATH show by finding each .pc file for packages the ./configure couldnt find (find /usr/local -name <missingpackage>\*.pc). Of note, before getting to this stage I had already previously installed gtk+ and gtk+3 in homebrew.

cd ../gtkspell-2.0.16/
brew install freetype
export PKG_CONFIG_PATH=/usr/local/Cellar/cairo/1.12.14/lib/pkgconfig/:/usr/local/Cellar/pixman/0.28.2/lib/pkgconfig/:/usr/local/Cellar/fontconfig/2.10.91/lib/pkgconfig/:/usr/local/Cellar/freetype/2.4.11/lib/pkgconfig/:/usr/local/Cellar/libpng/1.5.13/lib/pkgconfig/:/opt/X11/lib/pkgconfig/
export PATH=$PATH:/usr/local/opt/gettext/bin/
./configure
make && make install

Pidgin

This will differ between homebrew and macports. For macports see http://lists.cypherpunks.ca/pipermail/otr-dev/2013-January/001556.html. The following is for homebrew. We will not use the brew provided formula because there are too many dependency issues. So download from source and follow:

# if not the latest download sources and compile as follows
cd ../pidgin-2.10.11/
brew install gnutls nss libxml2
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/Cellar/libxml2/`ls /usr/local/Cellar/libxml2 | tail -1`/lib/pkgconfig/
export PATH=$PATH:/usr/local/Cellar/gettext/`ls /usr/local/Cellar/gettext | tail -1`/bin
# either install internationalized domain name support (brew install libidn) or add --disable-idn (shown)
./configure --disable-avahi --disable-consoleui \
--disable-gstreamer --disable-meanwhile --disable-nm --disable-screensaver \
--disable-sm --disable-gestures  --disable-startup-notification \
--disable-schemas-install --disable-vv --enable-nss \
--disable-dependency-tracking --disable-idn --disable-dbus \
--disable-tcl
make && make install

add --enable-consoleui if you want to compile finch.

LibOTR

cd ../libotr-4.1.0/
brew install libgcrypt
./configure
make && make install

PidginOTR

 cd ../pidgin-otr-4.0.1/
 ./configure
 make && make install

If you install everything but pidgin-otr via brew (because this package is not available and i dont care to add it) you will need to brew link --force gettext

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment