aboutsummaryrefslogtreecommitdiffstats
path: root/print/cups-pstoraster
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2007-06-09 20:48:54 +0800
committermiwi <miwi@FreeBSD.org>2007-06-09 20:48:54 +0800
commit9f63be527f15c6b8481d2ac3026b9017b6830179 (patch)
treec880b097b76d435fa225aa7a983f9a565b54ce2e /print/cups-pstoraster
parent9908b0b0da4cb5c102f4ab412996107b6357724f (diff)
downloadfreebsd-ports-gnome-9f63be527f15c6b8481d2ac3026b9017b6830179.tar.gz
freebsd-ports-gnome-9f63be527f15c6b8481d2ac3026b9017b6830179.tar.zst
freebsd-ports-gnome-9f63be527f15c6b8481d2ac3026b9017b6830179.zip
- Add japanese font
PR: 113474 Submitted by: Eygene Ryabinkin <rea-fbsd@codelabs.ru> (maintainer) Thanks to: ume@
Diffstat (limited to 'print/cups-pstoraster')
-rw-r--r--print/cups-pstoraster/Makefile13
-rw-r--r--print/cups-pstoraster/files/extra-patch-lib_cidfmap30
2 files changed, 43 insertions, 0 deletions
diff --git a/print/cups-pstoraster/Makefile b/print/cups-pstoraster/Makefile
index d17d26e0cd87..b774487f7d04 100644
--- a/print/cups-pstoraster/Makefile
+++ b/print/cups-pstoraster/Makefile
@@ -19,6 +19,12 @@ COMMENT= Postscript interpreter for CUPS printing to non-PS printers
LIB_DEPENDS= cups.2:${PORTSDIR}/print/cups-base
+.if defined(WITH_CJK)
+RUN_DEPENDS+= ${LOCALBASE}/share/fonts/TrueType/ipag.ttf:${PORTSDIR}/japanese/ipa-ttfonts \
+ ${LOCALBASE}/share/ghostscript/fonts/a010013l.pfb:${PORTSDIR}/print/gsfonts
+EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-lib_cidfmap
+.endif
+
ESPGS_VER= ${PORTVERSION}
GS_VERSION= 8.15
@@ -39,6 +45,13 @@ MAKE_ARGS= CFLAGS_STANDARD="${CFLAGS} -DUPD_SIGNAL=0" \
DEVICE_DEVS="\$$(DD)cups.dev \$$(DD)pxlcolor.dev \$$(DD)pxlmono.dev"
PLIST_SUB= GS_VERSION="${GS_VERSION}"
+pre-everything::
+.if !defined(WITH_CJK)
+ @${ECHO_MSG} ""
+ @${ECHO_MSG} "Define WITH_CJK to enable Japanese PostScript documents processing"
+ @${ECHO_MSG} ""
+.endif
+
pre-configure:
${RM} -f ${WRKSRC}/ijs/config.guess ${WRKSRC}/ijs/missing ${WRKSRC}/ijs/config.sub ${WRKSRC}/ijs/install-sh ${WRKSRC}/ijs/ltmain.sh
${RM} -f ${WRKSRC}/trunk/ijs/config.guess ${WRKSRC}/trunk/ijs/missing ${WRKSRC}/trunk/ijs/config.sub ${WRKSRC}/trunk/ijs/install-sh ${WRKSRC}/trunk/ijs/ltmain.sh
diff --git a/print/cups-pstoraster/files/extra-patch-lib_cidfmap b/print/cups-pstoraster/files/extra-patch-lib_cidfmap
new file mode 100644
index 000000000000..a231ec0f220e
--- /dev/null
+++ b/print/cups-pstoraster/files/extra-patch-lib_cidfmap
@@ -0,0 +1,30 @@
+--- lib/cidfmap.orig Thu Dec 29 04:56:24 2005
++++ lib/cidfmap Mon Apr 9 00:47:56 2007
+@@ -26,3 +26,27 @@
+ % /ShinGo-Bold /HeiseiKakuGo-W5 ;
+ % /Ryumin-Medium << /FileType /TrueType /Path (H:/AuxFiles/Fonts/BATANG.TTC) /SubfontID 3 /CSI [(Japan1) 2] >> ;
+ %
++/Ryumin-Light << /FileType /TrueType /Path (Ryumin-Light.ttf) /SubfontID 0 /CSI [(Japan1) 3] >> ;
++/GothicBBB-Medium << /FileType /TrueType /Path (GothicBBB-Medium.ttf) /SubfontID 0 /CSI [(Japan1) 3] >> ;
++
++/HeiseiMin-W3 /Ryumin-Light ;
++%/HeiseiMin-W3 /WadaMin-Regular ;
++/HeiseiKakuGo-W5 /GothicBBB-Medium ;
++%/HeiseiKakuGo-W5 /WadaGo-Bold ;
++/FutoMinA101-Bold /Ryumin-Light ;
++%/FutoMinA101-Bold /WadaMin-Regular ;
++/FutoGoB101-Bold /GothicBBB-Medium ;
++%/FutoGoB101-Bold /WadaGo-Bold ;
++/Jun101-Light /Ryumin-Light ;
++%/Jun101-Light /WadaMin-Regular ;
++/MidashiGo-MB31 /GothicBBB-Medium ;
++%/MidashiGo-MB31 /WadaGo-Bold ;
++
++%/Munhwa-Regular /Munhwa-Regular ;
++%/MunhwaGothic-Regular /MunhwaGothic-Regular ;
++%/Munhwa-Bold /Munhwa-Bold ;
++%/MunhwaGothic-Bold /MunhwaGothic-Bold ;
++
++/HYGoThic-Medium /MunhwaGothic-Regular ;
++/HYSMyeongJo-Medium /Munhwa-Regular ;
++/HYRGoThic-Medium /MunhwaGothic-Bold ;