version: 2.1.0 or snapshot
source: libharu.org
libHaru is not quite a complete PDF library, but it's still very functional, and features are added regularly (as developer time permits). Get a snapshot of the source – "stable" releases are infrequent, but the snapshots are still generally quite stable.
===== Leopard =====
In the libharu source:
<code>
export MACOSX_DEPLOYMENT_TARGET=10.5
./configure –disable-dependency-tracking \
CFLAGS="-Os -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
LDFLAGS="-arch i386 -arch x86_64 -arch ppc -arch ppc64"
make
sudo make install
</code>
===== Tiger =====
In the libharu source:
<code>
export MACOSX_DEPLOYMENT_TARGET=10.4
./configure –disable-dependency-tracking \
CFLAGS="-Os -arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk" \
LDFLAGS="-arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk"
make
sudo make install
</code>
===== Leopard =====
In the libharu source:
<code>
./configure –disable-dependency-tracking CFLAGS=-Os
make
sudo make install
</code>
===== With Frameworks =====
To use my UnixImageIO framework for libpng, add the following to the configure step above:
<code>
–with-png=/Library/Frameworks/UnixImageIO.framework/unix
</code>