pdewacht / brlaser

Brother laser printer driver
GNU General Public License v2.0
576 stars 109 forks source link

Compiling for ancient CUPS (v1.1) #123

Open evanmiller opened 3 years ago

evanmiller commented 3 years ago

As part of a retro computing project, I'm successfully using this driver to print to a Brother HL-L2300D from an ancient G3 iMac running OS X 10.4 Tiger. Because the OS only supports CUPS version 1.1, I've made a small number of changes to the source code to get it to compile and run using the old CUPS framework. (Never mind the effort taken to get a C++11 compiler running on PowerPC!) A few of the header fields, including cupsNumColors and cupsPageSizeName, were introduced in v1.2, and so I've had to introduce workaround logic in the code base. Basically I have gotten everything to work except for the "Toner Saver" mode, but I have some ideas about that too.

If there's any interest out there, I will be happy to open a pull request here, or publish a fork with my (forward-compatible) changes – about 20 lines in total, plus the changes in #122. I'm not sure this will be useful to anyone, since printing from 20-year-old computers is not exactly a mainstream activity, but this seemed like the appropriate place to leave a small note.

evanmiller commented 2 years ago

I have contributed the above-mentioned patch to MacPorts. It can be found here:

https://github.com/macports/macports-ports/blob/master/print/brlaser/files/patch-cups-1.1.diff