[patch] devel/doc++ (3.4.10)

MFM rrghphar at bigpond.net.au
Sat Sep 24 01:31:00 PDT 2005

To whom it may concern,

as part of my interest in OSG, I have found that the OSG developers have 
chosen to use an obscure documentation tool vaguely (but not quite) like 
doxygen, called doc++.

This tool appears in the BSD ports system as devel/doc++, but 
development of doc++ seems to have stopped, and the port is marked as 

Attached is a patchfile to clean up the building of doc++, tested on 
i386 5.4-RELEASE.

In summary, I have made the following changes:

(1) remove src/getopt.h and src/getopt*.c - these appeared to be an 
early copy of the GNU getopt routines, and are call-compatible with the 
getopt now provided with 5.4-RELEASE;

(2) modify C++ header inclusions to remove .h from standard headers such 
as iostream and fstream, and also add appropriate namespace qualifiers 
where needed by the compiler;

I am not sure of the precise format required here - I have generated the 
.patch file such that "patch -E <doc++-3.4.10.patch" in the parent of a 
clean doc++-3.4.10 directory applies the changes correctly on my system.

In other words, place the file such that "doc++-3.4.10/" and 
"doc++-3.4.10.patch" are in the same directory, cd to that directory and 
the command above should work.  If you need the patches generated in a 
different format/layout, I would be happy to do so.

Matthew May

More information about the freebsd-ports mailing list