Dirty hack to get cairo compiled universally

Harry van der Wolf hvdwolf at gmail.com
Fri Aug 1 13:13:59 PDT 2008

To get cairo compiled in macports using the correct SDK I used an extremely
dirty hack (See attached Portfile).
The reason for this is that enabling '-isysroot $SDK_path' treats all other
includes as SDK relative path. I don't know how to get around that, so I
used a dirty hack (copied from http://dev.ultravelours.com/ports/enblend/)
and symlinked the '/opt' directory (default MacPorts installation prefix is
the standard '/opt/local') from the SDK root directory (and deleted it later
in the process). You can find that in the attached portfile.

See for the explanation at:

The only other way to get cairo compiled universally is to change the one
line in the Portfile. It's the line:
set my_cflags "${configure.cflags} -isysroot ${sysroot} ${my_arch_flag}"


set my_cflags "${configure.cflags} ${my_arch_flag}"

That works too and is much simpler, but it does not give you the possibility
to choose your SDK (however when compiling i386 and ppc, the MacOSX10.4u.sdk
is always used, or isn't it)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-users/attachments/20080801/4aaac996/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Portfile
Type: application/octet-stream
Size: 6121 bytes
Desc: not available
Url : http://lists.macosforge.org/pipermail/macports-users/attachments/20080801/4aaac996/attachment.obj 

More information about the macports-users mailing list