I just added a batch mode "gui" for PCB, for web servers and scripting. Use --with-gui=batch to get it.
However, it turns out that the png HID pulls in the X11 libraries anyway (to get Xpm support). Any way we can disable that? $ ./pcb-bin Entering pcb version 1.99s batch mode. See http://pcb.sourceforge.net for project information pcb> info No PCB loaded. pcb> l control.pcb control.pcb> info Filename: control.pcb Size: 7000 x 3500 mils, 177.8 x 88.9 mm #------- s solder #------- s GND-sldr #------- s Vcc-sldr -#------ c component -#------ c GND-comp -#------ c Vcc-comp --#----- - unused ---#---- - unused control.pcb>