Trying to build gjdoc on Gentoo/FreeBSD, I found it fail because the makefile uses the "cp -u" command, that is not present in *BSD cp command. FreeBSD ports have a patch to change cp to gcp and then depend on GNU coreutils, but as that solution is suboptimal for us, I've prepared the attached patch. The configure checks if cp -u is supported; if it is not (on *BSD), it checks for the presence of rsync command (that also supports -u switch) and use that. It could probably be improved to check the presence of gcp or other commands that support a similar option; I've chosen rsync just because it's a system package in Gentoo and is thus always present on the system. HTH, Diego
Created attachment 12728 [details] gjdoc-0.7.7-gcp.patch