aboutsummaryrefslogtreecommitdiff
path: root/print/cups-pstoraster
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2007-06-09 12:48:54 +0000
committerMartin Wilke <miwi@FreeBSD.org>2007-06-09 12:48:54 +0000
commit10882b18d8aa058458cb5583412e8bfec8cb54e3 (patch)
tree7578a9b594f2b33b9be155ba75232febf8fb8c92 /print/cups-pstoraster
parent9839ed46e71f3edb16a8eabd4a469b6e8e3fad9c (diff)
downloadports-10882b18d8aa058458cb5583412e8bfec8cb54e3.tar.gz
ports-10882b18d8aa058458cb5583412e8bfec8cb54e3.zip
- Add japanese font
PR: 113474 Submitted by: Eygene Ryabinkin <rea-fbsd@codelabs.ru> (maintainer) Thanks to: ume@
Notes
Notes: svn path=/head/; revision=193101
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 ;