Apothecary building cairo on OSX

Hello.

I wanted to build cairo using apothecary on osx 10.9.5

it fails showing this error:

  CCLD     pkg-config
clang: error: no such file or directory: '/usr/local/lib/libiconv.dylib'
make[2]: *** [pkg-config] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

i find libiconv.2.dylib in /usr/local/lib/

not sure how to fix that.
is there a dependency missing in apothecary?
could one use libiconv.2.dylib?

thanks for advice.

cheers
inx

Do you have Xcode command line tools installed?

Yes. Command line tools are installed.

I see a libiconv.dylib in /usr/lib as a (indirect) symlink to libiconv.2.dylib in the same folder.

why is libiconv.dylib expected in /usr/local/lib anyway?

when configuring and making cairo directly in the folder it builds… seems to be connected to the script somehow?

ah. it is not cairo which fails to build but pkg-config…

pkg-config also fails when directly configuring and making it in the folder…

so it is not connected to the script

to be more exact:

what fails to link is pkg-configs internal glib, which somehow expects libiconv to be in /usr/local/lib.
i removed the --with-internal-glib flag when configuring pkg-config and could compile pkg-config.

to run into more problems when linking cairo. it seems that my macports installation gets used to link it together. parts of it is x86_64 only. so linking fails.