aboutsummaryrefslogtreecommitdiff
path: root/print
diff options
context:
space:
mode:
Diffstat (limited to 'print')
-rw-r--r--print/Makefile1
-rw-r--r--print/cups-pstoraster/Makefile51
-rw-r--r--print/cups-pstoraster/distinfo1
-rw-r--r--print/cups-pstoraster/files/patch-lib:gs_res.ps13
-rw-r--r--print/cups-pstoraster/files/patch-src:genarch.c34
-rw-r--r--print/cups-pstoraster/pkg-comment1
-rw-r--r--print/cups-pstoraster/pkg-descr12
-rw-r--r--print/cups-pstoraster/pkg-plist3
8 files changed, 116 insertions, 0 deletions
diff --git a/print/Makefile b/print/Makefile
index e5a1642000fe..5f4b39bffb3f 100644
--- a/print/Makefile
+++ b/print/Makefile
@@ -39,6 +39,7 @@
SUBDIR += cups
SUBDIR += cups-base
SUBDIR += cups-lpr
+ SUBDIR += cups-pstoraster
SUBDIR += detex
SUBDIR += dvi2tty
SUBDIR += dvi2xx
diff --git a/print/cups-pstoraster/Makefile b/print/cups-pstoraster/Makefile
new file mode 100644
index 000000000000..8b9c8d3ff85b
--- /dev/null
+++ b/print/cups-pstoraster/Makefile
@@ -0,0 +1,51 @@
+# New ports collection makefile for: cups-pstoraster
+# Date created: Jul 13 2002
+# Whom: ports@FreeBSD.org
+#
+# $FreeBSD$
+#
+
+PORTNAME= cups-pstoraster
+PORTVERSION= 7.05.3
+CATEGORIES= print
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
+ ftp://ftp.easysw.com/pub/ghostscript/
+MASTER_SITE_SUBDIR= espgs
+DISTNAME= espgs-${PORTVERSION}-source
+
+MAINTAINER= ports@geeksrus.net
+
+LIB_DEPENDS= cups.2:${PORTSDIR}/print/cups-base
+RUN_DEPENDS= ${LOCALBASE}/share/ghostscript/fonts/fonts.scale:${PORTSDIR}/print/ghostscript-gnu
+
+WRKSRC= ${WRKDIR}/espgs-${PORTVERSION}
+
+USE_BZIP2= yes
+USE_GMAKE= yes
+GNU_CONFIGURE= yes
+CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib"
+CONFIGURE_ARGS= --without-x --without-ijs --without-gimp-print \
+ --with-drivers=cups --with-gs=espgs \
+ --with-fontpath=${LOCALBASE}/share/ghostscript/fonts \
+ --enable-compiled-inits
+
+USE_REINPLACE= yes
+
+post-patch:
+ ${REINPLACE_CMD} -e 's|%%DATADIR%%|${LOCALBASE}/share/ghostscript|g' \
+ ${WRKSRC}/lib/gs_res.ps
+
+pre-build:
+ ${MKDIR} ${WRKSRC}/bin
+ ${MKDIR} ${WRKSRC}/obj
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/bin/espgs ${PREFIX}/bin
+ ${INSTALL_DATA} ${WRKSRC}/pstoraster/pstoraster.convs \
+ ${PREFIX}/etc/cups
+ ${INSTALL_SCRIPT} ${WRKSRC}/pstoraster/pstoraster \
+ ${PREFIX}/libexec/cups/filter
+
+.include <bsd.port.mk>
diff --git a/print/cups-pstoraster/distinfo b/print/cups-pstoraster/distinfo
new file mode 100644
index 000000000000..f7bfdb32526c
--- /dev/null
+++ b/print/cups-pstoraster/distinfo
@@ -0,0 +1 @@
+MD5 (espgs-7.05.3-source.tar.bz2) = e21697ae9c4aa82d16e48f202ba6f69c
diff --git a/print/cups-pstoraster/files/patch-lib:gs_res.ps b/print/cups-pstoraster/files/patch-lib:gs_res.ps
new file mode 100644
index 000000000000..2e5169720649
--- /dev/null
+++ b/print/cups-pstoraster/files/patch-lib:gs_res.ps
@@ -0,0 +1,13 @@
+--- lib/gs_res.ps.orig Mon Jul 16 01:09:41 2001
++++ lib/gs_res.ps Fri Feb 8 07:12:09 2002
+@@ -248,8 +248,8 @@
+ /pssystemparams 10 dict readonly def
+ } if
+ pssystemparams begin
+- /FontResourceDir (/Resource/Font/) readonly .forcedef % pssys'params is r-o
+- /GenericResourceDir (/Resource/) readonly .forcedef % pssys'params is r-o
++ /FontResourceDir (%%DATADIR%%/Resource/Font/) readonly .forcedef % pssys'params is r-o
++ /GenericResourceDir (%%DATADIR%%/Resource/) readonly .forcedef % pssys'params is r-o
+ /GenericResourcePathSep (/) readonly .forcedef % pssys'params is r-o
+ end
+ end
diff --git a/print/cups-pstoraster/files/patch-src:genarch.c b/print/cups-pstoraster/files/patch-src:genarch.c
new file mode 100644
index 000000000000..a015e69e758a
--- /dev/null
+++ b/print/cups-pstoraster/files/patch-src:genarch.c
@@ -0,0 +1,34 @@
+--- src/genarch.c.orig Tue Jun 5 15:38:57 2001
++++ src/genarch.c Wed Jun 20 04:17:42 2001
+@@ -41,6 +41,7 @@
+ fprintf(f, "\n\t /* ---------------- %s ---------------- */\n\n", str);
+ }
+
++#ifndef __FreeBSD__
+ private clock_t
+ time_clear(char *buf, int bsize, int nreps)
+ {
+@@ -51,6 +52,7 @@
+ memset(buf, 0, bsize);
+ return clock() - t;
+ }
++#endif /* __FreeBSD__ */
+
+ private void
+ define(FILE *f, const char *str)
+@@ -181,6 +183,7 @@
+ fprintf(f, "((unsigned long)~0L + (unsigned long)0)\n");
+ #undef PRINT_MAX
+
++#ifndef __FreeBSD__
+ section(f, "Cache sizes");
+
+ /*
+@@ -241,6 +244,7 @@
+ }
+ define_int(f, "ARCH_CACHE2_SIZE", bsize >> 1);
+ }
++#endif /* __FreeBSD__ */
+
+ section(f, "Miscellaneous");
+
diff --git a/print/cups-pstoraster/pkg-comment b/print/cups-pstoraster/pkg-comment
new file mode 100644
index 000000000000..8750b08a14ec
--- /dev/null
+++ b/print/cups-pstoraster/pkg-comment
@@ -0,0 +1 @@
+GNU Postscript interpreter for CUPS printing to non-PS printers
diff --git a/print/cups-pstoraster/pkg-descr b/print/cups-pstoraster/pkg-descr
new file mode 100644
index 000000000000..bfcd7b6dda14
--- /dev/null
+++ b/print/cups-pstoraster/pkg-descr
@@ -0,0 +1,12 @@
+Ghostscript is the well-known PostScript interpreter which is available for
+all common and most esoteric platforms and supports many different printers
+and some displays.
+
+Versions entitled "GNU Ghostscript" are distributed with the GNU General
+Public License, which allows free use, and free copying and redistribution
+under certain conditions (including, in some cases, commercial distribution).
+
+This distribution is based on GNU Ghostscript and provides the "driver" for
+CUPS that supports non-PostScript printer drivers within CUPS.
+
+WWW: http://www.cups.org/ghostscript.html
diff --git a/print/cups-pstoraster/pkg-plist b/print/cups-pstoraster/pkg-plist
new file mode 100644
index 000000000000..d8360f63569e
--- /dev/null
+++ b/print/cups-pstoraster/pkg-plist
@@ -0,0 +1,3 @@
+bin/espgs
+etc/cups/pstoraster.convs
+libexec/cups/filter/pstoraster