Once all the dependencies were installed i had no trouble getting it to build in scratchbox with a typical procedure (/configure && make stuff).