Bug 21896

Summary: Mini-HOWTO for stp driver
Product: Documentation Reporter: Philipp Huber <uebs>
Component: Books & ArticlesAssignee: freebsd-doc (Nobody) <doc>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Philipp Huber 2000-10-10 19:40:01 UTC
this is a mini howto on how to use the stp driver with the ghostscript6
port for freebsd.

----------------------------------------------------------------------------

stp printing with FreeBSD
Mini-HOWTO
=========================

by Philipp Huber <uebs@gmx.at> (C) 2000


The Ghostcsript6 Port of FreeBSD does not include the stp driver, therefore it's
necesseray to do some changes by hand :)

First of all, the Ghostscript6 Ports has to be downloaded, extracted and
patching must be done.

	cd /usr/ports/print/ghostscript6
	make patch
	
After this, download print-3.1.9 (or another version, i did it with this
one) from
	
	http://download.sourceforge.net/gimp-print/print-3.1.9.tar.gz

Place the file into the workdir of the ghostscript6 port and unzip it:

	cp print-3.1.9.tar.gz /usr/ports/print/ghostscript6/work/gs6.01
	cd /usr/ports/print/ghostscript6/work/gs6.01
	tar xzf print-3.1.9.tar.gz
	
Follow the directions as described in "Ghost/README":
First, copy all *.c and *.h files into the ghostscript src directory.

	cd print-3.1.9/Ghost
	cp *.c ../../src/
	cp *.h ../../src/
	
Edit "contrib.mak" in the src directory of ghosts
cript (where the *.c and
*.h files where copied to in the previous step). Add the contents of the
file "contrib.mak.addon" in the "print-3.1.9/Ghost" directory at the end of the
"contrib.mak" file.
The next step is to add "$(DD)stp.dev to the line "DEVICE_DEVS6=" in
"unix-gcc.mak".

After all these changes have been made, do a

	cd /usr/ports/print/ghostscript6 ; make install

All should compile fine, and after that you have ghostscript6 with the
stp driver compiled in. Run "gs -h" to be absolutely sure :)

Don't forget to update or adjust your filters! 
See print-3.1.9/Ghost/README for further details and examples.


All this should work with NetBSD and OpenBSD as well, but i didn't test
it anyway.

If you have any questions or comments, please mail me: uebs@gmx.at

Good luck and have fun :)

-----------------------------------------------------------------------------
Comment 1 Murray Stokely freebsd_committer freebsd_triage 2001-09-02 13:08:22 UTC
State Changed
From-To: open->feedback

I'd like to see what the originator thinks about adding a Makefile 
knob to the ghostscript port for this.
Comment 2 murray.stokely 2001-09-02 13:13:11 UTC
  Is there any way that we can add a knob to the Makefile for the
ghostscript port to include this driver?  Your howto is nice, but it
seems like the procedure described should be automated with our ports
infrastructure.  Are you still using ghostscript/stp on FreeBSD?

       Thanks,
	- Murray
Comment 3 Murray Stokely freebsd_committer freebsd_triage 2001-09-02 21:57:09 UTC
State Changed
From-To: feedback->closed

The ghostscript and gimp-print ports should (and do) hide the 
complexity from the user.  If you would like to add a small paragraph 
to our printing chapter in the handbook, about how to install these 
ports and what types of printers they benefit, it would be much 
appreciated.  Thanks!