aboutsummaryrefslogtreecommitdiff
path: root/print/ghostscript7/files
diff options
context:
space:
mode:
authorChristian Weisgerber <naddy@FreeBSD.org>2002-08-20 00:15:59 +0000
committerChristian Weisgerber <naddy@FreeBSD.org>2002-08-20 00:15:59 +0000
commit45008cf7723cb74f5a475b7a1a425450feca4417 (patch)
tree783664a2004cca987847313acb94283c8a5b32ce /print/ghostscript7/files
parent4e99a0223e58b5105fb7ff12ebda4ddcd5fa232c (diff)
Add back Gimp-Print (stp) driver support.
PR: 41800 Submitted by: Ports Fury
Notes
Notes: svn path=/head/; revision=64677
Diffstat (limited to 'print/ghostscript7/files')
-rw-r--r--print/ghostscript7/files/patch-src:unix-gcc.mak4
-rw-r--r--print/ghostscript7/files/stp.contrib.mak14
2 files changed, 16 insertions, 2 deletions
diff --git a/print/ghostscript7/files/patch-src:unix-gcc.mak b/print/ghostscript7/files/patch-src:unix-gcc.mak
index c80567c0e983..7839a1bd59f8 100644
--- a/print/ghostscript7/files/patch-src:unix-gcc.mak
+++ b/print/ghostscript7/files/patch-src:unix-gcc.mak
@@ -93,7 +93,7 @@
# specific stuff that <math.h> typically needs; nevertheless, we expect
# gcc to accept ANSI-style function prototypes and function definitions.
-XCFLAGS=
-+XCFLAGS+=-I${LOCALBASE}/include
++XCFLAGS+=-I${.CURDIR}/gimp-print -I${LOCALBASE}/include
CFLAGS=$(CFLAGS_STANDARD) $(GCFLAGS) $(XCFLAGS)
@@ -102,7 +102,7 @@
# giving the full path names of the shared library directories.
# XLDFLAGS can be set from the command line.
-XLDFLAGS=
-+XLDFLAGS=-L${LOCALBASE}/lib
++XLDFLAGS=-L${.CURDIR}/gimp-print -L${LOCALBASE}/lib
LDFLAGS=$(XLDFLAGS)
diff --git a/print/ghostscript7/files/stp.contrib.mak b/print/ghostscript7/files/stp.contrib.mak
new file mode 100644
index 000000000000..862d329324ee
--- /dev/null
+++ b/print/ghostscript7/files/stp.contrib.mak
@@ -0,0 +1,14 @@
+### --------------- Gimp-Print/stp Driver ---------------------------- ###
+### Be careful to add the exact contents of this file; cut and paste ###
+### may corrupt the file and cause mysterious make errors ###
+
+stp_=$(GLOBJ)gdevstp.$(OBJ)
+
+STPLIB=gimpprint
+
+$(DD)stp.dev: $(stp_) $(DD)page.dev
+ $(SETPDEV) $(DD)stp $(stp_)
+ $(ADDMOD) $(DD)stp -lib $(STPLIB)
+
+$(GLOBJ)gdevstp.$(OBJ) : $(GLSRC)gdevstp.c $(PDEVH)
+ $(GLCC) $(GLO_)gdevstp.$(OBJ) $(C_) $(GLSRC)gdevstp.c