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:
http://lists.apple.com/archives/darwin-dev/2006/Apr/msg00042.html


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}"

to

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)


Harry

Attachment: Portfile
Description: Binary data

_______________________________________________
macports-users mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users

Reply via email to