aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorasami <asami@FreeBSD.org>1996-11-02 20:12:52 +0800
committerasami <asami@FreeBSD.org>1996-11-02 20:12:52 +0800
commit5518f2719e402d05c09c716a096b13ad9143d2fc (patch)
tree661dc3aeb510234832f0686f54669ea76a00eb55
parentb554c4a37f7535bc37108ad57a7b94ad86e9afa2 (diff)
downloadfreebsd-ports-gnome-5518f2719e402d05c09c716a096b13ad9143d2fc.tar.gz
freebsd-ports-gnome-5518f2719e402d05c09c716a096b13ad9143d2fc.tar.zst
freebsd-ports-gnome-5518f2719e402d05c09c716a096b13ad9143d2fc.zip
Japanese ghostscirpt with vector font support.
Submitted by: Mita Yoshio <mita@jp.FreeBSD.org>
-rw-r--r--japanese/vfghostscript/Makefile129
-rw-r--r--japanese/vfghostscript/distinfo8
-rw-r--r--japanese/vfghostscript/files/Fontmap.diff198
-rw-r--r--japanese/vfghostscript/files/bjc600j.dif.patch15
-rw-r--r--japanese/vfghostscript/files/bjc600j.mak.patch17
-rw-r--r--japanese/vfghostscript/files/gdevep82.patch332
-rw-r--r--japanese/vfghostscript/files/patch-aa46
-rw-r--r--japanese/vfghostscript/files/patch-ab27
-rw-r--r--japanese/vfghostscript/files/patch-ac33
-rw-r--r--japanese/vfghostscript/files/patch-ad11
-rw-r--r--japanese/vfghostscript/files/printer.sh130
-rw-r--r--japanese/vfghostscript/files/unix-gcc.mak.patch93
-rw-r--r--japanese/vfghostscript/pkg-comment1
-rw-r--r--japanese/vfghostscript/pkg-descr39
-rw-r--r--japanese/vfghostscript/pkg-plist279
15 files changed, 1358 insertions, 0 deletions
diff --git a/japanese/vfghostscript/Makefile b/japanese/vfghostscript/Makefile
new file mode 100644
index 000000000000..f261aad920ef
--- /dev/null
+++ b/japanese/vfghostscript/Makefile
@@ -0,0 +1,129 @@
+# New ports collection makefile for: Japanese ghostscript + vector font library
+# Version required: 2.6.2
+# Date created: 14 May 1996
+# Whom: Mita Yoshio <mita@jp.FreeBSD.org>
+#
+# $Id$
+#
+
+DISTNAME= ghostscript2.6.2
+PKGNAME= jp-vfghostscript-2.6.2
+CATEGORIES+= japanese print
+MASTER_SITES= ftp://ftp.iis.u-tokyo.ac.jp/GNU/ \
+ ftp://ftp.ae.keio.ac.jp/pub/msdos/gnu/ghostscript/ \
+ ftp://i1nws2.fukui-u.ac.jp/pub/TeX/dvipr/ \
+ ftp://ftp.mei.co.jp/free/gnu/util/ghostscript/drivers/
+DISTFILES= ghostscript-2.6.2.tar.gz ghostscript-fonts-2.6.2.tar.gz \
+ ghostscript-fonts-4.0.tar.gz gs261j10.tar.gz \
+ gs261d13.tar.gz \
+ gdevlips4-current.tar.gz \
+ bjc600j-0.9.tar.gz gdevmjc-0.7.tar.gz
+
+MAINTAINER= mita@jp.FreeBSD.org
+
+BUILD_DEPENDS= ${PREFIX}/lib/libVFlib.a:${PORTSDIR}/japanese/vflib
+
+WRKSRC= ${WRKDIR}/gs262
+EXTRACT_ONLY= ghostscript-2.6.2.tar.gz
+
+DOC_DIR=/usr/local/lib/ghostscript/doc
+
+# Note: unix-gcc.mak.patch can't be put in patches/ because it should
+# be applied after gs261j.diff, which should, in turn, be applied
+# after the distributed patches
+pre-patch:
+ @(cd ${WRKSRC} ; \
+ tar xzf ${DISTDIR}/gs261j10.tar.gz ; \
+ tar xzf ${DISTDIR}/gs261d13.tar.gz ; \
+ tar xzf ${DISTDIR}/gdevmjc-0.7.tar.gz ; \
+ tar xzf ${DISTDIR}/bjc600j-0.9.tar.gz ; \
+ tar xzf ${DISTDIR}/gdevlips4-current.tar.gz ; \
+ ${PATCH} ${PATCH_ARGS} < gs261j.diff ; \
+ ${PATCH} ${PATCH_ARGS} <${FILESDIR}/gdevep82.patch ; \
+ ${PATCH} ${PATCH_ARGS} <${FILESDIR}/bjc600j.dif.patch >/dev/null 2>&1; \
+ ${PATCH} ${PATCH_ARGS} <${FILESDIR}/bjc600j.mak.patch >/dev/null 2>&1; \
+ cp gdevmjc-0.7/gdevmjc.c gdevmjc-0.7/mjc.dev .; \
+ cp bjc600j/paramod.c . ; \
+ cp gdevlips4-1.0.1/gdevlips4.c gdevlips4-1.0.1/gdevlips4.mak .; \
+ cd drivers ; \
+ cp gdev10v/gdev10v.c gdev10v/gdev10v.mak .. ; \
+ cp gdevdmpr/gdevdmpr.c gdevdmpr/gdevdmpr.mak .. ; \
+ cp gdevdmpr/dviprlib.c gdevdmpr/dviprlib.h .. ; \
+ cp gdevep82/gdevep82.c gdevep82/gdevep82.mak ..; \
+ cp gdevepag/gdevepag.c gdevepag/gdevepag.mak .. ; \
+ cp gdevj100/gdevj100.c gdevj100/gdevj100.mak .. ; \
+ cp gdevmag/gdevmag.c gdevmag/gdevmag.mak .. ; \
+ cp gdevp201/gdevp201.c gdevp201/gdevp201.mak ..; )
+ @${PATCH} ${PATCH_ARGS} < ${WRKSRC}/drivers/gdevp201/gdevp201.dif
+ @${PATCH} ${PATCH_ARGS} <${FILESDIR}/unix-gcc.mak.patch >/dev/null 2>&1
+ @${PATCH} ${PATCH_ARGS} < ${WRKSRC}/bjc600j/gdevcdj.dif >/dev/null 2>&1
+ @${PATCH} ${PATCH_ARGS} < ${WRKSRC}/bjc600j/devsmak.dif >/dev/null 2>&1
+ @cp ${WRKSRC}/unix-gcc.mak ${WRKSRC}/Makefile
+.if defined(BATCH)
+ @(cd ${WRKSRC} ; \
+ /bin/sh ${FILESDIR}/printer.sh BATCH; \
+ )
+.else
+ @(cd ${WRKSRC} ; \
+ /bin/sh ${FILESDIR}/printer.sh; \
+ )
+.endif
+ @cat ${WRKSRC}/kfvflib.mak >> ${WRKSRC}/Makefile
+ @cat ${WRKSRC}/gdev10v.mak >> ${WRKSRC}/Makefile
+ @cat ${WRKSRC}/bjc600j.mak >> ${WRKSRC}/Makefile
+ @cat ${WRKSRC}/gdevdmpr.mak >> ${WRKSRC}/Makefile
+ @cat ${WRKSRC}/gdevep82.mak >> ${WRKSRC}/Makefile
+ @cat ${WRKSRC}/gdevepag.mak >> ${WRKSRC}/Makefile
+ @cat ${WRKSRC}/gdevj100.mak >> ${WRKSRC}/Makefile
+ @cat ${WRKSRC}/gdevlips4.mak >> ${WRKSRC}/Makefile
+ @cat ${WRKSRC}/gdevmag.mak >> ${WRKSRC}/Makefile
+ @cat ${WRKSRC}/mjc.dev >> ${WRKSRC}/Makefile
+ @cat ${WRKSRC}/gdevp201.mak >> ${WRKSRC}/Makefile
+
+post-build:
+ @(cd ${WRKSRC}; \
+ ${CC} -o paramod paramod.c \
+ )
+
+post-install:
+ @strip ${PREFIX}/bin/gs ;
+ @${INSTALL_PROGRAM} ${WRKSRC}/paramod ${PREFIX}/bin ;
+ @(cd ${PREFIX}/lib/ghostscript ; \
+ cp ${WRKSRC}/bjc600j/*.ps . ; \
+ tar xzf ${DISTDIR}/ghostscript-fonts-2.6.2.tar.gz ; \
+ cp ${PREFIX}/lib/ghostscript/kanji/vflib.ps ${PREFIX}/lib/ghostscript/kanji/kconfig.ps ; \
+ cd fonts ;\
+ tar xzf ${DISTDIR}/ghostscript-fonts-4.0.tar.gz ; \
+ ${PATCH} < ${FILESDIR}/Fontmap.diff ; \
+ cat Fontmap >> ../Fontmap ; \
+ rm Fontmap* ; \
+ rm pag* pbk* phv* pnc* ppl* ptm* ; \
+ )
+ @(cd ${WRKSRC}/drivers/gdevdmpr ; \
+ cp dmp_init.ps dmp_site.ps testpage.ps ${PREFIX}/lib/ghostscript ; \
+ cp escp_24.src ${PREFIX}/lib/ghostscript/doc ; \
+ )
+ @(if [ ! -d ${PREFIX}/man/man1 ] ; \
+ then mkdir -p ${PREFIX}/man/man1 ; fi ; \
+ cp ${WRKSRC}/gs.1 ${PREFIX}/man/man1/ ; \
+ gzip -9f ${PREFIX}/man/man1/gs.1 ; \
+ cp ${WRKSRC}/gs261j.jis ${DOC_DIR} ; \
+ cp ${WRKSRC}/printers.jis ${DOC_DIR} ; \
+ cp ${WRKSRC}/gdevmjc-0.7/README.jis ${DOC_DIR}/gdevmjc.jis ; \
+ cp ${WRKSRC}/gdevmjc-0.7/MJ700V2C.FAQ ${DOC_DIR} ; \
+ cp ${WRKSRC}/bjc600j/bjc600j.jis ${DOC_DIR} ; \
+ cp ${WRKSRC}/bjc600j/cmds.doc ${DOC_DIR} ; \
+ cp ${WRKSRC}/gdevlips4-1.0.1/Readme ${DOC_DIR}/gdevlips4.euc ; \
+ cd ${WRKSRC}/drivers ; \
+ cp gdev10v/gdev10v.jis ${DOC_DIR} ; \
+ cp gdevcdj/gdev505j.sj ${DOC_DIR} ; \
+ cp gdevdmpr/gdevdmpr.sj ${DOC_DIR} ; \
+ cp gdevep82/gdevep82.jis ${DOC_DIR} ; \
+ cp gdevepag/gdevepag.jis ${DOC_DIR} ; \
+ cp gdevj100/gdevj100.jis ${DOC_DIR} ; \
+ cp gdevmag/gdevmag.sj ${DOC_DIR} ; \
+ cp gdevp201/gdevp201.jis ${DOC_DIR} ; \
+ cat gdevp201/gdevp201.add >> ${DOC_DIR}/gdevp201.jis ; \
+ )
+
+.include <bsd.port.mk>
diff --git a/japanese/vfghostscript/distinfo b/japanese/vfghostscript/distinfo
new file mode 100644
index 000000000000..b1936902a3c8
--- /dev/null
+++ b/japanese/vfghostscript/distinfo
@@ -0,0 +1,8 @@
+MD5 (ghostscript-2.6.2.tar.gz) = 3976c1841d3fb968bd406f6c7678fa36
+MD5 (ghostscript-fonts-2.6.2.tar.gz) = 07dff233406da5ce2795881176c5808f
+MD5 (ghostscript-fonts-4.0.tar.gz) = 4d85a26bb5c7fc48dc112bdcd553ca69
+MD5 (gs261j10.tar.gz) = e2c6fcafba3992341268136742d0f027
+MD5 (gs261d13.tar.gz) = 08843969acbf96c4aacdc13fc7709240
+MD5 (gdevlips4-current.tar.gz) = 150de01fbdcd88c2579d4f45efa7762e
+MD5 (bjc600j-0.9.tar.gz) = e6cfffc16bf0daa0264ead2382549e49
+MD5 (gdevmjc-0.7.tar.gz) = c96febe81ef1b467cf2050cc918001e7
diff --git a/japanese/vfghostscript/files/Fontmap.diff b/japanese/vfghostscript/files/Fontmap.diff
new file mode 100644
index 000000000000..49968583441c
--- /dev/null
+++ b/japanese/vfghostscript/files/Fontmap.diff
@@ -0,0 +1,198 @@
+*** Fontmap.orig Mon May 20 21:17:20 1996
+--- Fontmap Mon May 20 21:17:27 1996
+***************
+*** 180,236 ****
+
+ %
+ %
+- % Type 1 fonts contributed to the X11R5 distribution.
+- %
+-
+- % The following notice accompanied the Charter fonts.
+- %
+- % (c) Copyright 1989-1992, Bitstream Inc., Cambridge, MA.
+- %
+- % You are hereby granted permission under all Bitstream propriety rights
+- % to use, copy, modify, sublicense, sell, and redistribute the 4 Bitstream
+- % Charter (r) Type 1 outline fonts and the 4 Courier Type 1 outline fonts
+- % for any purpose and without restriction; provided, that this notice is
+- % left intact on all copies of such fonts and that Bitstream's trademark
+- % is acknowledged as shown below on all unmodified copies of the 4 Charter
+- % Type 1 fonts.
+- %
+- % BITSTREAM CHARTER is a registered trademark of Bitstream Inc.
+-
+- % The Bitstream Charter fonts have different names (CharterBT-
+- % instead of Charter-), but Ghostscript doesn't care.
+- /Charter-Roman (bchr.pfa) ;
+- /Charter-Italic (bchri.pfa) ;
+- /Charter-Bold (bchb.pfa) ;
+- /Charter-BoldItalic (bchbi.pfa) ;
+-
+- % The following notice accompanied the Utopia font:
+- %
+- % Permission to use, reproduce, display and distribute the listed
+- % typefaces is hereby granted, provided that the Adobe Copyright notice
+- % appears in all whole and partial copies of the software and that the
+- % following trademark symbol and attribution appear in all unmodified
+- % copies of the software:
+- %
+- % Copyright (c) 1989 Adobe Systems Incorporated
+- % Utopia (R)
+- % Utopia is a registered trademark of Adobe Systems Incorporated
+- %
+- % The Adobe typefaces (Type 1 font program, bitmaps and Adobe Font
+- % Metric files) donated are:
+- %
+- % Utopia Regular
+- % Utopia Italic
+- % Utopia Bold
+- % Utopia Bold Italic
+-
+- /Utopia-Regular (putr.pfa) ;
+- /Utopia-Italic (putri.pfa) ;
+- /Utopia-Bold (putb.pfa) ;
+- /Utopia-BoldItalic (putbi.pfa) ;
+-
+- %
+- %
+ % Fonts contributed by URW GmbH for distribution under the GNU License.
+ % The following notice accompanied these fonts:
+ %
+--- 180,185 ----
+***************
+*** 266,398 ****
+
+ /URWAntiquaT-RegularCondensed (u003043t.gsf) ;
+ /URWGroteskT-Bold (u004006t.gsf) ;
+-
+- %
+- %
+- % Shareware Kana fonts. These are subject to the following notice:
+- %
+- % These copyrighted fonts were developed by Kevin Hartig. Permission is
+- % granted to freely distribute them in entirety along with this statement.
+- % This is shareware. If you decide to use these fonts please contribute
+- % $10 US to help support further freeware and shareware software development.
+- % Questions and comments may be sent to:
+- %
+- % hartig@fsl.noaa.gov
+- % khartig@nyx.cs.du.edu
+- %
+- % Kevin Hartig
+- % 1126 Collyer Street
+- % Longmont, CO 80501 USA
+- %
+- % copyright 1993.
+-
+- % Hiragana and Katakana fonts. The character names are inappropriate,
+- % and the encoding is probably not related to any known standard.
+-
+- /Calligraphic-Hiragana (fhirw.gsf) ;
+- /Calligraphic-Katakana (fkarw.gsf) ;
+-
+- %
+- %
+- % Public-domain fonts. These have no copyright, and are of unknown quality.
+-
+- % Cyrillic fonts. The character names are inappropriate,
+- % and the encoding is probably not related to any known standard.
+-
+- /Shareware-Cyrillic-Regular (fcyr.gsf) ;
+- /Shareware-Cyrillic-Italic (fcyri.gsf) ;
+-
+- % Aliases
+- /Cyrillic /Cyrillic-Regular ;
+- /Cyrillic-Regular /Shareware-Cyrillic-Regular ;
+- /Cyrillic-Italic /Shareware-Cyrillic-Italic ;
+-
+- %
+- %
+- % Fonts converted from Hershey outlines. These are constructed and
+- % maintained manually. These are also in the public domain.
+- %
+- % The suggested UniqueID's and filenames are constructed differently for
+- % these than for the ones above, because of the strange way that the Hershey
+- % fonts were constructed. The scheme for these looks like:
+- %
+- % 42TTXY0
+- %
+- % TT = typeface, X = ``class'', Y = variation
+- %
+- % The typeface names and numbers are listed in fonts.mak.
+- %
+- % class:
+- % 0 = normal = r
+- % 1 = simplex = s
+- % 2 = complex = c
+- % 3 = triplex = t
+- % 4 = duplex = d
+- %
+- % variation:
+- % 0 = normal (omitted)
+- % 1 = oblique = o
+- % 2 = italic = i
+- % 3 = bold = b
+- % 4 = bold oblique = bo
+- % 5 = bold italic = bi
+- %
+-
+- % Fonts created by Thomas Wolff <wolff@inf.fu-berlin.de>, by adding
+- % accents, accented characters, and various other non-alphabetics
+- % to the original Hershey fonts. These are "freeware", not to be sold.
+-
+- /Hershey-Gothic-English (hrger.pfa) ; % 5066533
+- /Hershey-Gothic-German (hrgrr.pfa) ;
+- /Hershey-Gothic-Italian (hritr.pfa) ;
+-
+- /Hershey-Plain-Duplex (hrpld.pfa) ;
+- /Hershey-Plain-Duplex-Italic (hrpldi.pfa) ;
+- /Hershey-Plain-Triplex (hrplt.pfa) ;
+- /Hershey-Plain-Triplex-Italic (hrplti.pfa) ;
+-
+- /Hershey-Script-Complex (hrscc.pfa) ;
+- /Hershey-Script-Simplex (hrscs.pfa) ; % 5066541
+-
+- % Fonts created algorithmically from the above.
+-
+- /Hershey-Gothic-English-Bold (hrgerb.gsf) ; % 5066542
+- /Hershey-Gothic-English-Oblique (hrgero.gsf) ;
+- /Hershey-Gothic-English-SemiBold (hrgerd.gsf) ;
+- /Hershey-Gothic-German-Bold (hrgrrb.gsf) ;
+- /Hershey-Gothic-German-Oblique (hrgrro.gsf) ;
+- /Hershey-Gothic-Italian-Bold (hritrb.gsf) ;
+- /Hershey-Gothic-Italian-Oblique (hritro.gsf) ;
+-
+- /Hershey-Plain-Duplex-Bold (hrpldb.gsf) ;
+- /Hershey-Plain-Duplex-Bold-Italic (hrpldbi.gsf) ;
+- /Hershey-Plain-Triplex-Bold (hrpltb.gsf) ;
+- /Hershey-Plain-Triplex-Bold-Italic (hrpltbi.gsf) ;
+-
+- /Hershey-Script-Complex-Bold (hrsccb.gsf) ;
+- /Hershey-Script-Complex-Oblique (hrscco.gsf) ;
+- /Hershey-Script-Simplex-Bold (hrscsb.gsf) ;
+- /Hershey-Script-Simplex-Oblique (hrscso.gsf) ; % 5066556
+-
+- % Fonts consisting only of characters from the original Hershey
+- % distribution. These are Type 3 fonts.
+-
+- /Hershey-Greek-Complex (hrgkc.gsf) ; % 5066557
+- /Hershey-Greek-Simplex (hrgks.gsf) ;
+-
+- /Hershey-Plain (hrplr.gsf) ;
+- /Hershey-Plain-Simplex (hrpls.gsf) ; % 5066560
+-
+- % Fonts created algorithmically from the above.
+-
+- /Hershey-Plain-Bold (hrplrb.gsf) ; % 5066561
+- /Hershey-Plain-Bold-Oblique (hrplrbo.gsf) ;
+- /Hershey-Plain-Oblique (hrplro.gsf) ;
+- /Hershey-Plain-Simplex-Bold (hrplsb.gsf) ;
+- /Hershey-Plain-Simplex-Bold-Oblique (hrplsbo.gsf) ;
+- /Hershey-Plain-Simplex-Oblique (hrplso.gsf) ; % 5066566
+-
+- % This font, and only this font among the Hershey fonts, uses
+- % the SymbolEncoding.
+-
+- /Hershey-Symbol (hrsyr.gsf) ; % 5066567
+--- 215,217 ----
diff --git a/japanese/vfghostscript/files/bjc600j.dif.patch b/japanese/vfghostscript/files/bjc600j.dif.patch
new file mode 100644
index 000000000000..2794e90e88bc
--- /dev/null
+++ b/japanese/vfghostscript/files/bjc600j.dif.patch
@@ -0,0 +1,15 @@
+*** bjc600j/devsmak.dif.orig Tue May 28 23:09:45 1996
+--- bjc600j/devsmak.dif Tue May 28 23:09:52 1996
+***************
+*** 1,5 ****
+ --- devs.mak.orig Wed Jun 22 03:29:02 1994
+! +++
+ @@ -56,6 +56,9 @@
+ # * appledmp Apple Dot Matrix Printer (should also work with Imagewriter)
+ # bj10e Canon BubbleJet BJ10e
+--- 1,5 ----
+ --- devs.mak.orig Wed Jun 22 03:29:02 1994
+! +++ devs.mak
+ @@ -56,6 +56,9 @@
+ # * appledmp Apple Dot Matrix Printer (should also work with Imagewriter)
+ # bj10e Canon BubbleJet BJ10e
diff --git a/japanese/vfghostscript/files/bjc600j.mak.patch b/japanese/vfghostscript/files/bjc600j.mak.patch
new file mode 100644
index 000000000000..d6a07bd4c7e9
--- /dev/null
+++ b/japanese/vfghostscript/files/bjc600j.mak.patch
@@ -0,0 +1,17 @@
+*** /dev/null Thu Apr 9 18:23:13 1908
+--- bjc600j.mak Thu Apr 9 18:36:07 1908
+***************
+*** 0 ****
+--- 1,12 ----
++ # -------HP Deskjet and Canon BJC-600J
++ dj505j.dev: $(cdeskjet_)
++ $(SHP)gssetdev dj505j $(cdeskjet_)
++
++ dj505jc.dev: $(cdeskjet_)
++ $(SHP)gssetdev dj505jc $(cdeskjet_)
++
++ bjc600j.dev: $(cdeskjet_)
++ $(SHP)gssetdev bjc600j $(cdeskjet_)
++
++ bjc600jc.dev: $(cdeskjet_)
++ $(SHP)gssetdev bjc600jc $(cdeskjet_)
diff --git a/japanese/vfghostscript/files/gdevep82.patch b/japanese/vfghostscript/files/gdevep82.patch
new file mode 100644
index 000000000000..cb3c9ad7cb10
--- /dev/null
+++ b/japanese/vfghostscript/files/gdevep82.patch
@@ -0,0 +1,332 @@
+*** /dev/null Sun Aug 18 13:11:02 1996
+--- drivers/gdevep82/gdevep82.c Sun Aug 18 18:24:05 1996
+***************
+*** 0 ****
+--- 1,266 ----
++ /* Copyright (C) 1991 Aladdin Enterprises. All rights reserved.
++ Distributed by Free Software Foundation, Inc.
++
++ This file is part of Ghostscript.
++
++ Ghostscript is distributed in the hope that it will be useful, but
++ WITHOUT ANY WARRANTY. No author or distributor accepts responsibility
++ to anyone for the consequences of using it or for whether it serves any
++ particular purpose or works at all, unless he says so in writing. Refer
++ to the Ghostscript General Public License for full details.
++
++ Everyone is granted permission to copy, modify and redistribute
++ Ghostscript, but only under the conditions described in the Ghostscript
++ General Public License. A copy of this license is supposed to have been
++ given to you along with Ghostscript so you can know your rights and
++ responsibilities. It should be in a file named COPYING. Among other
++ things, the copyright notice and this notice must be preserved on all
++ copies. */
++
++ /* gdevepag.c */
++ /* ESC/Page driver for Ghostscript */
++ #include "gdevprn.h"
++
++ #define EPAG300 1
++ #define EPAG600 2
++
++ /* cut from gdevpcl.h gdevmjc.c */
++ #define PAPER_SIZE_LETTER 2
++ #define PAPER_SIZE_LEGAL 3
++ #define PAPER_SIZE_A4 26
++ #define PAPER_SIZE_A3 27
++ #define PAPER_SIZE_A3_NOBI 28
++ #define PAPER_SIZE_A2 29
++ #define PAPER_SIZE_B4 30
++ #define PAPER_SIZE_B5 31
++
++ #define LINE_SIZE ((7016+7) / 8) /* bytes per line */
++
++ /* The device descriptors */
++ private dev_proc_print_page(epag300_print_page);
++ private dev_proc_print_page(epag600_print_page);
++
++ gx_device_printer gs_epag300_device =
++ prn_device(prn_std_procs, "epag300",
++ 83, /* width_10ths, 8.3" */
++ 117, /* height_10ths, 11.7" */
++ 300, 300,
++ 0.20, 0.20, 0.20, 0.20, /* margins, lbrt */
++ 1, epag300_print_page);
++
++ gx_device_printer gs_epag600_device =
++ prn_device(prn_std_procs, "epag600",
++ 83, /* width_10ths, 8.3" */
++ 117, /* height_10ths, 11.7" */
++ 600, 600,
++ 0.20, 0.20, 0.20, 0.20, /* margins, lbrt */
++ 1, epag600_print_page);
++
++ /* ------ Internal routines ------ */
++
++ #define ESC 0x1b
++ #define GS 0x1d
++ #define FS 0x1c
++ #define CSI 0233
++
++ static char can_inits300[] ={
++ GS, 'r', 'h', 'E', /* hard reset */
++ GS, '0', ';', '0', '.', '2', '4', 'm', 'u', 'E', /* 最小単位設定 1/600' */
++ GS, '0', 'p', 'o', 'E', /* landscape */
++ GS, '1', 'm', 'm', 'E', /* ページメモリモード */
++ GS, '0', ';', '3', '0', '0', ';', '3', '0', '0', 'd', 'r', 'E', /*ドットパターン解像度 */
++ GS, '3', 'b', 'c', 'I', /* 圧縮形式 */
++ GS, '0', ';', '0', 'l', 'o', 'E' /* 論理原点設定 */
++ };
++
++ static char can_inits600[] ={
++ GS, 'r', 'h', 'E', /* hard reset */
++ GS, '0', ';', '0', '.', '1', '2', 'm', 'u', 'E', /* 最小単位設定 1/600' */
++ GS, '0', 'p', 'o', 'E', /* landscape */
++ GS, '1', 'm', 'm', 'E', /* ページメモリモード */
++ GS, '0', ';', '6', '0', '0', ';', '6', '0', '0', 'd', 'r', 'E', /*ドットパターン解像度 */
++ GS, '3', 'b', 'c', 'I', /* 圧縮形式 */
++ GS, '0', ';', '0', 'l', 'o', 'E' /* 論理原点設定 */
++ };
++
++
++ private int
++ gdev_epag_paper_size(gx_device_printer *dev)
++ { return
++ (dev->height / dev->y_pixels_per_inch >= 22.2 ? PAPER_SIZE_A2 :
++ dev->height / dev->y_pixels_per_inch >= 18.0 ? PAPER_SIZE_A3_NOBI :
++ dev->height / dev->y_pixels_per_inch >= 16.0 ? PAPER_SIZE_A3 :
++ dev->height / dev->y_pixels_per_inch >= 13.6 ? PAPER_SIZE_B4 :
++ dev->height / dev->y_pixels_per_inch >= 11.8 ? PAPER_SIZE_LEGAL :
++ dev->height / dev->y_pixels_per_inch >= 11.1 ? PAPER_SIZE_A4 :
++ dev->height / dev->y_pixels_per_inch >= 10.4 ? PAPER_SIZE_LETTER :
++ PAPER_SIZE_LETTER);
++ }
++
++ /* Send the page to the printer. */
++ private int
++ epag_print_page(gx_device_printer *pdev, FILE *prn_stream, int ptype)
++ {
++ char data[LINE_SIZE*2];
++ char buf[LINE_SIZE*2];
++ char *out_data;
++ int out_count;
++ int c_size;
++ int paper_size;
++ char *ps, *pse;
++
++ #define GS_print(str) fprintf(prn_stream, str, GS)
++ #define GS_print_1(str,arg) fprintf(prn_stream, str, GS, arg)
++
++ /* initialize */
++ paper_size=gdev_epag_paper_size(pdev);
++ switch(paper_size){
++ case PAPER_SIZE_LETTER:
++ ps="";pse="14psE";break;
++ case PAPER_SIZE_LEGAL:
++ ps="";pse="14psE";break;
++ case PAPER_SIZE_A4:
++ ps="A4";pse="14psE";break;
++ case PAPER_SIZE_A3:
++ ps="A3";pse="13psE";break;
++ case PAPER_SIZE_A3_NOBI:
++ ps="A3";pse="13psE";break;
++ case PAPER_SIZE_A2:
++ ps="A2";pse="12psE";break;
++ case PAPER_SIZE_B4:
++ ps="B4";pse="24psE";break;
++ case PAPER_SIZE_B5:
++ ps="B5";pse="25psE";break;
++ }
++ sprintf(buf, "%cS%c%cS%c", ESC, ESC, ESC, FS); /* ESC/PS -> ESC/P */
++ sprintf(buf, "%cz%c%c", ESC, NULL, NULL); /* ESC/P -> ESC/Page */
++ sprintf(buf,"\033\001@EJL \012@EJL ENLA=ESC/PAGE\012\033\001@EJL \012@EJL SE LA=ESC/PAGE\012@EJL SET EC=ON RS=%s PU=%s PS=%s ZO=OFF FO=OFF\012@EJL EN LA=ESC/PAGE\012",
++ (ptype==EPAG300)?"QK":"FN",
++ "AU", /* "AU"..auto "2"..tray(maybe) "1"..casette1*/
++ ps
++ );
++ fwrite(buf, strlen(buf), 1, prn_stream);
++ switch(ptype) {
++ case EPAG300:
++ fwrite(can_inits300, sizeof(can_inits300), 1, prn_stream);
++ break;
++ case EPAG600:
++ fwrite(can_inits600, sizeof(can_inits300), 1, prn_stream);
++ break;
++ }
++ buf[0]=GS;
++ strcpy(buf+1,pse);
++ fwrite(buf, strlen(buf), 1, prn_stream);
++
++ /* Send each scan line in turn */
++ { int lnum;
++ int line_size = gdev_mem_bytes_per_scan_line((gx_device *)pdev);
++ byte rmask = (byte)(0xff << (-pdev->width & 7));
++
++ for ( lnum = 0; lnum < pdev->height; lnum++ )
++ { char *end_data = data + line_size;
++ int s;
++
++ s = gdev_prn_copy_scan_lines(pdev, lnum,
++ (byte *)data, line_size);
++ /* Mask off 1-bits beyond the line width. */
++ end_data[-1] &= rmask;
++ /* Remove trailing 0s. */
++ while ( end_data > data && end_data[-1] == 0 )
++ end_data--;
++ if ( end_data != data ) {
++ int num_cols = 0;
++
++ out_data = data;
++ while(out_data < end_data && *out_data == 0) {
++ num_cols += 8;
++ out_data++;
++ }
++ out_count = end_data - out_data;
++
++ /* move down */
++ GS_print_1("%c%dY", lnum);
++ /* move across */
++ GS_print_1("%c%dX", num_cols);
++
++ /* 圧縮 */
++
++ c_size = data_compress_82(out_data, end_data, buf);
++
++ /* transfer raster graphics */
++ fprintf(prn_stream, "%c%d;%d;1;0bi{I",
++ GS, c_size, out_count * 8 );
++
++ /* send the row */
++ fwrite(buf, sizeof(char), c_size, prn_stream);
++ }
++ }
++ }
++ /* eject page */
++ fprintf(prn_stream, "\014");
++ fprintf(prn_stream, "%c1;0pmE", GS); /* ESC/Page -> ESC/P */
++ fprintf(prn_stream, "%cS%c%cSK", ESC, ESC, ESC); /* ESC/P -> ESC/PS */
++ return 0;
++ }
++
++ private int
++ epag300_print_page(gx_device_printer *pdev, FILE *prn_stream)
++ {
++ return epag_print_page(pdev, prn_stream, EPAG300);
++ }
++
++ private int
++ epag600_print_page(gx_device_printer *pdev, FILE *prn_stream)
++ {
++ return epag_print_page(pdev, prn_stream, EPAG600);
++ }
++
++
++
++ /*@fn data_compress_82(out_data, end_data, buf)
++ *@f1 データを圧縮しbufに書き込む
++ *@fr 圧縮後のバイト数を返す
++ */
++ data_compress_82(out_data, end_data, buf)
++ char *out_data; /* 元データの先頭番地 */
++ char *end_data; /* 元データの最後+1 */
++ char *buf; /* 圧縮後のデータを書き込む場所 */
++ {
++ char *p; /* 読み出しポインタ */
++ char *q; /* 書き込みポインタ */
++ int pdata; /* 最後に書き込んだデータ */
++ int cdata; /* 着目データ */
++ int count; /* データリピート数 −1 */
++
++ p = out_data;
++ q = buf;
++ pdata = 9999; /* 決して一致しない前データ */
++ count = 0;
++
++ while(p < end_data){
++ cdata = *p++;
++ if(cdata == pdata){ /* 圧縮中 */
++ count++;
++ if(count == 256){ /* データ溢れ、 フラッシュ */
++ *q++ = pdata;
++ *q++ = count - 1;
++ count = 0;
++ pdata = 9999; /* 決して一致しない前データ */
++ }
++ }
++ else{ /* 前のデータと違う */
++ if(count > 0){ /* フラッシュ */
++ *q++ = pdata;
++ *q++ = count-1;
++ count = 0;
++ }
++ *q++ = pdata = cdata;
++ }
++ }
++ if(count >0){ /* 圧縮途中のデータが残っていれば */
++ *q++ = pdata; /* フラッシュ */
++ *q++ = count - 1;
++ }
++ return(q-buf);
++ }
++
+*** /dev/null Sun Aug 18 13:11:02 1996
+--- drivers/gdevep82/gdevep82.jis Sun Aug 18 18:07:08 1996
+***************
+*** 0 ****
+--- 1,40 ----
++
++ gdevep82.c - Epson LP-1700, LP-8200 (ESC/PS 300,600dpi)用デバイスドライバ
++
++ ○インストール方法
++
++ 1. gdevep60.c を gs261 のソースプログラムがあるディレクトリにコピーし
++ て下さい。
++
++ 2. Makefile に gdevep60.mak を追加して下さい。
++
++ 3. Makefile の DEVICE_DEVS に epag300.dev(300dpi) epag600.dpi(600dpi)
++ を加えて下さい。
++
++ 例) DEVICE_DEVS=x11.dev epag300.dev epag600.dev
++ ^^^^^^^^^^^^^^^^^^^^^^^
++ 4. make コマンドで gs をコンパイルし、インストールして下さい。
++
++
++ ○使い方
++
++ *デバイスの選択は -sDEVICE オプションによって行ないます。
++
++ 例) 300dpiの場合、 gs -sDEVICE=epag300
++ 600dpiの場合 gs -sDEVICE=epag600
++
++ *ポストスクリプトコード中にページ選択機能が入っている場合は自動的に、
++ 無い場合はこのようにして用紙サイズを決定できます。
++
++ 例) A3,300dpiの場合、 gs -sDEVICE=epag300 -SPAPERSIZE=a3
++ B4,600dpiの場合、 gs -sDEVICE=epag600 -SPAPERSIZE=B4
++
++ 三田吉郎 (mita@hoh.t.u-tokyo.ac.jp)
++
++ ○ このESC/PSドライバーは Tom Quinn氏(trq@prg.oxford.ac.uk)作成の
++ lbp8用ドライバーを成松 宏氏(nari@lsi.tmg.nec.co.jp)がESC/Page用に
++ 改造した物を、入田 隆宏氏(irita@hoh.t.u-tokyo.ac.jp)と三田とが
++ ESC/PSモードの解像度選択、ページ選択機能を付加した物です。
++ 用紙選択の改造に当たっては、久保 博さんの、gdevmjcを参考にさせて
++ いただきました。
++
+*** /dev/null Sun Aug 18 13:11:02 1996
+--- drivers/gdevep82/gdevep82.mak Sun Aug 18 18:07:08 1996
+***************
+*** 0 ****
+--- 1,11 ----
++ ### ------ The Epson LP-8200 (ESC/PS 300/600dpi) printer device ------- ###
++
++ epag82_=gdevep82.$(OBJ) gdevprn.$(OBJ)
++ epag300.dev: $(epag82_)
++ $(SHP)gssetdev epag300 $(epag82_)
++
++ epag600.dev: $(epag82_)
++ $(SHP)gssetdev epag600 $(epag82_)
++
++ gdevep82.$(OBJ): gdevep82.c $(PDEVH)
++
diff --git a/japanese/vfghostscript/files/patch-aa b/japanese/vfghostscript/files/patch-aa
new file mode 100644
index 000000000000..4be69b58ca50
--- /dev/null
+++ b/japanese/vfghostscript/files/patch-aa
@@ -0,0 +1,46 @@
+*** gs.c.orig Mon May 24 17:17:30 1993
+--- gs.c Wed Aug 21 15:04:14 1996
+***************
+*** 42,47 ****
+--- 42,56 ----
+ #include "ostack.h"
+ #include "store.h"
+ #include "files.h" /* requires stream.h */
++
++ #ifdef _HAVE_PARAM_H
++ #include <sys/param.h>
++ #endif
++ #if (defined(BSD) && (BSD>=199103))
++ #include <floatingpoint.h>
++ #endif
++
++
+
+ #ifndef GS_LIB
+ # define GS_LIB "GS_LIB"
+***************
+*** 111,116 ****
+--- 120,129 ----
+ main(int argc, const char *argv[])
+ { int argi;
+ char cstr[128];
++ #if (defined(BSD) && (BSD>=199103))
++ fpsetmask(fpgetmask() & ~FP_X_INV);
++ /* epag600 driver in gdevep82.c sometimes down with Floating exception. sorry..*/
++ #endif
+ get_real();
+ gs_init0(real_stdin, real_stdout, real_stderr, argc);
+ { char *lib = getenv(GS_LIB);
+***************
+*** 356,361 ****
+--- 369,378 ----
+ }
+ break;
+ }
++ #if (defined(BSD) && (BSD>=199103))
++ fpresetsticky(FP_X_INV);
++ fpsetmask(fpgetmask() & FP_X_INV);
++ #endif
+ return 0;
+ }
+
diff --git a/japanese/vfghostscript/files/patch-ab b/japanese/vfghostscript/files/patch-ab
new file mode 100644
index 000000000000..de7cf0fc0e97
--- /dev/null
+++ b/japanese/vfghostscript/files/patch-ab
@@ -0,0 +1,27 @@
+*** zkfvflib.c.orig Tue May 14 18:13:36 1996
+--- zkfvflib.c Tue May 14 18:14:27 1996
+***************
+*** 172,182 ****
+ for (code=0;code<256;code++)
+ hash_index[code] = NULL;
+
+! pfcap = getenv("VFONTCAP");
+ if (pfcap == NULL) { /* environment variable VFONTCAP is not set. */
+ char *pfcapb = VFONTCAP_BASE;
+
+! pfcap = malloc(MAXPATHLEN+3);
+ if (pfcap == NULL) return e_VMerror;
+
+ if (!access(pfcapb,0)) { /* found on current directory. */
+--- 172,182 ----
+ for (code=0;code<256;code++)
+ hash_index[code] = NULL;
+
+! pfcap = (char *)getenv("VFONTCAP");
+ if (pfcap == NULL) { /* environment variable VFONTCAP is not set. */
+ char *pfcapb = VFONTCAP_BASE;
+
+! pfcap = (char *)malloc(MAXPATHLEN+3);
+ if (pfcap == NULL) return e_VMerror;
+
+ if (!access(pfcapb,0)) { /* found on current directory. */
diff --git a/japanese/vfghostscript/files/patch-ac b/japanese/vfghostscript/files/patch-ac
new file mode 100644
index 000000000000..4484de5e1dc7
--- /dev/null
+++ b/japanese/vfghostscript/files/patch-ac
@@ -0,0 +1,33 @@
+*** /dev/null Wed May 29 10:24:22 1996
+--- printers.jis Wed May 29 11:42:36 1996
+***************
+*** 0 ****
+--- 1,28 ----
++ * jp-vfghostscript-2.6.2.tgz $B$KIUB0$9$k%W%j%s%?$N;H$$J}$K$D$$$F!"(B
++ 1996$BG/(B8$B7n(B21$BF|(B $B;0ED5HO:(B <mita@jp.FreeBSD.org>
++
++ $B$H$j$"$($:!";d$,8+IU$1$?HO0O$G;H$$$=$&$@$J$H;W$o$l$k%W%j%s%?%I%i%$%P$r(B
++ $BA4It$/$C$D$1$F$*$-$^$7$?!#(B
++ $BEvA3;H$o$J$$%W%j%s%?$NJ}$,B?$$$G$7$g$&$+$i!"M>7W$J$b$N$,$/$C$D$/$N$,(B
++ $B7y$JJ}$O!"(Bports$B$+$i:n$jD>$7$F2<$5$$!#(B
++
++ $B;H$$J}$O!"$=$l$>$l(B
++ 1. Canon BJ-10V gdev10v.jis
++ 2. Canon BJC-600J bjc600j.jis
++ 3. HP DeskJet 500C bjc600j.jis
++ 4. HP DeskJet 550C bjc600j.jis
++ 5. HP DeskJet 505J gdev505j.sj
++ 6. generic dot impact printer gdevdmpr.sj
++ 7. Epson LP-8200 gdevep82.jis
++ 8. ESC/Page 300dpi generic gdevepag.jis
++ 9. Star JJ-100 gdevj100.jis
++ 10. LIPS III generic gdevlips4.euc
++ 11. LIPS IV , IVc generic gdevlips4.euc
++ 12. MAG format gdevmag.sj
++ 13. MJC720, 800, 900, 5000 gdevmjc.jis
++ 14. MJ-500C gdevmjc.jis
++ 15. NEC PC-PR150 gdevp201.jis
++ 16. NEC PC-PR201 gdevp201.jis
++ 17. NEC PC-PR1000 /4 gdevp201.jis
++
++ $B$r;29M$K$7$F2<$5$$!#(B
diff --git a/japanese/vfghostscript/files/patch-ad b/japanese/vfghostscript/files/patch-ad
new file mode 100644
index 000000000000..b35572bb9ad3
--- /dev/null
+++ b/japanese/vfghostscript/files/patch-ad
@@ -0,0 +1,11 @@
+--- ../gdevpatch/gdevcdj.c Wed Oct 16 11:48:37 1996
++++ ./gdevcdj.c Wed Oct 16 11:35:32 1996
+@@ -1397,7 +1397,7 @@
+ } else if (ptype == ESC_P) {
+ fputs("\033@", prn_stream); /* Reset printer */
+ ep_print_image(prn_stream, 'R', 0, 0); /* reset output routine */
+- } if (ptype == BJC600J) {
++ } else if (ptype == BJC600J) {
+ bj_init_page(pdev, prn_stream);
+ } else {
+ fputs("\033E", prn_stream); /* Reset printer */
diff --git a/japanese/vfghostscript/files/printer.sh b/japanese/vfghostscript/files/printer.sh
new file mode 100644
index 000000000000..a8e8b2e53397
--- /dev/null
+++ b/japanese/vfghostscript/files/printer.sh
@@ -0,0 +1,130 @@
+#!/bin/sh
+
+# if called with an extra argument, assume it's "BATCH"
+if [ $# = 1 ]; then
+ BATCH=yes
+fi
+
+PRINTER_DEVS=
+DONE=no
+while [ "$DONE" != "yes" ];
+do
+ if [ "$BATCH" = "yes" ]; then
+ CHOICE=18
+ else
+ echo "Select printers."
+ echo "Separate multiple entries with white spaces."
+ echo "1. Canon BJ-10V"
+ echo "2. Canon BJC-600J"
+ echo "3. HP DeskJet 500C"
+ echo "4. HP DeskJet 550C"
+ echo "5. HP DeskJet 505J"
+ echo "6. generic dot impact printer"
+ echo "7. Epson LP-1700, LP-8200 (ESC/PS 300/600 dpi)"
+ echo "8. ESC/Page 300dpi generic"
+ echo "9. Star JJ-100"
+ echo "10. LIPS III generic"
+ echo "11. LIPS IV , IVc generic"
+ echo "12. MAG format"
+ echo "13. MJC720, 800, 900, 5000 (ESC/P at 180/360/720 dpi)"
+ echo "14. MJ-500C"
+ echo "15. NEC PC-PR150"
+ echo "16. NEC PC-PR201"
+ echo "17. NEC PC-PR1000 /4"
+ echo "18. All"
+ echo "19. Done"
+ echo -n "> "
+ read CHOICE
+ echo $CHOICE
+ fi
+ for i in $CHOICE; do
+ case $i in
+ 1)
+ PRINTER_DEVS="$PRINTER_DEVS bj10v.dev bj10vh.dev"
+ echo "Added Canon BJ-10V."
+ ;;
+ 2)
+ PRINTER_DEVS="$PRINTER_DEVS bjc600j.dev bjc600jc.dev"
+ echo "Added Canon BJC-600J."
+ ;;
+ 3)
+ PRINTER_DEVS="$PRINTER_DEVS cdj500.dev"
+ echo "Added HP DeskJet 500C."
+ ;;
+ 4)
+ PRINTER_DEVS="$PRINTER_DEVS cdj550.dev"
+ echo "Added HP DeskJet 550C."
+ ;;
+ 5)
+ PRINTER_DEVS="$PRINTER_DEVS dj505j.dev dj505jc.dev"
+ echo "Added HP DeskJet 505J."
+ ;;
+ 6)
+ PRINTER_DEVS="$PRINTER_DEVS dmprt.dev"
+ echo "Added generic dot impact printer."
+ ;;
+ 7)
+ PRINTER_DEVS="$PRINTER_DEVS epag300.dev epag600.dev"
+ echo "Added Epson LP-8200 (ESC/Page 300/600 dpi)."
+ ;;
+ 8)
+ PRINTER_DEVS="$PRINTER_DEVS epag.dev"
+ echo "Added ESC/Page 300dpi generic."
+ ;;
+ 9)
+ PRINTER_DEVS="$PRINTER_DEVS jj100.dev"
+ echo "Added Star JJ-100."
+ ;;
+ 10)
+ PRINTER_DEVS="$PRINTER_DEVS lips3.dev"
+ echo "Added LIPS III generic."
+ ;;
+ 11)
+ PRINTER_DEVS="$PRINTER_DEVS lips4.dev lips4c.dev"
+ echo "Added LIPS IV, IVc generic."
+ ;;
+ 12)
+ PRINTER_DEVS="$PRINTER_DEVS mag16.dev mag256.dev"
+ echo "Added MAG format."
+ ;;
+ 13)
+ PRINTER_DEVS="$PRINTER_DEVS mjc180.dev mjc360.dev mjc720.dev"
+ echo "Added MJC720, 800, 900, 5000 (ESC/P at 180/360/720 dpi)."
+ ;;
+ 14)
+ PRINTER_DEVS="$PRINTER_DEVS mj500c.dev"
+ echo "Added MJ-500C."
+ ;;
+ 15)
+ PRINTER_DEVS="$PRINTER_DEVS pr150.dev"
+ echo "Added NEC PC-PR150."
+ ;;
+ 16)
+ PRINTER_DEVS="$PRINTER_DEVS pr201.dev"
+ echo "Added NEC PC-PR201."
+ ;;
+ 17)
+ PRINTER_DEVS="$PRINTER_DEVS pr1000.dev pr1000_4.dev"
+ echo "Added NEC PC-PR1000 /4."
+ ;;
+ 18)
+ PRINTER_DEVS='bj10v.dev bj10vh.dev bjc600j.dev bjc600jc.dev cdj500.dev cdj550.dev dj505j.dev dj505jc.dev dmprt.dev epag300.dev epag600.dev epag.dev jj100.dev lips3.dev lips4.dev lips4c.dev mag16.dev mag256.dev mjc180.dev mjc360.dev mjc720.dev mj500c.dev pr150.dev pr201.dev'
+ echo "All."
+ DONE=yes
+ ;;
+ 19)
+ echo "Done."
+ DONE=yes
+ ;;
+ *)
+ PRINTER_DEVS='bj10v.dev bj10vh.dev bjc600j.dev bjc600jc.dev cdj500.dev cdj550.dev dj505j.dev dj505jc.dev dmprt.dev epag300.dev epag600.dev epag.dev jj100.dev lips3.dev lips4.dev lips4c.dev mag16.dev mag256.dev mjc180.dev mjc360.dev mjc720.dev mj500c.dev pr150.dev pr201.dev'
+ echo "All."
+ DONE=yes
+ ;;
+ esac
+ done
+done
+
+
+mv Makefile Makefile.org
+sed -e "s/DEVICE_DEVS=x11.dev/DEVICE_DEVS=x11.dev $PRINTER_DEVS/" Makefile.org >Makefile
diff --git a/japanese/vfghostscript/files/unix-gcc.mak.patch b/japanese/vfghostscript/files/unix-gcc.mak.patch
new file mode 100644
index 000000000000..1fd4bd0f72bc
--- /dev/null
+++ b/japanese/vfghostscript/files/unix-gcc.mak.patch
@@ -0,0 +1,93 @@
+*** unix-gcc.mak.orig Thu Apr 9 18:16:54 1908
+--- unix-gcc.mak Thu Apr 9 18:35:45 1908
+***************
+*** 82,95 ****
+ # specific stuff that <math.h> typically needs; nevertheless, we expect
+ # gcc to accept ANSI-style function prototypes and function definitions.
+
+! CFLAGS=-g -O $(XCFLAGS) -DCOMPFONT -DWMODE -DKANJI
+
+ # Define platform flags for ld.
+ # SunOS and some others want -X; Ultrix wants -x.
+ # SunOS 4.n may need -Bstatic.
+ # XLDFLAGS can be set from the command line.
+
+! LDFLAGS=$(XLDFLAGS)
+
+ # Define any extra libraries to link into the executable.
+ # ISC Unix 2.2 wants -linet.
+--- 82,96 ----
+ # specific stuff that <math.h> typically needs; nevertheless, we expect
+ # gcc to accept ANSI-style function prototypes and function definitions.
+
+! CFLAGS=-O -m486 $(XCFLAGS) -DCOMPFONT -DWMODE -DKANJI -D_POSIX_SOURCE \
+! -D_HAVE_PARAM_H -I/usr/local/include
+
+ # Define platform flags for ld.
+ # SunOS and some others want -X; Ultrix wants -x.
+ # SunOS 4.n may need -Bstatic.
+ # XLDFLAGS can be set from the command line.
+
+! LDFLAGS=$(XLDFLAGS) -L/usr/local/lib
+
+ # Define any extra libraries to link into the executable.
+ # ISC Unix 2.2 wants -linet.
+***************
+*** 104,122 ****
+ # Note that x_.h expects to find the header files in $(XINCLUDE)/X11,
+ # not in $(XINCLUDE).
+
+! XINCLUDE=-I/usr/local/X/include
+
+ # Define the directory/ies for the X11 library files.
+ # This can be null if these files are in the default linker search path.
+
+! XLIBDIRS=-L/usr/local/X/lib
+
+ # ------ Devices and features ------ #
+
+ # Choose the language feature(s) to include. See gs.mak for details.
+
+ FEATURE_DEVS=filter.dev dps.dev level2.dev kanji.dev \
+! kfpcf.dev kfsnf.dev kfzeit.dev kfztbez.dev kfjtex.dev
+
+ # Choose the device(s) to include. See devs.mak for details.
+
+--- 105,124 ----
+ # Note that x_.h expects to find the header files in $(XINCLUDE)/X11,
+ # not in $(XINCLUDE).
+
+! XINCLUDE=-I/usr/X11R6/include
+
+ # Define the directory/ies for the X11 library files.
+ # This can be null if these files are in the default linker search path.
+
+! XLIBDIRS=-L/usr/X11R6/lib
+
+ # ------ Devices and features ------ #
+
+ # Choose the language feature(s) to include. See gs.mak for details.
+
+ FEATURE_DEVS=filter.dev dps.dev level2.dev kanji.dev \
+! kfpcf.dev kfsnf.dev kfzeit.dev kfztbez.dev kfjtex.dev \
+! kfvflib.dev
+
+ # Choose the device(s) to include. See devs.mak for details.
+
+***************
+*** 1552,1558 ****
+ # E.g,. to make A4 paper the default, change the second line below this to
+ # $(CCC) -DA4 gdevdjet.c
+ gdevcdj.$(OBJ): gdevcdj.c $(PDEVH) $(gdevpcl_h)
+! $(CCC) gdevcdj.c
+
+ djet500c_=gdevdjtc.$(OBJ) $(HPPCL)
+ djet500c.dev: $(djet500c_)
+--- 1554,1560 ----
+ # E.g,. to make A4 paper the default, change the second line below this to
+ # $(CCC) -DA4 gdevdjet.c
+ gdevcdj.$(OBJ): gdevcdj.c $(PDEVH) $(gdevpcl_h)
+! $(CCC) -DA4 gdevcdj.c
+
+ djet500c_=gdevdjtc.$(OBJ) $(HPPCL)
+ djet500c.dev: $(djet500c_)
diff --git a/japanese/vfghostscript/pkg-comment b/japanese/vfghostscript/pkg-comment
new file mode 100644
index 000000000000..0dbe463ce1e5
--- /dev/null
+++ b/japanese/vfghostscript/pkg-comment
@@ -0,0 +1 @@
+GNU Postscript interpreter + Japanese VFontlib patch.
diff --git a/japanese/vfghostscript/pkg-descr b/japanese/vfghostscript/pkg-descr
new file mode 100644
index 000000000000..dfdaefb7b299
--- /dev/null
+++ b/japanese/vfghostscript/pkg-descr
@@ -0,0 +1,39 @@
+This is ghostscript 2.6.2 with Japanese & VFlib-2.x patch.
+With this package you can see PostScript file on X11 Window System and
+print out by your printer.
+
+Check before using Ghostscript:
+
+Make sure that your vfontcap is well configured.
+ This package expects by default that 'vfontcap' file contains KANJI entry for:
+ min - Entry for Mincho
+ goth - Entry for Gothic .
+
+ You can verify that font name min and goth are available by typing:
+ /usr/local/lib/VFlib/ktest -f min
+ /usr/local/lib/VFlib/ktest -f goth
+
+Note: These KANJI entry can be changed to another name by changing
+/usr/local/lib/ghostscript/kanji/kconfig.ps (kanji/vflib.ps is the original),
+but the name must be consistent in both 'vfontcap' file and 'kconfig.ps' file.
+See /usr/local/lib/ghostscript/doc/gs261j.jis for details.
+
+Many printers are available with this package:
+1. Canon BJ-10V
+2. Canon BJC-600J
+3. HP DeskJet 500C
+4. HP DeskJet 550C
+5. HP DeskJet 505J
+6. generic dot impact printer
+7. Epson LP-1700, LP-8200 (ESC/PS 300/600 dpi)
+8. ESC/Page 300dpi generic
+9. Star JJ-100
+10. LIPS III generic
+11. LIPS IV , IVc generic
+12. MAG format
+13. MJC720, 800, 900, 5000 (ESC/P at 180/360/720 dpi)
+14. MJ-500C
+15. NEC PC-PR150
+16. NEC PC-PR201
+17. NEC PC-PR1000 /4
+See /usr/local/lib/ghostscript/doc/printers.doc for using these printers.
diff --git a/japanese/vfghostscript/pkg-plist b/japanese/vfghostscript/pkg-plist
new file mode 100644
index 000000000000..c1143d3e8695
--- /dev/null
+++ b/japanese/vfghostscript/pkg-plist
@@ -0,0 +1,279 @@
+bin/gs
+bin/gsbj
+bin/gsdj
+bin/gslj
+bin/gslp
+bin/gsnd
+bin/bdftops
+bin/font2c
+bin/ps2ascii
+bin/ps2epsi
+bin/paramod
+lib/ghostscript/Fontmap
+lib/ghostscript/README
+lib/ghostscript/bdftops.ps
+lib/ghostscript/decrypt.ps
+lib/ghostscript/dmp_init.ps
+lib/ghostscript/dmp_site.ps
+lib/ghostscript/font2c.ps
+lib/ghostscript/gamma15.ps
+lib/ghostscript/gamma20.ps
+lib/ghostscript/gamma30.ps
+lib/ghostscript/gs_dbt_e.ps
+lib/ghostscript/gs_dps1.ps
+lib/ghostscript/gs_fonts.ps
+lib/ghostscript/gs_init.ps
+lib/ghostscript/gs_lev2.ps
+lib/ghostscript/gs_statd.ps
+lib/ghostscript/gs_sym_e.ps
+lib/ghostscript/gs_type0.ps
+lib/ghostscript/gslp.ps
+lib/ghostscript/impath.ps
+lib/ghostscript/landscap.ps
+lib/ghostscript/level1.ps
+lib/ghostscript/mirrorA4.ps
+lib/ghostscript/prfont.ps
+lib/ghostscript/ps2ascii.ps
+lib/ghostscript/ps2epsi.ps
+lib/ghostscript/ps2image.ps
+lib/ghostscript/pstoppm.ps
+lib/ghostscript/quit.ps
+lib/ghostscript/showpage.ps
+lib/ghostscript/testpage.ps
+lib/ghostscript/type1ops.ps
+lib/ghostscript/uglyr.gsf
+lib/ghostscript/wrfont.ps
+lib/ghostscript/doc/MJ700V2C.FAQ
+lib/ghostscript/doc/NEWS
+lib/ghostscript/doc/ansi2knr.1
+lib/ghostscript/doc/bjc600j.jis
+lib/ghostscript/doc/cmds.doc
+lib/ghostscript/doc/devices.doc
+lib/ghostscript/doc/drivers.doc
+lib/ghostscript/doc/escp_24.src
+lib/ghostscript/doc/fonts.doc
+lib/ghostscript/doc/gdev10v.jis
+lib/ghostscript/doc/gdev505j.sj
+lib/ghostscript/doc/gdevdmpr.sj
+lib/ghostscript/doc/gdevep82.jis
+lib/ghostscript/doc/gdevepag.jis
+lib/ghostscript/doc/gdevj100.jis
+lib/ghostscript/doc/gdevlips4.euc
+lib/ghostscript/doc/gdevmag.sj
+lib/ghostscript/doc/gdevmjc.jis
+lib/ghostscript/doc/gdevp201.jis
+lib/ghostscript/doc/gs.1
+lib/ghostscript/doc/gs261j.jis
+lib/ghostscript/doc/hershey.doc
+lib/ghostscript/doc/history.doc
+lib/ghostscript/doc/humor.doc
+lib/ghostscript/doc/language.doc
+lib/ghostscript/doc/lib.doc
+lib/ghostscript/doc/make.doc
+lib/ghostscript/doc/printers.jis
+lib/ghostscript/doc/ps2epsi.doc
+lib/ghostscript/doc/psfiles.doc
+lib/ghostscript/doc/readme.doc
+lib/ghostscript/doc/use.doc
+lib/ghostscript/doc/xfonts.doc
+lib/ghostscript/examples/cheq.ps
+lib/ghostscript/examples/chess.ps
+lib/ghostscript/examples/colorcir.ps
+lib/ghostscript/examples/escher.ps
+lib/ghostscript/examples/golfer.ps
+lib/ghostscript/examples/snowflak.ps
+lib/ghostscript/examples/tiger.ps
+lib/ghostscript/fonts/COPYING
+lib/ghostscript/fonts/a010013l.afm
+lib/ghostscript/fonts/a010013l.pfb
+lib/ghostscript/fonts/a010013l.pfm
+lib/ghostscript/fonts/a010015l.afm
+lib/ghostscript/fonts/a010015l.pfb
+lib/ghostscript/fonts/a010015l.pfm
+lib/ghostscript/fonts/a010033l.afm
+lib/ghostscript/fonts/a010033l.pfb
+lib/ghostscript/fonts/a010033l.pfm
+lib/ghostscript/fonts/a010035l.afm
+lib/ghostscript/fonts/a010035l.pfb
+lib/ghostscript/fonts/a010035l.pfm
+lib/ghostscript/fonts/b018012l.afm
+lib/ghostscript/fonts/b018012l.pfb
+lib/ghostscript/fonts/b018012l.pfm
+lib/ghostscript/fonts/b018015l.afm
+lib/ghostscript/fonts/b018015l.pfb
+lib/ghostscript/fonts/b018015l.pfm
+lib/ghostscript/fonts/b018032l.afm
+lib/ghostscript/fonts/b018032l.pfb
+lib/ghostscript/fonts/b018032l.pfm
+lib/ghostscript/fonts/b018035l.afm
+lib/ghostscript/fonts/b018035l.pfb
+lib/ghostscript/fonts/b018035l.pfm
+lib/ghostscript/fonts/bchb.afm
+lib/ghostscript/fonts/bchb.gsf
+lib/ghostscript/fonts/bchbi.afm
+lib/ghostscript/fonts/bchbi.gsf
+lib/ghostscript/fonts/bchr.afm
+lib/ghostscript/fonts/bchr.gsf
+lib/ghostscript/fonts/bchri.afm
+lib/ghostscript/fonts/bchri.gsf
+lib/ghostscript/fonts/c059013l.afm
+lib/ghostscript/fonts/c059013l.pfb
+lib/ghostscript/fonts/c059013l.pfm
+lib/ghostscript/fonts/c059016l.afm
+lib/ghostscript/fonts/c059016l.pfb
+lib/ghostscript/fonts/c059016l.pfm
+lib/ghostscript/fonts/c059033l.afm
+lib/ghostscript/fonts/c059033l.pfb
+lib/ghostscript/fonts/c059033l.pfm
+lib/ghostscript/fonts/c059036l.afm
+lib/ghostscript/fonts/c059036l.pfb
+lib/ghostscript/fonts/c059036l.pfm
+lib/ghostscript/fonts/cyr.gsf
+lib/ghostscript/fonts/cyri.gsf
+lib/ghostscript/fonts/d050000l.afm
+lib/ghostscript/fonts/d050000l.pfb
+lib/ghostscript/fonts/d050000l.pfm
+lib/ghostscript/fonts/hrge_r.gsf
+lib/ghostscript/fonts/hrge_rb.gsf
+lib/ghostscript/fonts/hrge_ro.gsf
+lib/ghostscript/fonts/hrgk_c.gsf
+lib/ghostscript/fonts/hrgk_s.gsf
+lib/ghostscript/fonts/hrgr_r.gsf
+lib/ghostscript/fonts/hrgr_rb.gsf
+lib/ghostscript/fonts/hrgr_ro.gsf
+lib/ghostscript/fonts/hrit_r.gsf
+lib/ghostscript/fonts/hrit_rb.gsf
+lib/ghostscript/fonts/hrit_ro.gsf
+lib/ghostscript/fonts/hrpl_r.gsf
+lib/ghostscript/fonts/hrpl_rb.gsf
+lib/ghostscript/fonts/hrpl_ro.gsf
+lib/ghostscript/fonts/hrpl_s.gsf
+lib/ghostscript/fonts/hrpl_sb.gsf
+lib/ghostscript/fonts/hrpl_sbo.gsf
+lib/ghostscript/fonts/hrpl_so.gsf
+lib/ghostscript/fonts/hrpl_t.gsf
+lib/ghostscript/fonts/hrpl_tb.gsf
+lib/ghostscript/fonts/hrpl_tbi.gsf
+lib/ghostscript/fonts/hrpl_ti.gsf
+lib/ghostscript/fonts/hrsc_c.gsf
+lib/ghostscript/fonts/hrsc_cb.gsf
+lib/ghostscript/fonts/hrsc_co.gsf
+lib/ghostscript/fonts/hrsc_s.gsf
+lib/ghostscript/fonts/hrsc_sb.gsf
+lib/ghostscript/fonts/hrsc_so.gsf
+lib/ghostscript/fonts/hrsy_r.gsf
+lib/ghostscript/fonts/n019003l.afm
+lib/ghostscript/fonts/n019003l.gsf
+lib/ghostscript/fonts/n019003l.pfb
+lib/ghostscript/fonts/n019003l.pfm
+lib/ghostscript/fonts/n019004l.afm
+lib/ghostscript/fonts/n019004l.pfb
+lib/ghostscript/fonts/n019004l.pfm
+lib/ghostscript/fonts/n019023l.afm
+lib/ghostscript/fonts/n019023l.pfb
+lib/ghostscript/fonts/n019023l.pfm
+lib/ghostscript/fonts/n019024l.afm
+lib/ghostscript/fonts/n019024l.pfb
+lib/ghostscript/fonts/n019024l.pfm
+lib/ghostscript/fonts/n019043l.afm
+lib/ghostscript/fonts/n019043l.pfb
+lib/ghostscript/fonts/n019043l.pfm
+lib/ghostscript/fonts/n019044l.afm
+lib/ghostscript/fonts/n019044l.pfb
+lib/ghostscript/fonts/n019044l.pfm
+lib/ghostscript/fonts/n019063l.afm
+lib/ghostscript/fonts/n019063l.pfb
+lib/ghostscript/fonts/n019063l.pfm
+lib/ghostscript/fonts/n019064l.afm
+lib/ghostscript/fonts/n019064l.pfb
+lib/ghostscript/fonts/n019064l.pfm
+lib/ghostscript/fonts/n021003l.afm
+lib/ghostscript/fonts/n021003l.gsf
+lib/ghostscript/fonts/n021003l.pfb
+lib/ghostscript/fonts/n021003l.pfm
+lib/ghostscript/fonts/n021004l.afm
+lib/ghostscript/fonts/n021004l.pfb
+lib/ghostscript/fonts/n021004l.pfm
+lib/ghostscript/fonts/n021023l.afm
+lib/ghostscript/fonts/n021023l.pfb
+lib/ghostscript/fonts/n021023l.pfm
+lib/ghostscript/fonts/n021024l.afm
+lib/ghostscript/fonts/n021024l.pfb
+lib/ghostscript/fonts/n021024l.pfm
+lib/ghostscript/fonts/n022003l.afm
+lib/ghostscript/fonts/n022003l.pfb
+lib/ghostscript/fonts/n022003l.pfm
+lib/ghostscript/fonts/n022004l.afm
+lib/ghostscript/fonts/n022004l.pfb
+lib/ghostscript/fonts/n022004l.pfm
+lib/ghostscript/fonts/n022023l.afm
+lib/ghostscript/fonts/n022023l.pfb
+lib/ghostscript/fonts/n022023l.pfm
+lib/ghostscript/fonts/n022024l.afm
+lib/ghostscript/fonts/n022024l.pfb
+lib/ghostscript/fonts/n022024l.pfm
+lib/ghostscript/fonts/ncrb.gsf
+lib/ghostscript/fonts/ncrbi.gsf
+lib/ghostscript/fonts/ncrr.gsf
+lib/ghostscript/fonts/ncrri.gsf
+lib/ghostscript/fonts/p052003l.afm
+lib/ghostscript/fonts/p052003l.pfb
+lib/ghostscript/fonts/p052003l.pfm
+lib/ghostscript/fonts/p052004l.afm
+lib/ghostscript/fonts/p052004l.pfb
+lib/ghostscript/fonts/p052004l.pfm
+lib/ghostscript/fonts/p052023l.afm
+lib/ghostscript/fonts/p052023l.pfb
+lib/ghostscript/fonts/p052023l.pfm
+lib/ghostscript/fonts/p052024l.afm
+lib/ghostscript/fonts/p052024l.pfb
+lib/ghostscript/fonts/p052024l.pfm
+lib/ghostscript/fonts/psyr.gsf
+lib/ghostscript/fonts/putb.gsf
+lib/ghostscript/fonts/putbi.gsf
+lib/ghostscript/fonts/putr.gsf
+lib/ghostscript/fonts/putri.gsf
+lib/ghostscript/fonts/pzdr.afm
+lib/ghostscript/fonts/s050000l.afm
+lib/ghostscript/fonts/s050000l.pfb
+lib/ghostscript/fonts/s050000l.pfm
+lib/ghostscript/fonts/u003043t.afm
+lib/ghostscript/fonts/u003043t.gsf
+lib/ghostscript/fonts/u004006t.afm
+lib/ghostscript/fonts/u004006t.gsf
+lib/ghostscript/fonts/z003034l.afm
+lib/ghostscript/fonts/z003034l.pfb
+lib/ghostscript/fonts/z003034l.pfm
+lib/ghostscript/fonts/zcb.gsf
+lib/ghostscript/fonts/zcr.gsf
+lib/ghostscript/fonts/zcro.gsf
+lib/ghostscript/kanji/allkanji.ps
+lib/ghostscript/kanji/article9.ps
+lib/ghostscript/kanji/fmaptype.ps
+lib/ghostscript/kanji/hankaku.ps
+lib/ghostscript/kanji/jtex.ps
+lib/ghostscript/kanji/kbase.ps
+lib/ghostscript/kanji/kbitmap.ps
+lib/ghostscript/kanji/kcomp.ps
+lib/ghostscript/kanji/kconfig.ps
+lib/ghostscript/kanji/kfjtex.ps
+lib/ghostscript/kanji/kfpc98.ps
+lib/ghostscript/kanji/kfpcf.ps
+lib/ghostscript/kanji/kfsnf.ps
+lib/ghostscript/kanji/kfsony.ps
+lib/ghostscript/kanji/kfvflib.ps
+lib/ghostscript/kanji/kfzeit.ps
+lib/ghostscript/kanji/kfztbez.ps
+lib/ghostscript/kanji/kinit.ps
+lib/ghostscript/kanji/kmapping.ps
+lib/ghostscript/kanji/koutline.ps
+lib/ghostscript/kanji/metrics2.ps
+lib/ghostscript/kanji/pc98.ps
+lib/ghostscript/kanji/pcf.ps
+lib/ghostscript/kanji/snf.ps
+lib/ghostscript/kanji/sony.ps
+lib/ghostscript/kanji/vchars.ps
+lib/ghostscript/kanji/vflib.ps
+lib/ghostscript/kanji/zeit.ps
+lib/ghostscript/kanji/ztbez.ps
+man/man1/gs.1.gz