10 4 / 2012

Right now, I’m trying to get gnome-chemistry-utils to install. Of course there’s no macport, so I’m currently in the ./configure -> install dependency via macports endless cycle.

At least it’s got screenshots that show the simple line drawings I want, and it was updated in 2012. I’m keeping my fingers crossed.

Fun things so far: requires goffice 0.9.0, macport is 0.8.17. Oh boy.

Fixed goffice and submitted the new Portfile to macports! Needed to provide a #define type as a CFLAG to configure.

Have to manually pass goffice paths to gnome-chemistry-utils configure: goffice_CFLAGS=-I/usr/local/include goffice_LIBS=-L/usr/local/lib

Next missing dependency is chemical-mime-data. It needs a path to an SVG converter (librsvg from macports): RSVG=/opt/local/bin/rsvg-convert

rsvg-convert syntax is different from whatever rsvg they used. Fixed syntax in Makefile but PNGs still didn’t get generated. Copied their code and just made a bash script to generate the PNGs. Thankfully, made a pkgconfig. But I had to add /usr/local/share/pkgconfig to my PKG_CONFIG_PATH. And remember how to reload my profile!

Next dependency: bodr. Apparently it stands for Blue Obelisk Data Repository. That’s different. Painless autoconf install, pkgconfig, etc.

I should just make a cmake project.

And…the thing depends on openbabel. Which is in itself a molecule builder. Which has a macport. Which means I probably could have just done everything I wanted to with openbabel. Macport built without issues. So far the only thing I’m having to pass manually is goffice.

Next dep is glx.h, which may be another thing to pass manually. Have to check ./configure -h again.

./configure goffice_CFLAGS=-I/usr/local/include goffice_LIBS=-L/usr/local/lib CPPFLAGS=-I/opt/local/include configures but make fails, looks like it isn’t including cairo headers properly.

Looks like it’s not finding a single library unless I tell it exactly where it is, and I have no desire to pass 15 library paths to configure. Going to let this rest and try making a CMake project. I should be able to acquire find scripts for at least some of these.