Installing irssi on OSX

Published September 12, 2012

Screenshot

WARNING: tested on OSX 10.8.2 only

Dependencies (assuming last stable releases):

  1. m4
  2. libtool
  3. autconf
  4. automake
  5. gettext
  6. glib

Build and install packages with ./configure, make && sudo make install, no particular flags required.

  Read more

Building liblastfm via macports

Published September 05, 2012

First run this:

port -dv extract liblastfm
cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_liblastfm/liblastfm/work/mxcl-liblastfm-1c739eb
nano .qmake.env

then replace:

QMAKE_CC = /usr/bin/clang
QMAKE_CXX = /usr/bin/clang++
QMAKE_LFLAGS_RELEASE = -L/opt/local/lib -arch x86_64
QMAKE_CFLAGS_RELEASE = -pipe -O2 -arch x86_64 -I/opt/local/include
QMAKE_CXXFLAGS_RELEASE = -pipe -O2 -arch x86_64 -I/opt/local/include

with:

QMAKE_CC = /usr/bin/gcc-4.2
QMAKE_CXX = /opt/local/bin/g++-apple-4.2
QMAKE_LFLAGS_RELEASE = -L/opt/local/lib -arch x86_64  -Xarch_x86_64
QMAKE_CFLAGS_RELEASE = -pipe -O2 -arch x86_64  -Xarch_x86_64 -I/opt/local/include
QMAKE_CXXFLAGS_RELEASE = -pipe -O2 -arch x86_64 -Xarch_x86_64 -I/opt/local/include

Save and go!

  Read more

Get obconf running on openbox 3.5

Published May 18, 2012

Current stable release of obconf, 2.0.3, doesn't work with the last openbox-3.5.

Let's see how to get it working:

  1. Download from the current git repository:
    git clone git://git.openbox.org/dana/obconf obconf
  2. Apply this patch to obconf/src/preview.c :
    https://github.com/claudiodangelis/scripts/blob/master/openbox/obconf-openbox-3.5.patch
    diff --git a/obconf/src/preview.c b/obconf2/src/preview.c
    index 320e7ac..a82cf15 100644
    --- a/obconf/src/preview.c
    +++ b/obconf2/src/preview.c
    @@ -327,28 +327,28 @@ static GdkPixbuf* preview_window(RrTheme *theme, const gchar *titlelayout,
                 switch (*layout) {
                 case 'D':
                     a = focus ?
    -                    theme->btn_desk->a_focused_unpressed :
    -                    theme->btn_desk->a_unfocused_unpressed;
    +                    theme->a_focused_unpressed_desk :
    +                    theme->a_unfocused_unpressed_desk;
                     break;
                 case 'S':
                     a = focus ?
    -                    theme->btn_shade->a_focused_unpressed :
    -                    theme->btn_shade->a_unfocused_unpressed;
    +                    theme->a_focused_unpressed_shade :
    +                    theme->a_unfocused_unpressed_shade;
                     break;
                 case 'I':
                     a = focus ?
    -                    theme->btn_iconify->a_focused_unpressed :
    -                    theme->btn_iconify->a_unfocused_unpressed;
    +                    theme->a_focused_unpressed_iconify :
    +                    theme->a_unfocused_unpressed_iconify;
                     break;
                 case 'M':
                     a = focus ?
    -                    theme->btn_max->a_focused_unpressed :
    -                    theme->btn_max->a_unfocused_unpressed;
    +                    theme->a_focused_unpressed_max :
    +                    theme->a_unfocused_unpressed_max;
                     break;
                 case 'C':
                     a = focus ?
    -                    theme->btn_close->a_focused_unpressed :
    -                    theme->btn_close->a_unfocused_unpressed;
    +                    theme->a_focused_unpressed_close :
    +                    theme->a_unfocused_unpressed_close;
                     break;
                 default:
                     continue;

    alternatively, download already preview.c.patched.
    (remember to rename it "preview.c" and put it into "src" directory!)

  3. Run:
    ./bootstrap

    If you get an aclocal error, edit ./bootstrap and replace

    export WANT_AUTOMAKE=1.9

    with your current aclocal version. (It should work with aclocal>1.9, 1.11 tested)

  4. Run:
    ./configure
    make
    sudo make install
    
  5. Enjoy your working obconf </ol>

  Read more