The error ist that shared_library_filename is nowhere defined. As I
can guess from the source this function should look like:
def shared_library_filename(lib):
return 'lib'+lib+'.so'
For a workaround use this:
...
'libraries': ['pgs','ppc','X11'],
'library_dirs': ['/usr/X11R6/lib']
..
because you want -L/usr/X11R6/lib -lX11.
Bastian Kleineidam