summaryrefslogtreecommitdiff
path: root/print/cups-pstoraster
diff options
context:
space:
mode:
authorAlan Eldridge <alane@FreeBSD.org>2002-07-25 03:00:17 +0000
committerAlan Eldridge <alane@FreeBSD.org>2002-07-25 03:00:17 +0000
commit722cdcf100fdaeebbb7025b44d52342879710897 (patch)
tree485d55510917d441364f8640a085a425ad3bcf6a /print/cups-pstoraster
parent1. Updated to 3.0.1. (diff)
New port: print/cups-pstoraster, a very limited version of easy software's
ghostscript customizations for print/cups-base. Only needed if you don't have a postscript printer. This is untested, as I have a postscript printer. Please if you are a target user, test this! Thanks to KATO for the skeleton of the port itself. PR: 40488 Submitted by: KATO Tsuguru <tkato@prontomail.com>
Notes
Notes: svn path=/head/; revision=63508
Diffstat (limited to 'print/cups-pstoraster')
-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
7 files changed, 115 insertions, 0 deletions
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