I'm not sure if this is still needed for FreeBSD-4.5 ~jhs/src/bsd/fixes/FreeBSD/ports/jhs/print/ghostscript-gnu/patches/patch-zb # ~jhs/src/bsd/fixes/FreeBSD/ports/jhs/print/ghostscript5/patches/patch-zb # # # (not applied direct to unix-gcc.mak as that is built by tar_cat) # *** gcc-head.mak.old Mon Oct 18 13:47:38 1999 # --- gcc-head.mak Mon Oct 18 13:49:27 1999 # *************** # *** 90,96 **** # # No execution time or space penalty. # # #GENOPT=-DDEBUG # ! GENOPT= # # # Define the name of the executable file. # # --- 90,97 ---- # # No execution time or space penalty. # # #GENOPT=-DDEBUG # ! #GENOPT= # ! GENOPT=-DA4 -Ddebug_a4_via_unix_gcc_mak # # # Define the name of the executable file. # # *** gdevdjet.c.orig Fri Dec 18 01:56:19 1998 # --- gdevdjet.c Tue Oct 19 12:05:56 1999 # *************** # *** 311,338 **** # { return hpjet_print_page(pdev, prn_stream, LJ2p, 300, mode_2p, # "\033*r0F\033*b2M"); # } # /* All LaserJet series IIIs (III,IIId,IIIp,IIIsi) compress (modes 2&3) */ # /* They also need their coordinate system translated slightly. */ # ! private int # ljet3_print_page(gx_device_printer *pdev, FILE *prn_stream) # ! { return hpjet_print_page(pdev, prn_stream, LJ3, 300, mode_3, # ! "\033&l-180u36Z\033*r0F"); # } # /* LaserJet IIId is same as LaserJet III, except for duplex */ # ! private int # ljet3d_print_page(gx_device_printer *pdev, FILE *prn_stream) # ! { return hpjet_print_page(pdev, prn_stream, LJ3D, 300, mode_3, # ! "\033&l-180u36Z\033*r0F"); # } # /* LaserJet 4 series compresses, and it needs a special sequence to */ # /* allow it to specify coordinates at 600 dpi. */ # /* It too needs its coordinate system translated slightly. */ # ! private int # ljet4_print_page(gx_device_printer *pdev, FILE *prn_stream) # { int dots_per_inch = (int)pdev->y_pixels_per_inch; # char real_init[60]; # # ! sprintf(real_init, "\033&l-180u36Z\033*r0F\033&u%dD", dots_per_inch); # return hpjet_print_page(pdev, prn_stream, LJ4, dots_per_inch, mode_3, # real_init); # } # --- 327,353 ---- # { return hpjet_print_page(pdev, prn_stream, LJ2p, 300, mode_2p, # "\033*r0F\033*b2M"); # } # + # /* All LaserJet series IIIs (III,IIId,IIIp,IIIsi) compress (modes 2&3) */ # /* They also need their coordinate system translated slightly. */ # ! private int /* Used by -sDEVICE=ljet3 */ # ljet3_print_page(gx_device_printer *pdev, FILE *prn_stream) # ! { return hpjet_print_page(pdev, prn_stream, LJ3, 300, mode_3, init_str ); # } # /* LaserJet IIId is same as LaserJet III, except for duplex */ # ! private int /* Used by something other than -sDEVICE=ljet3 */ # ljet3d_print_page(gx_device_printer *pdev, FILE *prn_stream) # ! { return hpjet_print_page(pdev, prn_stream, LJ3D, 300, mode_3, init_str ); # } # /* LaserJet 4 series compresses, and it needs a special sequence to */ # /* allow it to specify coordinates at 600 dpi. */ # /* It too needs its coordinate system translated slightly. */ # ! private int /* Used by something other than -sDEVICE=ljet3 */ # ljet4_print_page(gx_device_printer *pdev, FILE *prn_stream) # { int dots_per_inch = (int)pdev->y_pixels_per_inch; # char real_init[60]; # # ! sprintf(real_init, "%s\033&u%dD", init_str, dots_per_inch); # return hpjet_print_page(pdev, prn_stream, LJ4, dots_per_inch, mode_3, # real_init); # } #--------------------- ~jhs/src/bsd/fixes/FreeBSD/ports/jhs/print/ghostscript55/patches/patch-zb (same functionality as ghostscript5/patches/patch-zb, but that didnt apply cleanly, so this is just a rebuild of same patch) *** gdevdjet.c.orig Tue Oct 19 13:33:43 1999 --- gdevdjet.c Tue Oct 19 13:43:45 1999 *************** *** 335,363 **** } /* All LaserJet series IIIs (III,IIId,IIIp,IIIsi) compress (modes 2&3) */ /* They also need their coordinate system translated slightly. */ ! private int ljet3_print_page(gx_device_printer * pdev, FILE * prn_stream) { ! return hpjet_print_page(pdev, prn_stream, LJ3, 300, mode_3, ! "\033&l-180u36Z\033*r0F"); } /* LaserJet IIId is same as LaserJet III, except for duplex */ ! private int ljet3d_print_page(gx_device_printer * pdev, FILE * prn_stream) { ! return hpjet_print_page(pdev, prn_stream, LJ3D, 300, mode_3, ! "\033&l-180u36Z\033*r0F"); } /* LaserJet 4 series compresses, and it needs a special sequence to */ /* allow it to specify coordinates at 600 dpi. */ /* It too needs its coordinate system translated slightly. */ ! private int ljet4_print_page(gx_device_printer * pdev, FILE * prn_stream) { int dots_per_inch = (int)pdev->y_pixels_per_inch; char real_init[60]; ! sprintf(real_init, "\033&l-180u36Z\033*r0F\033&u%dD", dots_per_inch); return hpjet_print_page(pdev, prn_stream, LJ4, dots_per_inch, mode_3, real_init); } --- 335,361 ---- } /* All LaserJet series IIIs (III,IIId,IIIp,IIIsi) compress (modes 2&3) */ /* They also need their coordinate system translated slightly. */ ! private int /* Used by -sDEVICE=ljet3 */ ljet3_print_page(gx_device_printer * pdev, FILE * prn_stream) { ! return hpjet_print_page(pdev, prn_stream, LJ3, 300, mode_3, init_str); } /* LaserJet IIId is same as LaserJet III, except for duplex */ ! private int /* Used by something other than -sDEVICE=ljet3 */ ljet3d_print_page(gx_device_printer * pdev, FILE * prn_stream) { ! return hpjet_print_page(pdev, prn_stream, LJ3D, 300, mode_3, init_str ); } /* LaserJet 4 series compresses, and it needs a special sequence to */ /* allow it to specify coordinates at 600 dpi. */ /* It too needs its coordinate system translated slightly. */ ! private int /* Used by something other than -sDEVICE=ljet3 */ ljet4_print_page(gx_device_printer * pdev, FILE * prn_stream) { int dots_per_inch = (int)pdev->y_pixels_per_inch; char real_init[60]; ! sprintf(real_init, "%s\033&u%dD", init_str, dots_per_inch); return hpjet_print_page(pdev, prn_stream, LJ4, dots_per_inch, mode_3, real_init); }