So way back in 2009, I got workrave compiling somewhat on OS X. Due to a recent request from someone who stumbled across my old post, I decided to give it another try. It is doable, although a bit clunky.

Outside of mostly installing pre-requisites I had to edit 3 files to get everything to compile cleanly and run. These were configure, ./backend/src/Makefile, and ./frontend/common/src/x11/Makefile. I could submit patches, but honestly, I'm not sure exactly what changes need to be made to get the Makefiles to generate properly.

It would be great if the project devs would put in the required changes for the Darwin platform, so that the makefile generate properly for the platform and the only thing really required is installing the dependencies.

Sean


------------------------

Install/Upgrade Xcode: 
https://developer.apple.com/xcode/downloads/
run 'xcode-select —install’ to install the CLI tools
Install/Upgrade XQuartz: http://xquartz.macosforge.org/landing/
Install Homebrew: http://brew.sh/

brew update
brew install gtk+ gtkmm gettext automake autoconf git python wget
wget https://bootstrap.pypa.io/get-pip.py
python get-pip.py
pip install cheetah
git clone git@github.com:rcaelers/workrave.git
cd workrave
#This gets autopoint into the path
export PATH=$PATH:/usr/local/Cellar/gettext/0.18.3.2/bin/
./autogen.sh
export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig:/opt/X11/lib/pkgconfig”

vi ./configure
  MODIFY THIS LINE TO LOOK LIKE THIS:
    DEFS="-DHAVE_CONFIG_H -D_DARWIN_C_SOURCE"

./configure

vi ./backend/src/Makefile
  MODIFY THIS LINE TO LOOK LIKE THIS:
    SUBDIRS = unix win32

vi ./frontend/common/src/x11/Makefile
  MODIFY THIS LINE TO LOOK LIKE THIS:
    libworkrave_frontend_common_x11_la_CXXFLAGS = \
          -DWORKRAVE_PKGDATADIR="\"${pkgdatadir}\"" \
          -D_XOPEN_SOURCE=600 \
          -W -I$(top_srcdir)/frontend/common/src \
          -I$(top_srcdir)/frontend/common/include \
          -I$(top_srcdir)/common/include -I$(top_srcdir)/backend/include -I/opt/X11/include..

./make install

Launch XQuartz

/usr/local/bin/workrave 


----------------------------------------------------------------------------------------------------------
Sean P. Kane                                                     spkane00@gmail.com
----------------------------------------------------------------------------------------------------------