diff options
author | asami <asami@FreeBSD.org> | 1996-12-06 19:27:34 +0800 |
---|---|---|
committer | asami <asami@FreeBSD.org> | 1996-12-06 19:27:34 +0800 |
commit | 293b8d6d6c92ea6efc8c8535df543029db28c400 (patch) | |
tree | 8f42f9fed402c770d50e864604f833994351ecde /japanese/vfghostscript5 | |
parent | eaa6a5a910132780bf379c05e0c72d3c0f854230 (diff) | |
download | freebsd-ports-gnome-293b8d6d6c92ea6efc8c8535df543029db28c400.tar.gz freebsd-ports-gnome-293b8d6d6c92ea6efc8c8535df543029db28c400.tar.zst freebsd-ports-gnome-293b8d6d6c92ea6efc8c8535df543029db28c400.zip |
Japanese gs4 using the vector font library. The submitter claims it's
highly addictive.
Submitted by: mita@jp.freebsd.org
Diffstat (limited to 'japanese/vfghostscript5')
-rw-r--r-- | japanese/vfghostscript5/Makefile | 103 | ||||
-rw-r--r-- | japanese/vfghostscript5/distinfo | 8 | ||||
-rw-r--r-- | japanese/vfghostscript5/files/gdevmjc.c.patch | 492 | ||||
-rw-r--r-- | japanese/vfghostscript5/files/mjc.dev.patch | 27 | ||||
-rw-r--r-- | japanese/vfghostscript5/files/patch-aa | 100 | ||||
-rw-r--r-- | japanese/vfghostscript5/files/patch-ab | 19 | ||||
-rw-r--r-- | japanese/vfghostscript5/pkg-comment | 1 | ||||
-rw-r--r-- | japanese/vfghostscript5/pkg-descr | 22 | ||||
-rw-r--r-- | japanese/vfghostscript5/pkg-plist | 316 | ||||
-rw-r--r-- | japanese/vfghostscript5/scripts/configure | 199 |
10 files changed, 1287 insertions, 0 deletions
diff --git a/japanese/vfghostscript5/Makefile b/japanese/vfghostscript5/Makefile new file mode 100644 index 000000000000..fdb6aa2087e4 --- /dev/null +++ b/japanese/vfghostscript5/Makefile @@ -0,0 +1,103 @@ +# New ports collection makefile for: Japanese Aladdin ghostscript + vector font library +# Version required: 4.0.3 +# Date created: 23 Nov 1996 +# Whom: Mita Yoshio <mita@jp.FreeBSD.org> +# +# $Id$ +# + +DISTNAME= ghostscript4.03 +PKGNAME= jp-vfghostscript-4.03 +CATEGORIES+= japanese print +MASTER_SITES= ${MASTER_SITE_GNU} \ + 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/ + +MAINTAINER= mita@jp.FreeBSD.org + +GS_SOURCES= ghostscript-4.03.tar.gz +GS_SOURCES+= ghostscript-4.03gnu.tar.gz +GS_DRIVERS= gs4.03-vflib.tar.gz +GS_DRIVERS+= gdevlips4-1.0.1.tar.gz +GS_DRIVERS+= gdevbitps-1.0.tar.gz +GS_DRIVERS+= gdevmjc-0.7.tar.gz +GS_FONTS_STD= ghostscript-fonts-std-4.01.tar.gz # didn't change +GS_FONTS_OTHER= ghostscript-fonts-other-4.01.tar.gz # didn't change + +DISTFILES= ${GS_SOURCES} ${GS_DRIVERS} ${GS_FONTS_STD} ${GS_FONTS_OTHER} + +LIB_DEPENDS= VFlib\\.2\\.:${PORTSDIR}/japanese/vflib + +EXTRACT_ONLY= ghostscript-4.03.tar.gz + +WRKSRC= ${WRKDIR}/gs4.03 +MAKEFILE= unix-gcc.mak +CFLAGS+= -DA4 +DOC_DIR= ${PREFIX}/share/ghostscript/4.03vflib/doc +PRINTER= ${WRKSRC}/jp-printers +MAKE_FLAGS= prefix=${PREFIX} zlibc_=-lz CFLAGS="${CFLAGS}" -f +MAN1= gs.1 + +pre-extract: + @(cd ${PORTSDIR}/graphics/jpeg ; ${MAKE} extract) + @(cd ${PORTSDIR}/graphics/png ; ${MAKE} extract) + +pre-patch: + @(cd ${WRKSRC} ; tar xzf ${DISTDIR}/gs4.03-vflib.tar.gz ) + @(cd ${WRKDIR} ; \ + ${PATCH} -p < ${WRKSRC}/gs4.03-vflib/gs4.03-vflib.diff >/dev/null 2>&1; \ + ) + +post-patch: + @( mkdir ${PRINTER} ; \ + cd ${PRINTER} ; \ + tar xzf ${DISTDIR}/gdevbitps-1.0.tar.gz ; \ + ${PATCH} -p0 < ${FILESDIR}/gdevep82.patch >/dev/null 2>&1 ; \ + tar xzf ${DISTDIR}/gdevlips4-1.0.1.tar.gz ; \ + tar xzf ${DISTDIR}/gdevmjc-0.7.tar.gz ; \ + ${CP} gdevmjc-0.7/gdevmjc.c gdevmjc-0.7/mjc.dev ${WRKSRC}; \ + ${CP} gdevlips4-1.0.1/gdevlips4.c gdevlips4-1.0.1/gdevlips4.mak ${WRKSRC}; \ + ${CP} gdevep82/gdevep82.c gdevep82/gdevep82.mak ${WRKSRC}; \ + ${CP} gdevbitps/gdevbitps.c gdevbitps/bitps4.03.mak ${WRKSRC}; \ + ) + @${PATCH} ${PATCH_ARGS} < ${FILESDIR}/gdevlips4.mak.patch + @${PATCH} ${PATCH_ARGS} < ${FILESDIR}/gdevlips4.c.patch + @${PATCH} ${PATCH_ARGS} < ${FILESDIR}/mjc.dev.patch + @${PATCH} ${PATCH_ARGS} < ${FILESDIR}/gdevmjc.c.patch + @${CAT} ${WRKSRC}/bitps4.03.mak >> ${WRKSRC}/unix-gcc.mak + @${CAT} ${WRKSRC}/gdevep82.mak >> ${WRKSRC}/unix-gcc.mak + @${CAT} ${WRKSRC}/gdevlips4.mak >> ${WRKSRC}/unix-gcc.mak + @${CAT} ${WRKSRC}/mjc.dev >> ${WRKSRC}/unix-gcc.mak + + +do-configure: +.if defined(BATCH) + @${SETENV} PORTSDIR=${PORTSDIR} WRKSRC=${WRKSRC} \ + /bin/sh ${SCRIPTDIR}/configure.batch +.else + @${SETENV} PORTSDIR=${PORTSDIR} WRKSRC=${WRKSRC} \ + /bin/sh ${SCRIPTDIR}/configure +.endif + +pre-install: + @tar -C ${PREFIX}/share/ghostscript -xzf ${DISTDIR}/${GS_FONTS_STD} + @tar -C ${PREFIX}/share/ghostscript -xzf ${DISTDIR}/${GS_FONTS_OTHER} + + +post-install: + @strip ${PREFIX}/bin/gs ; + @( \ + ${CP} ${PRINTER}/gdevbitps/gdevbitps.jis ${DOC_DIR} ; \ + ${CP} ${PRINTER}/gdevep82/gdevep82.jis ${DOC_DIR} ; \ + ${CP} ${PRINTER}/gdevlips4-1.0.1/Readme ${DOC_DIR}/gdevlips4.euc ; \ + ${CP} ${PRINTER}/gdevmjc-0.7/README.jis ${DOC_DIR}/gdevmjc.jis ; \ + ${CP} ${PRINTER}/gdevmjc-0.7/MJ700V2C.FAQ ${DOC_DIR} ; \ + ) + +pre-clean: + @(cd ${PORTSDIR}/graphics/jpeg ; ${MAKE} clean) + @(cd ${PORTSDIR}/graphics/png ; ${MAKE} clean) + +.include <bsd.port.mk> diff --git a/japanese/vfghostscript5/distinfo b/japanese/vfghostscript5/distinfo new file mode 100644 index 000000000000..7bfd396341ab --- /dev/null +++ b/japanese/vfghostscript5/distinfo @@ -0,0 +1,8 @@ +MD5 (ghostscript-4.03.tar.gz) = 6a466ffdb3414e741da471a53a85dcab +MD5 (ghostscript-4.03gnu.tar.gz) = 269c51c3054d9945b5acc145cb412c22 +MD5 (gs4.03-vflib.tar.gz) = 9935e711db0a4ffaa68407fef704a3d7 +MD5 (gdevlips4-1.0.1.tar.gz) = 150de01fbdcd88c2579d4f45efa7762e +MD5 (gdevbitps-1.0.tar.gz) = ab9d251877dab7de718568cd2be27081 +MD5 (gdevmjc-0.7.tar.gz) = c96febe81ef1b467cf2050cc918001e7 +MD5 (ghostscript-fonts-std-4.01.tar.gz) = 1e0fe2149affd80deaaae144227049b9 +MD5 (ghostscript-fonts-other-4.01.tar.gz) = afe46faf7fde6518ae004a7e8d9a4af4 diff --git a/japanese/vfghostscript5/files/gdevmjc.c.patch b/japanese/vfghostscript5/files/gdevmjc.c.patch new file mode 100644 index 000000000000..b1313a081801 --- /dev/null +++ b/japanese/vfghostscript5/files/gdevmjc.c.patch @@ -0,0 +1,492 @@ +From root Fri Nov 22 01:20:20 1996 +Received: from theta.iis.u-tokyo.ac.jp by daikon.fujita3.iis.u-tokyo.ac.jp (AIX 3.2/UCB 5.64/3.4W2) + id AA18127; Fri, 22 Nov 1996 01:20:20 +0900 +Received: from contura.sail.t.u-tokyo.ac.jp by theta.iis.u-tokyo.ac.jp (8.7.5+2.6Wbeta6/3.4W4) with ESMTP id BAA07053; Fri, 22 Nov 1996 01:20:12 +0900 (JST) +Received: (from kurosawa@localhost) by contura.sail.t.u-tokyo.ac.jp (8.7.6/3.4Wbeta6/Sail961016) id BAA11954; Fri, 22 Nov 1996 01:19:56 +0900 (JST) +Date: Fri, 22 Nov 1996 01:19:56 +0900 (JST) +Message-Id: <199611211619.BAA11954@contura.sail.t.u-tokyo.ac.jp> +To: mita@iis.u-tokyo.ac.jp +Subject: mjc-patch +From: kurosawa@sail.t.u-tokyo.ac.jp (KUROSAWA Takahiro) +X-Mailer: mnews [version 1.19PL2] 1996-01/26(Fri) + +$B9uBt$G$9(B. + +$B$h$&$d$/$G$-$^$7$?(B, $B$?$V$s(B. $B$?$@$G$5$(F,$,2u$l$.$_$@$H8@$o$l$F$$$k$N$K(B +$B$5$i$K$A$g$C$H:#F|(B($B:rF|$+(B)$B$O$D$+$l$F$F(B, $BF,$,AjEvJQ$@$C$?$_$?$$$G$9(B. +$B:rF|J,$N%a!<%k$OL5;k$7$A$c$C$F$/$@$5$$(B. + +# $B$5$C$-=P$7$?!V%(%i!<$,$G$k$h!A!W%a!<%k$N860x$G$9$1$I!$C1$K%U%)%s%H$r%$(B +# $B%s%9%H!<%k$7$F$J$+$C$?$s$G$9(B. $B$4$a$s$J$5$$(B.... + +$B!V=PNO%U%!%$%k$K=P$J$$!W$N7o$G$9$1$I(B, $B$A$g$C$H$7$?%1%"%l%9%_%9$H$$$&$+(B, +$B9uBt$,$h$/(B gs $B$NFbIt9=B$$rM}2r$7$F$J$$$N$,860x$G$7$?(B. $B<B$O$"$N>u67$G$O(B +/tmp $B$K%U%!%$%k$,$G$-$F$$$?$N$G$9(B. + +$B$3$l$G?'$H$+%9%1!<%k$N<:GT$,$J$1$l$P$$$$$N$G$9$,(B, $B$"$^$j$=$&$&$^$/$O$$(B +$B$+$J$$$H$*$b$$$^$9(B. $B%9%1!<%k$NJ}$OLdBj$J$$$+$b$7$l$^$;$s$,(B, $B?'?t$r8:$i(B +$B$7$?$i$I$&$J$k$+$A$g$C$H?4G[$G$9(B. + +$B$F$J$o$1$G(B, $B$*$?$a$7$/$@$5$$(B. $B%*%j%8%J%k$+$i$N%Q%C%A$G$9(B. +# $B%*%j%8%J%k$+$i$N%Q%C%A$K$7$?$O$:$G$9$1$I(B, $B:#F|$N>u67$@$H$A$g$C$H<+?.(B +# $B$r;}$F$J$$(B(^^;) + + +*** gdevmjc.c.org Fri Nov 22 00:27:16 1996 +--- gdevmjc.c Fri Nov 22 00:35:20 1996 +*************** +*** 43,49 **** + #include <limits.h> + #include "gdevprn.h" + #include "gdevpcl.h" +! #include "gsprops.h" + + /*** + *** Note: Original driver gdevcdj.c for HP color printer was written +--- 43,50 ---- + #include <limits.h> + #include "gdevprn.h" + #include "gdevpcl.h" +! #include "gsparam.h" +! #include "gsstate.h" + + /*** + *** Note: Original driver gdevcdj.c for HP color printer was written +*************** +*** 139,145 **** +--- 140,148 ---- + + /* Undefined macros expected to be defined in gdevpcl.h */ + #define PAPER_SIZE_A3_NOBI 28 ++ #ifndef PAPER_SIZE_A2 + #define PAPER_SIZE_A2 29 ++ #endif + #define PAPER_SIZE_B4 30 + #define PAPER_SIZE_B5 31 + +*************** +*** 179,193 **** + private dev_proc_print_page(mjc720_print_page); + private dev_proc_print_page(mj500c_print_page); + +! private dev_proc_get_props(mj_get_props); +! private dev_proc_put_props(mj_put_props); + + private void expand_line(word *, int, int, int); + +! private int put_prop_float(gs_prop_item *, float *, float, float, int); +! private int put_prop_int(gs_prop_item *, int *, int, int, int); +! +! private void set_bpp(gx_device *, int); + + private uint gdev_prn_rasterwidth(const gx_device_printer *, int ); + +--- 182,194 ---- + private dev_proc_print_page(mjc720_print_page); + private dev_proc_print_page(mj500c_print_page); + +! private dev_proc_get_params(mj_get_params); +! private dev_proc_put_params(mj_put_params); + + private void expand_line(word *, int, int, int); + +! private int mj_put_param_int(P6(gs_param_list *, gs_param_name, int *, int, int, int)); +! private void mj_set_bpp(P2(gx_device *, int)); + + private uint gdev_prn_rasterwidth(const gx_device_printer *, int ); + +*************** +*** 214,220 **** + #define mj ((gx_device_mj *) pdev) + + #define prn_hp_colour_device(procs, dev_name, x_dpi, y_dpi, bpp, print_page)\ +! prn_device_body(gx_device_printer, procs, dev_name,\ + WIDTH_10THS, HEIGHT_10THS, x_dpi, y_dpi, 0, 0, 0, 0, 0,\ + bpp, 0, 0, 0, 0, print_page) + +--- 215,221 ---- + #define mj ((gx_device_mj *) pdev) + + #define prn_hp_colour_device(procs, dev_name, x_dpi, y_dpi, bpp, print_page)\ +! prn_device_body(gx_device_mj, procs, dev_name,\ + WIDTH_10THS, HEIGHT_10THS, x_dpi, y_dpi, 0, 0, 0, 0, 0,\ + bpp, 0, 0, 0, 0, print_page) + +*************** +*** 226,234 **** + } + + +! #define mj_colour_procs(proc_colour_open, proc_get_props, proc_put_props) {\ + proc_colour_open,\ +! gdev_pcl_get_initial_matrix,\ + gx_default_sync_output,\ + gdev_prn_output_page,\ + gdev_prn_close,\ +--- 227,235 ---- + } + + +! #define mj_colour_procs(proc_colour_open, proc_get_params, proc_put_params) {\ + proc_colour_open,\ +! gx_default_get_initial_matrix,\ + gx_default_sync_output,\ + gdev_prn_output_page,\ + gdev_prn_close,\ +*************** +*** 240,247 **** + NULL, /* copy_color */\ + NULL, /* draw_line */\ + gx_default_get_bits,\ +! proc_get_props,\ +! proc_put_props\ + } + + private int mjc_open(gx_device *); +--- 241,248 ---- + NULL, /* copy_color */\ + NULL, /* draw_line */\ + gx_default_get_bits,\ +! proc_get_params,\ +! proc_put_params\ + } + + private int mjc_open(gx_device *); +*************** +*** 249,255 **** + + + private gx_device_procs mj_procs = +! mj_colour_procs(mjc_open, mj_get_props, mj_put_props); + + gx_device_mj far_data gs_mjc180_device = + mj_device(mj_procs, "mjc180", 180, 180, BITSPERPIXEL, +--- 250,256 ---- + + + private gx_device_procs mj_procs = +! mj_colour_procs(mjc_open, mj_get_params, mj_put_params); + + gx_device_mj far_data gs_mjc180_device = + mj_device(mj_procs, "mjc180", 180, 180, BITSPERPIXEL, +*************** +*** 305,311 **** + + /* Set up colour params if put_props has not already done so */ + if (pdev->color_info.num_components == 0) +! set_bpp(pdev, pdev->color_info.depth); + + paper_size = gdev_mjc_paper_size(pdev); + if (paper_size == PAPER_SIZE_A2 ) { +--- 306,312 ---- + + /* Set up colour params if put_props has not already done so */ + if (pdev->color_info.num_components == 0) +! mj_set_bpp(pdev, pdev->color_info.depth); + + paper_size = gdev_mjc_paper_size(pdev); + if (paper_size == PAPER_SIZE_A2 ) { +*************** +*** 324,333 **** + m = mj_letter; + } + +! pdev->l_margin = m[0]; +! pdev->b_margin = m[1]; +! pdev->r_margin = m[2]; +! pdev->t_margin = m[3]; + + switch (mj->colorcomp) { + case 1: +--- 325,331 ---- + m = mj_letter; + } + +! gx_device_set_margins(pdev, m, true); + + switch (mj->colorcomp) { + case 1: +*************** +*** 352,430 **** + * and control over the bits-per-pixel used in output rendering */ + /* Added properties for DeskJet 5xxC */ + +- private const gs_prop_item props_mj[] = { +- /* Read-write properties. */ +- prop_def("Density", prt_int), +- prop_def("Cyan", prt_int), +- prop_def("Magenta", prt_int), +- prop_def("Yellow", prt_int), +- prop_def("Black", prt_int), +- prop_def("Dither", prt_int), +- prop_def("ColorComponent", prt_int), +- prop_def("Direction", prt_int), +- prop_def("MicroWeave", prt_int), +- prop_def("DotSize", prt_int), +- }; +- + private int +! mj_get_props(gx_device *pdev, gs_prop_item *plist) +! { int start = gdev_prn_get_props(pdev, plist); +! if ( plist != 0 ) { +! register gs_prop_item *pi = plist + start; +! memcpy(pi, props_mj, sizeof(props_mj)); +! pi[0].value.i = mj->density; +! pi[1].value.i = mj->cyan; +! pi[2].value.i = mj->magenta; +! pi[3].value.i = mj->yellow; +! pi[4].value.i = mj->black; +! pi[5].value.i = mj->dither; +! pi[6].value.i = mj->colorcomp; +! pi[7].value.i = mj->direction; +! pi[8].value.i = mj->microweave; +! pi[9].value.i = mj->dotsize; +! } +! return start + sizeof(props_mj) / sizeof(gs_prop_item); + } + + /* Put properties. */ + private int +! mj_put_props(gx_device *pdev, gs_prop_item *plist, int count) + { +- static const argn = 10; +- gs_prop_item *known[argn]; + int old_bpp = mj->color_info.depth; + int bpp = 0; + int code = 0; +! +! props_extract(plist, count, props_mj, argn, known, 0); +! code = gdev_prn_put_props(pdev, plist, count); +! if ( code < 0 ) return code; +! +! code = put_prop_int(known[0], &mj->density, 0, INT_MAX, code); +! code = put_prop_int(known[1], &mj->cyan, 0, INT_MAX, code); +! code = put_prop_int(known[2], &mj->magenta, 0, INT_MAX, code); +! code = put_prop_int(known[3], &mj->yellow, 0, INT_MAX, code); +! code = put_prop_int(known[4], &mj->black, 0, INT_MAX, code); +! code = put_prop_int(known[5], &mj->dither, 0, 1, code); +! code = put_prop_int(known[6], &mj->colorcomp, 1, 4, code); +! code = put_prop_int(known[7], &mj->direction, 1, 2, code); +! code = put_prop_int(known[8], &mj->microweave, 0, 1, code); +! code = put_prop_int(known[9], &mj->dotsize, 0, 1, code); + + if ( code < 0 ) +! return_error(code); + +! if (bpp != 0) { +! set_bpp(pdev, bpp); +! +! /* Close the device; gs_putdeviceprops will reopen it. */ + if ( bpp != old_bpp && pdev->is_open ) +! { int ccode = gs_closedevice(pdev); +! if ( ccode < 0 ) return ccode; +! } + } +! +! return code; + } + + /* ------ Internal routines ------ */ +--- 350,427 ---- + * and control over the bits-per-pixel used in output rendering */ + /* Added properties for DeskJet 5xxC */ + + private int +! mj_get_params(gx_device *pdev, gs_param_list *plist) +! { int code = gdev_prn_get_params(pdev, plist); +! if ( code < 0 || +! (code = param_write_int(plist, "Density", &mj->density)) < 0 || +! (code = param_write_int(plist, "Cyan", &mj->cyan)) < 0 || +! (code = param_write_int(plist, "Magenta", &mj->magenta)) < 0 || +! (code = param_write_int(plist, "Yellow", &mj->yellow)) < 0 || +! (code = param_write_int(plist, "Black", &mj->black)) < 0 || +! (code = param_write_int(plist, "Dither", &mj->dither)) < 0 || +! (code = param_write_int(plist, "ColorComponent", &mj->colorcomp)) < 0 || +! (code = param_write_int(plist, "Direction", &mj->direction)) < 0 || +! (code = param_write_int(plist, "MicroWeave", &mj->microweave)) < 0 || +! (code = param_write_int(plist, "DotSize", &mj->dotsize)) < 0 +! ) +! return code; +! +! return code; + } + + /* Put properties. */ + private int +! mj_put_params(gx_device *pdev, gs_param_list *plist) + { + int old_bpp = mj->color_info.depth; + int bpp = 0; + int code = 0; +! int density = mj->density; +! int cyan = mj->cyan; +! int magenta = mj->magenta; +! int yellow = mj->yellow; +! int black = mj->black; +! int dither = mj->dither; +! int colorcomp = mj->colorcomp; +! int direction = mj->direction; +! int microweave = mj->microweave; +! int dotsize = mj->dotsize; +! +! code = mj_put_param_int(plist, "Density", &density, 0, INT_MAX, code); +! code = mj_put_param_int(plist, "Cyan", &density, 0, INT_MAX, code); +! code = mj_put_param_int(plist, "Magenta", &density, 0, INT_MAX, code); +! code = mj_put_param_int(plist, "Yellow", &density, 0, INT_MAX, code); +! code = mj_put_param_int(plist, "Black", &density, 0, INT_MAX, code); +! code = mj_put_param_int(plist, "Dither", &density, 0, 1, code); +! code = mj_put_param_int(plist, "ColorComponent", &density, 1, 4, code); +! code = mj_put_param_int(plist, "Direction", &density, 1, 2, code); +! code = mj_put_param_int(plist, "MicroWeave", &density, 0, 1, code); +! code = mj_put_param_int(plist, "DotSize", &density, 0, 1, code); +! code = mj_put_param_int(plist, "BitsPerPixel", &bpp, 1, 32, code); + + if ( code < 0 ) +! return code; + +! mj->density = density; +! mj->cyan = cyan; +! mj->magenta = magenta; +! mj->yellow = yellow; +! mj->black = black; +! mj->dither = dither; +! mj->colorcomp = colorcomp; +! mj->direction = direction; +! mj->microweave = microweave; +! mj->dotsize = dotsize; +! if ( bpp != 0 ) { +! mj_set_bpp(pdev, bpp); +! gdev_prn_put_params(pdev, plist); + if ( bpp != old_bpp && pdev->is_open ) +! return gs_closedevice(pdev); +! return 0; + } +! else +! return gdev_prn_put_params(pdev, plist); + } + + /* ------ Internal routines ------ */ +*************** +*** 947,953 **** + + /* Send each scan line in turn */ + { +! long int lend = pdev->height - (pdev->t_margin + pdev->b_margin) * y_dpi; + int cErr, mErr, yErr, kErr; + int this_pass, i; + long int lnum; +--- 944,951 ---- + + /* Send each scan line in turn */ + { +! long int lend = pdev->height - +! (dev_t_margin_points(pdev) + dev_b_margin_points(pdev)); + int cErr, mErr, yErr, kErr; + int this_pass, i; + long int lnum; +*************** +*** 1323,1361 **** + } + + private int +! put_prop_int(gs_prop_item *pi, int *property, int minval, int maxval, int code) +! { +! if ( pi == 0 ) +! return (code); +! +! if ( pi->value.i < minval || pi->value.i > maxval ) +! { pi->status = pv_rangecheck; +! return (gs_error_rangecheck); +! } +! else +! { *property = pi->value.i; +! return (code ? code : 1); +! } +! } +! +! private int +! put_prop_float(gs_prop_item *pi, float *property, float minval, float maxval, int code) +! { +! if ( pi == 0 ) +! return (code); +! +! if ( pi->value.f < minval || pi->value.f > maxval ) +! { pi->status = pv_rangecheck; +! return (gs_error_rangecheck); +! } +! else +! { *property = pi->value.f; +! return (code ? code : 1); +! } + } + + private void +! set_bpp(gx_device *pdev, int bits_per_pixel) + { gx_device_color_info *ci = &pdev->color_info; + /* Only valid bits-per-pixel are 1, 3, 8, 16, 24, 32 */ + int bpp = bits_per_pixel < 3 ? 1 : bits_per_pixel < 8 ? 3 : +--- 1321,1345 ---- + } + + private int +! mj_put_param_int(gs_param_list *plist, gs_param_name pname, int *pvalue, +! int minval, int maxval, int ecode) +! { int code, value; +! switch ( code = param_read_int(plist, pname, &value) ) +! { +! default: +! return code; +! case 1: +! return ecode; +! case 0: +! if ( value < minval || value > maxval ) +! param_signal_error(plist, pname, gs_error_rangecheck); +! *pvalue = value; +! return (ecode < 0 ? ecode : 1); +! } + } + + private void +! mj_set_bpp(gx_device *pdev, int bits_per_pixel) + { gx_device_color_info *ci = &pdev->color_info; + /* Only valid bits-per-pixel are 1, 3, 8, 16, 24, 32 */ + int bpp = bits_per_pixel < 3 ? 1 : bits_per_pixel < 8 ? 3 : +*************** +*** 1363,1371 **** + ci->num_components = ((bpp == 1) || (bpp == 8) ? 1 : 3); + ci->depth = ((bpp > 1) && (bpp < 8) ? 8 : bpp); + ci->max_gray = (bpp >= 8 ? 255 : 1); +! ci->max_rgb = (bpp >= 8 ? 255 : bpp > 1 ? 1 : 0); +! ci->dither_gray = (bpp >= 8 ? 5 : 2); +! ci->dither_rgb = (bpp >= 8 ? 5 : bpp > 1 ? 2 : 0); + } + + /* This returns either the number of pixels in a scan line, or the number +--- 1347,1355 ---- + ci->num_components = ((bpp == 1) || (bpp == 8) ? 1 : 3); + ci->depth = ((bpp > 1) && (bpp < 8) ? 8 : bpp); + ci->max_gray = (bpp >= 8 ? 255 : 1); +! ci->max_color = (bpp >= 8 ? 255 : bpp > 1 ? 1 : 0); +! ci->dither_grays = (bpp >= 8 ? 5 : 2); +! ci->dither_colors = (bpp >= 8 ? 5 : bpp > 1 ? 2 : 0); + } + + /* This returns either the number of pixels in a scan line, or the number +*************** +*** 1374,1380 **** + gdev_prn_rasterwidth(const gx_device_printer *pdev, int pixelcount) + { + word raster_width = +! pdev->width - pdev->x_pixels_per_inch * (pdev->l_margin + pdev->r_margin); + return (pixelcount ? + (uint)raster_width : + (uint)((raster_width * pdev->color_info.depth + 7) >> 3)); +--- 1358,1364 ---- + gdev_prn_rasterwidth(const gx_device_printer *pdev, int pixelcount) + { + word raster_width = +! pdev->width - (pdev->HWMargins[0] + pdev->HWMargins[2]); + return (pixelcount ? + (uint)raster_width : + (uint)((raster_width * pdev->color_info.depth + 7) >> 3)); + diff --git a/japanese/vfghostscript5/files/mjc.dev.patch b/japanese/vfghostscript5/files/mjc.dev.patch new file mode 100644 index 000000000000..ef640775e559 --- /dev/null +++ b/japanese/vfghostscript5/files/mjc.dev.patch @@ -0,0 +1,27 @@ +*** mjc.dev.orig Sat Nov 9 22:51:15 1996 +--- mjc.dev Sat Nov 9 22:53:25 1996 +*************** +*** 17,27 **** + $(CCC) gdevmjc.c + + mjc180.dev: $(mj700v2c_) +! $(SHP)gssetdev mjc180 $(mj700v2c_) + mjc360.dev: $(mj700v2c_) +! $(SHP)gssetdev mjc360 $(mj700v2c_) + mjc720.dev: $(mj700v2c_) +! $(SHP)gssetdev mjc720 $(mj700v2c_) + mj500c.dev: $(mj700v2c_) +! $(SHP)gssetdev mj500c $(mj700v2c_) + +--- 17,27 ---- + $(CCC) gdevmjc.c + + mjc180.dev: $(mj700v2c_) +! $(SETPDEV) mjc180 $(mj700v2c_) + mjc360.dev: $(mj700v2c_) +! $(SETPDEV) mjc360 $(mj700v2c_) + mjc720.dev: $(mj700v2c_) +! $(SETPDEV) mjc720 $(mj700v2c_) + mj500c.dev: $(mj700v2c_) +! $(SETPDEV) mj500c $(mj700v2c_) + diff --git a/japanese/vfghostscript5/files/patch-aa b/japanese/vfghostscript5/files/patch-aa new file mode 100644 index 000000000000..a9ecb3a70a09 --- /dev/null +++ b/japanese/vfghostscript5/files/patch-aa @@ -0,0 +1,100 @@ +*** unix-gcc.mak.orig Sat Nov 30 21:51:31 1996 +--- unix-gcc.mak Sat Nov 30 22:02:25 1996 +*************** +*** 159,165 **** + # XLDFLAGS can be set from the command line. + + #LDFLAGS=$(XLDFLAGS) -pg +! LDFLAGS=$(XLDFLAGS) + + # Define any extra libraries to link into the executable. + # ISC Unix 2.2 wants -linet. +--- 159,165 ---- + # XLDFLAGS can be set from the command line. + + #LDFLAGS=$(XLDFLAGS) -pg +! LDFLAGS=$(XLDFLAGS) -L/usr/local/lib + + # Define any extra libraries to link into the executable. + # ISC Unix 2.2 wants -linet. +*************** +*** 167,173 **** + # SVR4 may need -lnsl. + # (Libraries required by individual drivers are handled automatically.) + +! EXTRALIBS= + + # Define the include switch(es) for the X11 header files. + # This can be null if handled in some other way (e.g., the files are +--- 167,173 ---- + # SVR4 may need -lnsl. + # (Libraries required by individual drivers are handled automatically.) + +! EXTRALIBS=-lz + + # Define the include switch(es) for the X11 header files. + # This can be null if handled in some other way (e.g., the files are +*************** +*** 3354,3360 **** + zlibe_1.dev: $(ZLIB_MAK) $(ECHOGS_XE) + $(SETMOD) zlibe_1 -lib gz + +! zlibe_=adler32.$(OBJ) deflate.$(OBJ) trees.$(OBJ) + zlibe_0.dev: $(ZLIB_MAK) $(ECHOGS_XE) zlibc.dev $(zlibe_) + $(SETMOD) zlibe_0 $(zlibe_) + $(ADDMOD) zlibe_0 -include zlibc +--- 3354,3360 ---- + zlibe_1.dev: $(ZLIB_MAK) $(ECHOGS_XE) + $(SETMOD) zlibe_1 -lib gz + +! zlibe_= + zlibe_0.dev: $(ZLIB_MAK) $(ECHOGS_XE) zlibc.dev $(zlibe_) + $(SETMOD) zlibe_0 $(zlibe_) + $(ADDMOD) zlibe_0 -include zlibc +*************** +*** 3378,3388 **** + + zlibd1_=infblock.$(OBJ) infcodes.$(OBJ) inffast.$(OBJ) + zlibd2_=inflate.$(OBJ) inftrees.$(OBJ) infutil.$(OBJ) +! zlibd_ = $(zlibd1_) $(zlibd2_) +! zlibd_0.dev: $(ZLIB_MAK) $(ECHOGS_XE) zlibc.dev $(zlibd_) +! $(SETMOD) zlibd_0 $(zlibd1_) +! $(ADDMOD) zlibd_0 -obj $(zlibd2_) +! $(ADDMOD) zlibd_0 -include zlibc + + infblock.$(OBJ): $(ZSRC)infblock.c $(ZDEP) + $(CCCZ) $(ZSRC)infblock.c +--- 3378,3388 ---- + + zlibd1_=infblock.$(OBJ) infcodes.$(OBJ) inffast.$(OBJ) + zlibd2_=inflate.$(OBJ) inftrees.$(OBJ) infutil.$(OBJ) +! zlibd_= +! zlibd_0.dev: $(ZLIB_MAK) $(ECHOGS_XE) zlibc.dev +! $(SETMOD) zlibd_0 +! $(ADDMOD) zlibd_0 +! $(ADDMOD) zlibd_0 + + infblock.$(OBJ): $(ZSRC)infblock.c $(ZDEP) + $(CCCZ) $(ZSRC)infblock.c +*************** +*** 4269,4277 **** + lbp8.dev: $(lbp8_) page.dev + $(SETPDEV) lbp8 $(lbp8_) + +- lips3.dev: $(lbp8_) page.dev +- $(SETPDEV) lips3 $(lbp8_) +- + gdevlbp8.$(OBJ): gdevlbp8.c $(PDEVH) + + ### ----------- The DEC LN03/LA50/LA70/LA75 printer devices ------------ ### +--- 4269,4274 ---- +*************** +*** 4793,4798 **** +--- 4790,4796 ---- + $(ADDMOD) kfvflib -lib VFlib + + zkfvflib.$(OBJ): zkfvflib.c ++ ${CC} ${CFLAGS} -I${PREFIX}/include/ -c zkfvflib.c + + # Copyright (C) 1990, 1995, 1996 Aladdin Enterprises. All rights reserved. + # diff --git a/japanese/vfghostscript5/files/patch-ab b/japanese/vfghostscript5/files/patch-ab new file mode 100644 index 000000000000..54e7de5390e8 --- /dev/null +++ b/japanese/vfghostscript5/files/patch-ab @@ -0,0 +1,19 @@ +*** zkfvflib.c.orig Sat Nov 9 19:23:11 1996 +--- zkfvflib.c Sat Nov 9 19:23:26 1996 +*************** +*** 19,25 **** + #include "files.h" + + /* Including the header file for VFlib. */ +! #include "VF.h" + #ifdef __MSDOS__ + # include "dos_.h" + #endif +--- 19,25 ---- + #include "files.h" + + /* Including the header file for VFlib. */ +! #include <VF.h> + #ifdef __MSDOS__ + # include "dos_.h" + #endif diff --git a/japanese/vfghostscript5/pkg-comment b/japanese/vfghostscript5/pkg-comment new file mode 100644 index 000000000000..c04106d3b150 --- /dev/null +++ b/japanese/vfghostscript5/pkg-comment @@ -0,0 +1 @@ +Aladdin Postscript interpreter with Japanese vector font library. diff --git a/japanese/vfghostscript5/pkg-descr b/japanese/vfghostscript5/pkg-descr new file mode 100644 index 000000000000..e6b0a5aeade9 --- /dev/null +++ b/japanese/vfghostscript5/pkg-descr @@ -0,0 +1,22 @@ +This is Aladdin Ghostscript 4.03, the non-GPL version that comes +with a licence different from the GPL. Read the file PUBLIC in the +work/gs4.xx directory for details ! + +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. + +The official ghostscript Web page: + http://www.cs.wisc.edu/~ghost/index.html + +Thomas Merz has written a Ghostscript manual which is available in +PDF from this site (456k) and also from Thomas Merz's site in Germany. + + http://www.cs.wisc.edu/~ghost/merz.html + +On the german site the manual is also available in German language. + + http://www.muc.de/~tm/free/free.html + +This port is based on print/ghostscript4 and some code for vector font library +and some Japanese printer drivers are added. diff --git a/japanese/vfghostscript5/pkg-plist b/japanese/vfghostscript5/pkg-plist new file mode 100644 index 000000000000..82d806c26456 --- /dev/null +++ b/japanese/vfghostscript5/pkg-plist @@ -0,0 +1,316 @@ +bin/pdf2dsc +bin/ps2epsi +bin/ps2ascii +bin/wftopfa +bin/ps2pdf +bin/pdf2ps +bin/gslp +bin/gsnd +bin/bdftops +bin/font2c +bin/printafm +bin/gsbj +bin/gslj +bin/gsdj +bin/gsdj500 +bin/gs +man/man1/gs.1.gz +share/ghostscript/4.03vflib/Fontmap +share/ghostscript/4.03vflib/acctest.ps +share/ghostscript/4.03vflib/align.ps +share/ghostscript/4.03vflib/bdftops.ps +share/ghostscript/4.03vflib/caption.ps +share/ghostscript/4.03vflib/cbjc600.ppd +share/ghostscript/4.03vflib/cbjc800.ppd +share/ghostscript/4.03vflib/decrypt.ps +share/ghostscript/4.03vflib/docie.ps +share/ghostscript/4.03vflib/font2c.ps +share/ghostscript/4.03vflib/gs_btokn.ps +share/ghostscript/4.03vflib/gs_ccfnt.ps +share/ghostscript/4.03vflib/gs_cidfn.ps +share/ghostscript/4.03vflib/gs_cmap.ps +share/ghostscript/4.03vflib/gs_dbt_e.ps +share/ghostscript/4.03vflib/gs_dps1.ps +share/ghostscript/4.03vflib/gs_fonts.ps +share/ghostscript/4.03vflib/gs_init.ps +share/ghostscript/4.03vflib/gs_iso_e.ps +share/ghostscript/4.03vflib/gs_kanji.ps +share/ghostscript/4.03vflib/gs_ksb_e.ps +share/ghostscript/4.03vflib/gs_l2img.ps +share/ghostscript/4.03vflib/gs_lev2.ps +share/ghostscript/4.03vflib/gs_mex_e.ps +share/ghostscript/4.03vflib/gs_mro_e.ps +share/ghostscript/4.03vflib/gs_pdf.ps +share/ghostscript/4.03vflib/gs_pdf_e.ps +share/ghostscript/4.03vflib/gs_pdfwr.ps +share/ghostscript/4.03vflib/gs_pfile.ps +share/ghostscript/4.03vflib/gs_res.ps +share/ghostscript/4.03vflib/gs_setpd.ps +share/ghostscript/4.03vflib/gs_statd.ps +share/ghostscript/4.03vflib/gs_std_e.ps +share/ghostscript/4.03vflib/gs_sym_e.ps +share/ghostscript/4.03vflib/gs_ttf.ps +share/ghostscript/4.03vflib/gs_typ42.ps +share/ghostscript/4.03vflib/gs_type1.ps +share/ghostscript/4.03vflib/gs_wan_e.ps +share/ghostscript/4.03vflib/gslp.ps +share/ghostscript/4.03vflib/impath.ps +share/ghostscript/4.03vflib/landscap.ps +share/ghostscript/4.03vflib/level1.ps +share/ghostscript/4.03vflib/lines.ps +share/ghostscript/4.03vflib/markhint.ps +share/ghostscript/4.03vflib/markpath.ps +share/ghostscript/4.03vflib/packfile.ps +share/ghostscript/4.03vflib/pcharstr.ps +share/ghostscript/4.03vflib/pdf2dsc.ps +share/ghostscript/4.03vflib/pdf_2ps.ps +share/ghostscript/4.03vflib/pdf_base.ps +share/ghostscript/4.03vflib/pdf_draw.ps +share/ghostscript/4.03vflib/pdf_font.ps +share/ghostscript/4.03vflib/pdf_main.ps +share/ghostscript/4.03vflib/pdf_sec.ps +share/ghostscript/4.03vflib/pfbtogs.ps +share/ghostscript/4.03vflib/ppath.ps +share/ghostscript/4.03vflib/prfont.ps +share/ghostscript/4.03vflib/printafm.ps +share/ghostscript/4.03vflib/ps2ai.ps +share/ghostscript/4.03vflib/ps2ascii.ps +share/ghostscript/4.03vflib/ps2epsi.ps +share/ghostscript/4.03vflib/ps2image.ps +share/ghostscript/4.03vflib/pstoppm.ps +share/ghostscript/4.03vflib/quit.ps +share/ghostscript/4.03vflib/showchar.ps +share/ghostscript/4.03vflib/showpage.ps +share/ghostscript/4.03vflib/stcinfo.ps +share/ghostscript/4.03vflib/stcolor.ps +share/ghostscript/4.03vflib/traceimg.ps +share/ghostscript/4.03vflib/traceop.ps +share/ghostscript/4.03vflib/type1enc.ps +share/ghostscript/4.03vflib/type1ops.ps +share/ghostscript/4.03vflib/unprot.ps +share/ghostscript/4.03vflib/viewcmyk.ps +share/ghostscript/4.03vflib/viewgif.ps +share/ghostscript/4.03vflib/viewjpeg.ps +share/ghostscript/4.03vflib/viewpbm.ps +share/ghostscript/4.03vflib/viewpcx.ps +share/ghostscript/4.03vflib/viewps2a.ps +share/ghostscript/4.03vflib/wftopfa.ps +share/ghostscript/4.03vflib/winmaps.ps +share/ghostscript/4.03vflib/wrfont.ps +share/ghostscript/4.03vflib/zeroline.ps +share/ghostscript/4.03vflib/doc/COPYING +share/ghostscript/4.03vflib/doc/MJ700V2C.FAQ +share/ghostscript/4.03vflib/doc/NEWS +share/ghostscript/4.03vflib/doc/PUBLIC +share/ghostscript/4.03vflib/doc/README +share/ghostscript/4.03vflib/doc/c-style.txt +share/ghostscript/4.03vflib/doc/current.txt +share/ghostscript/4.03vflib/doc/devices.txt +share/ghostscript/4.03vflib/doc/drivers.txt +share/ghostscript/4.03vflib/doc/fonts.txt +share/ghostscript/4.03vflib/doc/gdevep82.jis +share/ghostscript/4.03vflib/doc/gdevlips4.euc +share/ghostscript/4.03vflib/doc/gdevmjc.jis +share/ghostscript/4.03vflib/doc/gs.1 +share/ghostscript/4.03vflib/doc/helpers.txt +share/ghostscript/4.03vflib/doc/hershey.txt +share/ghostscript/4.03vflib/doc/history1.txt +share/ghostscript/4.03vflib/doc/history2.txt +share/ghostscript/4.03vflib/doc/history3.txt +share/ghostscript/4.03vflib/doc/humor.txt +share/ghostscript/4.03vflib/doc/install.txt +share/ghostscript/4.03vflib/doc/language.txt +share/ghostscript/4.03vflib/doc/lib.txt +share/ghostscript/4.03vflib/doc/make.txt +share/ghostscript/4.03vflib/doc/new-user.txt +share/ghostscript/4.03vflib/doc/pdf2ps.1 +share/ghostscript/4.03vflib/doc/ps2ascii.1 +share/ghostscript/4.03vflib/doc/ps2epsi.1 +share/ghostscript/4.03vflib/doc/ps2epsi.txt +share/ghostscript/4.03vflib/doc/ps2pdf.1 +share/ghostscript/4.03vflib/doc/ps2pdf.txt +share/ghostscript/4.03vflib/doc/psfiles.txt +share/ghostscript/4.03vflib/doc/public.txt +share/ghostscript/4.03vflib/doc/unix-lpr.txt +share/ghostscript/4.03vflib/doc/use.txt +share/ghostscript/4.03vflib/doc/xfonts.txt +share/ghostscript/4.03vflib/examples/alphabet.ps +share/ghostscript/4.03vflib/examples/cheq.ps +share/ghostscript/4.03vflib/examples/chess.ps +share/ghostscript/4.03vflib/examples/colorcir.ps +share/ghostscript/4.03vflib/examples/escher.ps +share/ghostscript/4.03vflib/examples/golfer.ps +share/ghostscript/4.03vflib/examples/grayalph.ps +share/ghostscript/4.03vflib/examples/snowflak.ps +share/ghostscript/4.03vflib/examples/tiger.ps +share/ghostscript/4.03vflib/examples/waterfal.ps +share/ghostscript/4.03vflib/kanji/allkanji.ps +share/ghostscript/4.03vflib/kanji/article9.ps +share/ghostscript/4.03vflib/kanji/fmaptype.ps +share/ghostscript/4.03vflib/kanji/hankaku.ps +share/ghostscript/4.03vflib/kanji/kbase.ps +share/ghostscript/4.03vflib/kanji/kcomp.ps +share/ghostscript/4.03vflib/kanji/kconfig.ps +share/ghostscript/4.03vflib/kanji/kfvflib.ps +share/ghostscript/4.03vflib/kanji/kinit.ps +share/ghostscript/4.03vflib/kanji/kmapping.ps +share/ghostscript/4.03vflib/kanji/koutline.ps +share/ghostscript/4.03vflib/kanji/metrics2.ps +share/ghostscript/4.03vflib/kanji/vchars.ps +share/ghostscript/4.03vflib/kanji/vflib.ps +share/ghostscript/fonts/a010013l.afm +share/ghostscript/fonts/a010013l.pfb +share/ghostscript/fonts/a010013l.pfm +share/ghostscript/fonts/a010015l.afm +share/ghostscript/fonts/a010015l.pfb +share/ghostscript/fonts/a010015l.pfm +share/ghostscript/fonts/a010033l.afm +share/ghostscript/fonts/a010033l.pfb +share/ghostscript/fonts/a010033l.pfm +share/ghostscript/fonts/a010035l.afm +share/ghostscript/fonts/a010035l.pfb +share/ghostscript/fonts/a010035l.pfm +share/ghostscript/fonts/b018012l.afm +share/ghostscript/fonts/b018012l.pfb +share/ghostscript/fonts/b018012l.pfm +share/ghostscript/fonts/b018015l.afm +share/ghostscript/fonts/b018015l.pfb +share/ghostscript/fonts/b018015l.pfm +share/ghostscript/fonts/b018032l.afm +share/ghostscript/fonts/b018032l.pfb +share/ghostscript/fonts/b018032l.pfm +share/ghostscript/fonts/b018035l.afm +share/ghostscript/fonts/b018035l.pfb +share/ghostscript/fonts/b018035l.pfm +share/ghostscript/fonts/bchb.afm +share/ghostscript/fonts/bchb.pfa +share/ghostscript/fonts/bchbi.afm +share/ghostscript/fonts/bchbi.pfa +share/ghostscript/fonts/bchr.afm +share/ghostscript/fonts/bchr.pfa +share/ghostscript/fonts/bchri.afm +share/ghostscript/fonts/bchri.pfa +share/ghostscript/fonts/c059013l.afm +share/ghostscript/fonts/c059013l.pfb +share/ghostscript/fonts/c059013l.pfm +share/ghostscript/fonts/c059016l.afm +share/ghostscript/fonts/c059016l.pfb +share/ghostscript/fonts/c059016l.pfm +share/ghostscript/fonts/c059033l.afm +share/ghostscript/fonts/c059033l.pfb +share/ghostscript/fonts/c059033l.pfm +share/ghostscript/fonts/c059036l.afm +share/ghostscript/fonts/c059036l.pfb +share/ghostscript/fonts/c059036l.pfm +share/ghostscript/fonts/d050000l.afm +share/ghostscript/fonts/d050000l.pfb +share/ghostscript/fonts/d050000l.pfm +share/ghostscript/fonts/fcyr.gsf +share/ghostscript/fonts/fcyri.gsf +share/ghostscript/fonts/fhirw.gsf +share/ghostscript/fonts/fkarw.gsf +share/ghostscript/fonts/hrger.pfa +share/ghostscript/fonts/hrgerb.gsf +share/ghostscript/fonts/hrgerd.gsf +share/ghostscript/fonts/hrgero.gsf +share/ghostscript/fonts/hrgkc.gsf +share/ghostscript/fonts/hrgks.gsf +share/ghostscript/fonts/hrgrr.pfa +share/ghostscript/fonts/hrgrrb.gsf +share/ghostscript/fonts/hrgrro.gsf +share/ghostscript/fonts/hritr.pfa +share/ghostscript/fonts/hritrb.gsf +share/ghostscript/fonts/hritro.gsf +share/ghostscript/fonts/hrpld.pfa +share/ghostscript/fonts/hrpldb.gsf +share/ghostscript/fonts/hrpldbi.gsf +share/ghostscript/fonts/hrpldi.pfa +share/ghostscript/fonts/hrplr.gsf +share/ghostscript/fonts/hrplrb.gsf +share/ghostscript/fonts/hrplrbo.gsf +share/ghostscript/fonts/hrplro.gsf +share/ghostscript/fonts/hrpls.gsf +share/ghostscript/fonts/hrplsb.gsf +share/ghostscript/fonts/hrplsbo.gsf +share/ghostscript/fonts/hrplso.gsf +share/ghostscript/fonts/hrplt.pfa +share/ghostscript/fonts/hrpltb.gsf +share/ghostscript/fonts/hrpltbi.gsf +share/ghostscript/fonts/hrplti.pfa +share/ghostscript/fonts/hrscc.pfa +share/ghostscript/fonts/hrsccb.gsf +share/ghostscript/fonts/hrscco.gsf +share/ghostscript/fonts/hrscs.pfa +share/ghostscript/fonts/hrscsb.gsf +share/ghostscript/fonts/hrscso.gsf +share/ghostscript/fonts/hrsyr.gsf +share/ghostscript/fonts/n019003l.afm +share/ghostscript/fonts/n019003l.pfb +share/ghostscript/fonts/n019003l.pfm +share/ghostscript/fonts/n019004l.afm +share/ghostscript/fonts/n019004l.pfb +share/ghostscript/fonts/n019004l.pfm +share/ghostscript/fonts/n019023l.afm +share/ghostscript/fonts/n019023l.pfb +share/ghostscript/fonts/n019023l.pfm +share/ghostscript/fonts/n019024l.afm +share/ghostscript/fonts/n019024l.pfb +share/ghostscript/fonts/n019024l.pfm +share/ghostscript/fonts/n019043l.afm +share/ghostscript/fonts/n019043l.pfb +share/ghostscript/fonts/n019043l.pfm +share/ghostscript/fonts/n019044l.afm +share/ghostscript/fonts/n019044l.pfb +share/ghostscript/fonts/n019044l.pfm +share/ghostscript/fonts/n019063l.afm +share/ghostscript/fonts/n019063l.pfb +share/ghostscript/fonts/n019063l.pfm +share/ghostscript/fonts/n019064l.afm +share/ghostscript/fonts/n019064l.pfb +share/ghostscript/fonts/n019064l.pfm +share/ghostscript/fonts/n021003l.afm +share/ghostscript/fonts/n021003l.pfb +share/ghostscript/fonts/n021003l.pfm +share/ghostscript/fonts/n021004l.afm +share/ghostscript/fonts/n021004l.pfb +share/ghostscript/fonts/n021004l.pfm +share/ghostscript/fonts/n021023l.afm +share/ghostscript/fonts/n021023l.pfb +share/ghostscript/fonts/n021023l.pfm +share/ghostscript/fonts/n021024l.afm +share/ghostscript/fonts/n021024l.pfb +share/ghostscript/fonts/n021024l.pfm +share/ghostscript/fonts/n022003l.afm +share/ghostscript/fonts/n022003l.pfb +share/ghostscript/fonts/n022003l.pfm +share/ghostscript/fonts/n022004l.afm +share/ghostscript/fonts/n022004l.pfb +share/ghostscript/fonts/n022004l.pfm +share/ghostscript/fonts/n022023l.afm +share/ghostscript/fonts/n022023l.pfb +share/ghostscript/fonts/n022023l.pfm +share/ghostscript/fonts/n022024l.afm +share/ghostscript/fonts/n022024l.pfb +share/ghostscript/fonts/n022024l.pfm +share/ghostscript/fonts/p052003l.afm +share/ghostscript/fonts/p052003l.pfb +share/ghostscript/fonts/p052003l.pfm +share/ghostscript/fonts/p052004l.afm +share/ghostscript/fonts/p052004l.pfb +share/ghostscript/fonts/p052004l.pfm +share/ghostscript/fonts/p052023l.afm +share/ghostscript/fonts/p052023l.pfb +share/ghostscript/fonts/p052023l.pfm +share/ghostscript/fonts/p052024l.afm +share/ghostscript/fonts/p052024l.pfb +share/ghostscript/fonts/p052024l.pfm +share/ghostscript/fonts/putb.pfa +share/ghostscript/fonts/putbi.pfa +share/ghostscript/fonts/putr.pfa +share/ghostscript/fonts/putri.pfa +share/ghostscript/fonts/s050000l.afm +share/ghostscript/fonts/s050000l.pfb +share/ghostscript/fonts/s050000l.pfm +share/ghostscript/fonts/z003034l.afm +share/ghostscript/fonts/z003034l.pfb +share/ghostscript/fonts/z003034l.pfm diff --git a/japanese/vfghostscript5/scripts/configure b/japanese/vfghostscript5/scripts/configure new file mode 100644 index 000000000000..7b4413c7c7a4 --- /dev/null +++ b/japanese/vfghostscript5/scripts/configure @@ -0,0 +1,199 @@ +#! /bin/sh + +# Define the directories for the X11 library files. +# This can be null if these files are in the default linker search path. + +sed -e "s;XINCLUDE=-I/usr/local/X/include;XINCLUDE=-I/usr/X11R6/include;" \ + -e "s;XLIBDIRS=-L/usr/X11/lib;XLIBDIRS=-L/usr/X11R6/lib;" \ + -e "s;JSRCDIR=jpeg-6a;JSRCDIR=${PORTSDIR}/graphics/jpeg/work/jpeg-6a;" \ + -e "s;PSRCDIR=libpng;PSRCDIR=${PORTSDIR}/graphics/png/work/libpng-0.89c;" \ + -e "s;ZSRCDIR=zlib;ZSRCDIR=.;" \ + -e "s;CC=gcc;CC=cc;" \ + -e "s;^DEVICE_DEVS=.*;;" \ + -e "s;^DEVICE_DEVS1=.*;DEVICE_DEVS1=;" \ + -e "s;^DEVICE_DEVS2=.*;DEVICE_DEVS2=;" \ + -e "s;^DEVICE_DEVS3=.*;DEVICE_DEVS3=;" \ + -e "s;^DEVICE_DEVS4=.*;DEVICE_DEVS4=;" \ + -e "s;^DEVICE_DEVS5=.*;DEVICE_DEVS5=;" \ + -e "s;^DEVICE_DEVS6=.*;DEVICE_DEVS6=;" \ + -e "s;^DEVICE_DEVS7=.*;DEVICE_DEVS7=;" \ + -e "s;^DEVICE_DEVS8=.*;DEVICE_DEVS8=;" \ + -e "s;^DEVICE_DEVS9=.*;DEVICE_DEVS9=;" \ + -e "s;^DEVICE_DEVS10=.*;DEVICE_DEVS10=;" \ + -e "s;^DEVICE_DEVS11=.*;DEVICE_DEVS11=;" \ + -e "s;^DEVICE_DEVS12=.*;DEVICE_DEVS12=;" \ + -e "s;^DEVICE_DEVS13=.*;DEVICE_DEVS13=;" \ + -e "s;^DEVICE_DEVS14=.*;DEVICE_DEVS14=;" \ + -e "s;^DEVICE_DEVS15=.*;DEVICE_DEVS15=;" \ + < ${WRKSRC}/unix-gcc.mak > ${WRKSRC}/unix-gcc.mak.bak && \ + mv ${WRKSRC}/unix-gcc.mak.bak ${WRKSRC}/unix-gcc.mak + +# without that no way :) +touch ${WRKSRC}/makefile + +# driverselection +/usr/bin/dialog --title "jp-VFGhostscript 4 driver configuration" --clear \ + --checklist "\n\ +This new ghostscript driver configuration dialog allows you to choose \n\ +only those gs drivers, you really need. Don't think too economical, since \n\ +other programs in the ports collection might need some of the default gs \n\ +file format drivers. The gs4 default drivers and some drivers for Japanese \n\ +printers are preselected. \n\ +Have fun with this new configuration style ! -andreas \n\n\ + Please choose options by pressing SPACE to TOGGLE an option ON/OFF ?" -1 -1 9\ + "x11" "X Windows version 11, release >=4" ON \ + "x11alpha" "X Windows masquer. as device with alpha capability" ON \ + "x11cmyk" "X Windows masquer. as 1-bit-per-plane CMYK device" ON \ + "x11mono" "X Windows masquer. as black-and-white device" ON \ + "sxlcrt" "CRT sixels, e.g. for VT240-like terminals" OFF \ + "ap3250" "Epson AP3250" OFF \ + "appledmp" "Apple Dot Matrix Printer / Imagewriter" OFF \ + "bitps" "Bitmapped PostScript" ON \ + "bj10e" "Canon BubbleJet BJ10e" ON \ + "bj200" "Canon BubbleJet BJ200" ON \ + "bjc600" "Canon Color BubbleJet BJC-600/4000/70" ON \ + "bjc800" "Canon Color BubbleJet BJC-800" ON \ + "ccr" "CalComp Raster format" OFF \ + "cdeskjet" "HP DeskJet 500C, 1 bit/pixel color" ON \ + "cdjcolor" "HP DeskJet 500C/540C, 24 bit/pixel color + FS dithering" ON \ + "cdjmono" "HP DeskJet 500/510/520/540C b/w printing" ON \ + "cdj550" "HP DeskJet 550C/560C" ON \ + "cp50" "Mitsubishi CP50 color" OFF \ + "declj250" "alternate DEC LJ250 driver" OFF \ + "deskjet" "HP DeskJet and DeskJet Plus" ON \ + "djet500" "HP DeskJet 500" ON \ + "djet500c" "HP DeskJet 500C alternate driver, not for 550/560C" OFF \ + "dnj650c" "HP DesignJet 650C" OFF \ + "epag300" "Epson ESC/PS laser printer 300dpi, mono" ON \ + "epag600" "Epson ESC/PS laser printer 600dpi, mono" ON \ + "mjc180" "Epson MachJet series 180dpi, CMYK" ON \ + "mjc360" "Epson MachJet series 360dpi, CMYK" ON \ + "mjc720" "Epson MachJet series 720dpi, CMYK" ON \ + "mj500c" "Epson MachJet MJ-500C 360dpi, CMY or mono" ON \ + "epson" "Epson-compatible dot matrix, 9/24-pin" OFF \ + "eps9mid" "Epson-compatible 9-pin, medium resol" OFF \ + "eps9high" "Epson-compatible 9-pin, high resol" OFF \ + "epsonc" "Epson LQ-2550 and Fujitsu 3400/2400/1200 color" OFF \ + "ibmpro" "IBM 9-pin Proprinter" OFF \ + "imagen" "Imagen ImPress printers" OFF \ + "iwhi" "Apple Imagewriter, high-resolution mode" OFF \ + "iwlo" "Apple Imagewriter, low-resolution mode" OFF \ + "iwlq" "Apple Imagewriter LQ in 320 x 216 dpi mode" OFF \ + "jetp3852" "IBM Jetprinter ink-jet color (Model #3852)" OFF \ + "laserjet" "HP LaserJet" ON \ + "la50" "DEC LA50 printer" OFF \ + "la70" "DEC LA70 printer" OFF \ + "la75" "DEC LA75 printer" OFF \ + "la75plus" "DEC LA75plus printer" OFF \ + "lbp8" "Canon LBP-8II laser printer" OFF \ + "lips3" "Canon LIPS III laser printer " ON \ + "lips4" "Canon LIPSIV laser printer 600dpi, mono" ON \ + "lips4c" "Canon LIPSIV laser printer 600dpi,CMYK" ON \ + "ln03" "DEC LN03 printer" OFF \ + "lj250" "DEC LJ250 Companion color printer" OFF \ + "ljet2p" "HP LaserJet IId/IIp/III* with TIFF compression" ON \ + "ljet3" "HP LaserJet III* with Delta Row compression" ON \ + "ljet3d" "HP LaserJet IIID with duplex capability" OFF \ + "ljet4" "HP LaserJet 4 (defaults to 600 dpi)" ON \ + "lj4dith" "HP LaserJet 4 with Floyd-Steinberg dithering" OFF \ + "ljetplus" "HP LaserJet Plus" ON \ + "lp2563" "HP 2563B line printer" OFF \ + "m8510" "C.Itoh M8510 printer" OFF \ + "necp6" "NEC P6/P6+/P60, 360x360 DPI resol" OFF \ + "oce9050" "OCE 9050 printer" OFF \ + "oki182" "Okidata MicroLine 182" OFF \ + "okiibm" "Okidata MicroLine IBM-compatible printers" OFF \ + "paintjet" "alternate HP PaintJet color printer" OFF \ + "pj" "HP PaintJet XL driver " ON \ + "pjetxl" "alternate HP PaintJet XL driver" OFF \ + "pjxl" "HP PaintJet XL color printer" ON \ + "pjxl300" "HP PaintJet XL300 color printer (also for 1200C)" ON \ + "r4081" "Ricoh 4081 laser printer" OFF \ + "sj48" "StarJet 48 inkjet printer" OFF \ + "st800" "Epson Stylus 800 printer" OFF \ + "stcolor" "Epson Stylus Color" OFF \ + "t4693d2" "Tektronix 4693d color, 2 bits per R/G/B component" OFF \ + "t4693d4" "Tektronix 4693d color, 4 bits per R/G/B component" OFF \ + "t4693d8" "Tektronix 4693d color, 8 bits per R/G/B component" OFF \ + "tek4696" "Tektronix 4695/4696 inkjet plotter" OFF \ + "xes" "Xerox XES printers (2700, 3700, 4045, etc.)" OFF \ + "dfaxhigh" "DigiBoard, DigiFAX software format (high resol)" OFF \ + "dfaxlow" "DigiFAX low (normal) resol" OFF \ + "faxg3" "Group 3 fax, with EOLs but no header or EOD" ON \ + "faxg32d" "Group 3 2-D fax, with EOLs but no header or EOD" ON \ + "faxg4" "Group 4 fax, with EOLs but no header or EOD" ON \ + "tiffcrle" "TIFF CCITT RLE 1 dim = Group 3 fax with no EOLs" ON \ + "tiffg3" "TIFF Group 3 fax with EOLs" ON \ + "tiffg32d" "TIFF Group 3 2-D fax" ON \ + "tiffg4" "TIFF Group 4 fax" ON \ + "bit" "Plain bits, monochrome" ON \ + "bitrgb" "Plain bits, RGB" ON \ + "bitcmyk" "Plain bits, CMYK" ON \ + "bmpmono" "Monochrome MS Windows .BMP file format" OFF \ + "bmp16" "4-bit EGA/VGA .BMP file format" OFF \ + "bmp256" "8-bit 256-color .BMP file format" OFF \ + "bmp16m" "24-bit .BMP file format" OFF \ + "cgmmono" "Monochrome CGM -- LOW LEVEL OUTPUT ONLY" OFF \ + "cgm8" "8-bit 256-color CGM -- DITTO" OFF \ + "cgm24" "24-bit color CGM -- DITTO" OFF \ + "cif" "CIF file format for VLSI" OFF \ + "miff24" "ImageMagick MIFF, 24-bit direct color, RLE compressed" OFF \ + "mgrmono" "1-bit monochrome MGR devices" OFF \ + "mgrgray2" "2-bit gray scale MGR devices" OFF \ + "mgrgray4" "4-bit gray scale MGR devices" OFF \ + "mgrgray8" "8-bit gray scale MGR devices" OFF \ + "mgr4" "4-bit (VGA) color MGR devices" OFF \ + "mgr8" "8-bit color MGR devices" OFF \ + "pcxmono" "PCX file format, monochrome 1-bit b/w" ON \ + "pcxgray" "PCX file format, 8-bit gray scale" ON \ + "pcx16" "PCX file format, 4-bit planar EGA/VGA color" ON \ + "pcx256" "PCX file format, 8-bit chunky color" ON \ + "pcx24b" "PCX file format, 24-bit color 3x8-bit planes" ON \ + "pbm" "Portable Bitmap, plain format" ON \ + "pbmraw" "Portable Bitmap, raw format" ON \ + "pgm" "Portable Graymap, plain format" ON \ + "pgmraw" "Portable Graymap, raw format" ON \ + "pgnm" "Portable Graymap, plain format, optim. to PBM" ON \ + "pgnmraw" "Portable Graymap, raw format, optim. to PBM" ON \ + "pnm" "Portable Pixmap, plain format RGB, optim. to PGM/PBM" ON \ + "pnmraw" "Portable Pixmap, raw format RGB, optim. to PGM/PBM" ON \ + "ppm" "Portable Pixmap, plain format RGB" ON \ + "ppmraw" "Portable Pixmap, raw format RGB" ON \ + "pngmono" "Monochrome Portable Network Graphics, PNG" ON \ + "pnggray" "8-bit gray Portable Network Graphics, PNG" ON \ + "png16" "4-bit color Portable Network Graphics, PNG" ON \ + "png256" "8-bit color Portable Network Graphics, PNG" ON \ + "png16m" "24-bit color Portable Network Graphics, PNG" ON \ + "psmono" "PostScript, Level 1, monochrome image" ON \ + "sgirgb" "SGI RGB pixmap format" OFF \ + "tiff12nc" "TIFF 12-bit RGB, no compression" ON \ + "tiff24nc" "TIFF 24-bit RGB, no compression, NeXT std. format)" ON \ + "tifflzw" "TIFF LZW, tag = 5, mono" ON \ + "tiffpack" "TIFF PackBits, tag = 32773, mono" ON 2> /tmp/checklist.tmp.$$ + +retval=$? + +choice=`cat /tmp/checklist.tmp.$$` +rm -f /tmp/checklist.tmp.$$ + +case $retval in + 0) if [ -z choice ]; then + echo "Nothing selected" + exit 1; + fi + ;; + 1) echo "Cancel pressed." + exit 1 + ;; +esac + +# bring it into the right format with '.dev' appended to each driver name +echo "DEVICE_DEVS=$choice" \ + | sed -e "s/\"//g" \ + | sed -e "s/ /.dev /g" \ + | sed -e "s/$/.dev/g" \ + > ${WRKSRC}/unix-gcc.mak.new + +# create one new Makefile, where DEVICE_DEVS contains all wanted devices +cat ${WRKSRC}/unix-gcc.mak >> ${WRKSRC}/unix-gcc.mak.new +mv ${WRKSRC}/unix-gcc.mak.new ${WRKSRC}/unix-gcc.mak |