計算機メモ目次 (目的のページと内容が一致しない場合, 目次から探してください)
ghostscript 2.6.1 + japanize patch を AIX で作る
《古い》
以下のソースを用意・順に展開とパッチ
gs261j10.tar.gz の展開は gs261 に入って行なう
ghostscript-2.6.1.tar.gz
ghostscript-2.6.1.fix-01.gz
ghostscript-2.6.1.fix-02.gz
ghostscript-2.6.1.fix-03.gz
ghostscript-2.6.1.fix-04.gz
gs261j10.tar.gz
以下 gs261 にカレントディレクトリを移したまま作業
ドライバのコピー
cp drivers/gdevlips/* .
Makefileの編集
unix-ansi.mak を Makefile にコピーし編集
73a74
> CC=gcc
82c83
< CFLAGS=-O $(XCFLAGS) -DCOMPFONT -DWMODE -DKANJI
---
> CFLAGS=-O3 $(XCFLAGS) -DSYSV -DCOMPFONT -DWMODE -DKANJI
105c106
< XINCLUDE=-I/usr/local/X/include
---
> XINCLUDE=-I/usr/include
110c111
< XLIBDIRS=-L/usr/local/X/lib
---
> XLIBDIRS=-L/usr/lib
121,122c122,124
< DEVICE_DEVS=x11.dev
< DEVICE_DEVS9=pbm.dev pbmraw.dev pgm.dev pgmraw.dev ppm.dev ppmraw.dev bit.dev
---
> DEVICE_DEVS=x11.dev lips.dev lips2.dev lips3.dev
> DEVICE_DEVS2=pbm.dev pbmraw.dev pgm.dev pgmraw.dev ppm.dev ppmraw.dev bit.dev
> DEVICE_DEVS3=gifmono.dev gif8.dev
1850a1853,1868
>
> ### ------------ The Canon LIPS-II/II+/III printer device -------------- ###
>
> lips_=gdevlips.$(OBJ) gdevprn.$(OBJ) gdevxprn.$(OBJ) gdevpsiz.$(OBJ)
> lips.dev: $(lips_)
> $(SHP)gssetdev lips $(lips_)
> lips2.dev: $(lips_)
> $(SHP)gssetdev lips2 $(lips_)
> lips3.dev: $(lips_)
> $(SHP)gssetdev lips3 $(lips_)
> ht2313_31.dev: $(lips_)
> $(SHP)gssetdev ht2313_31 $(lips_)
>
> gdevlips.$(OBJ): gdevlips.c gdevxprn.h $(PDEVH)
> gdevxprn.$(OBJ): gdevxprn.c gdevxprn.h $(PDEVH)
> gdevpsiz.$(OBJ): gdevpsiz.c
LIPS関係は drivers/gdevlips/gdevlips.mak を適当に Makefile に追加
d. make
ただし
gcc -O3 -DSYSV -DCOMPFONT -DWMODE -DKANJI -c zcolor.c
がひっかかるときは
cc -O3 -DSYSV -DCOMPFONT -DWMODE -DKANJI -c zcolor.c
とする
e. make install
f. /usr/local/lib/ghostscript/kanji/kconfig.ps の作成 (PCF)
%
% Kanji Font Configuration File (X11R5 PCF Format Font Files)
%
% May. 2, 1992 Written by N.Katayama
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% Example:
% /Ryumin-Light 4300000
% (/usr/local/X11R5/lib/X11/fonts/misc/kanji24.pcf) pcfkanji
%
% Descriptions:
% /Ryumin-Light
% is the name of the Kanji font group to be installed.
% /Ryumin-Light and /GothicBBB-Medium are standard.
%
% 4300000
% is the offset of the identifiers to be used by the group.
% You should specify the offset at intervals of 200,
% because each font group uses about 170 identifiers.
%
% (/usr/local/X11R5/lib/X11/fonts/misc/kanji24.pcf)
% is the name of the font file to be used.
%
% pcfkanji
% is the operator to install Kanji font groups
% with X11R5 PCF format font files.
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
/Ryumin-Light 4300000
(/usr/lib/X11/fonts/misc/jiskan24.pcf) pcfkanji
/GothicBBB-Medium 4300200
(/usr/lib/X11/fonts/misc/k14.pcf) pcfkanji
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% Kanji Font Aliases
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
/Ryumin-Light-RKSJ-H /Ryumin-Light-Ext-RKSJ-H copyfont
/Ryumin-Light-RKSJ-V /Ryumin-Light-Ext-RKSJ-V copyfont
/GothicBBB-Medium-RKSJ-H /GothicBBB-Medium-Ext-RKSJ-H copyfont
/GothicBBB-Medium-RKSJ-V /GothicBBB-Medium-Ext-RKSJ-V copyfont
計算機メモ目次 (目的のページと内容が一致しない場合, 目次から探してください)