On Wed, Oct 15, 2014 at 3:05 PM, Papoj Thamjaroenporn <pt2277@...3110...> wrote:
Hi Michael,

I just copied and pasted my own instruction here. It’s already very similar to what’s on wiki and what Liam gave to you, but the configure process is a little different. I also want to clarify that this is for Inkscape 0.91, not 0.48. (The 0.91 is what you get from the trunk anyway). Let me know if it works!


Get the dependencies right


sudo port install gettext
sudo port install boost
sudo port install libsigcxx2
sudo port install cairo +quartz -x11
sudo port install cairomm +quartz -x11
sudo port install pango +quartz -x11
sudo port install pangomm +quartz -x11
sudo port install gdk-pixbuf2 -x11
sudo port install gtk2 +quartz -x11
sudo port install atkmm
sudo port install gtkmm +quartz -x11
sudo port install boehmgc gsl bzr lcms


OR
$ echo '+quartz -x11 +no_x11' | sudo tee '$LIBPREFIX/etc/macports/variants.conf'
$ sudo port install gettext boost libsigcxx2 gtkmm atkmm boehmgc gsl bzr lcms


Fetch Inkscape repo and build

mkdir Inkscape
cd Inkscape
bzr branch lp:inkscape trunk
mkdir trunk_build
cd trunk_build
../trunk/autogen.sh
../trunk/configure --prefix=YOUR_BUILD_DIRECTORY --disable-static --enable-shared CC="clang" CXX="clang++" CXXFLAGS="-std=c++11 -stdlib=libc++ -I/opt/local/include" CPPFLAGS="-I/opt/local/include -U__STRICT_ANSI__"

For debug, add -g in both flags. Make sure to change “debug=true” in .configure
 
For full debug, add '-g3 -O0' to CXXFLAGS and CFLAGS


make -j 4
make install
src/inkscape

OR
~$ bzr branch lp:inkscape inkscape-trunk
inkscape-trunk$ cd inkscape-trunk
inkscape-trunk$ ./autogen.sh
# The following line removes some redundancy because our install-am make target depends on the all-am target. This is not common to all projects.
inkscape-trunk$ mkdir build; (cd build; CC="clang" CXX="clang++" CXXFLAGS="-std=c++11 -stdlib=libc++" CPPFLAGS="-I$LIBPREFIX/include" ../configure --prefix=$HOME/inkscape-trunk/inst --enable-localinstall && make -j4 install)
inkscape-trunk$ build/src/inkscape
 

Warnings:
  • Fetch Inkscape source code directly from bzr.
  • Don’t forget “make install” or you will end up having weird errors like this
  • “make install” every time you create a new “build” directory

- You only need to run 'make install' once per $PREFIX
- $PREFIX is the place where 'make install' for inkscape puts files (you can control where make writes the files, but you will need to reconfigure and recompile to edit the actual load path: make install DESTDIR='/foo/bar')
- $LIBPREFIX is the location of the MacPorts install prefix — it's not always /opt/local