--- Makefile.PL.orig 2021-02-15 17:30:01.000000000 -0800 +++ Makefile.PL 2021-12-22 12:23:56.000000000 -0800 @@ -15,22 +15,22 @@ # separated lists my %Arg = ( - # X11 library directories - XDIR => '/usr/openwin/lib,/usr/X11/lib,/usr/X11R6/lib', + # X11 library directories + XDIR => '__PREFIX__/lib', - # X11 libraries - XLIB => 'X11', + # X11 libraries + XLIB => 'X11', - # where cpgplot.h should be - IDIR => undef, + # where cpgplot.h should be + IDIR => '__PREFIX__/include', - # where libpgplot.a should be - LDIR => undef, - - # extra libraries and directories - EXLIB => join(',', grep check_lib(lib => $_), qw(png12 png16 z)), - EXDIR => '/Applications/PDL/pgplot,/usr/local/lib', - ); + # where libpgplot.a should be + LDIR => '__PREFIX__/lib', + + # extra libraries and directories + EXLIB => 'png,z', + EXDIR => '__PREFIX__/lib', + ); # Get user preferences my @NARGV;