Build Scribus 1.4 svn on Ubuntu Lucid Linux

Make sure these libraries are installed

aptitude install subversion cmake libcups2-dev libtiff4-dev python2.6-dev g++ qt4-qmake libqt4-dev libxml2-dev libcairo2-dev libboost-dev libaspell-dev liblcms-dev

Build PoDoFo

dp=/opt/podofo
svn co https://podofo.svn.sourceforge.net/svnroot/podofo/podofo/trunk $dp
vi $dp/CMakeLists.txt
#append the following two lines:

SET_TARGET_PROPERTIES(podofo_static PROPERTIES 
  COMPILE_FLAGS "-DBUILDING_PODOFO -fPIC" )

mkdir -p $dp/podofo-build
cd $dp/podofo-build
cmake ..
make
make install

Now get Scribus:

ds=/opt/scribus

Building the first time:

svn co svn://scribus.net/branches/Version135/Scribus $ds
mkdir -p $ds/builddir

Subsequent times:

svn up $ds

Finally build Scribus:

cd $ds/builddir
cmake .. -DCMAKE_INSTALL_PREFIX:PATH=$ds
make
make install
ln -sfn /opt/scribus/builddir/scribus/scribus /usr/bin/

Used this link for PoDoFo: http://boyden.us/scribus.html
or http://podofo.sourceforge.net/download.html

Official scribus build info: http://wiki.scribus.net/canvas/Official:Compile_with_CMake