1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00

- Restore patch that adds mappings for common CJK TeX fonts to cidfmap.

Make the path in the mappings relative to LOCALBASE/share/fonts so
  print/gsfonts does not need to be installed. [1]
- Remove --enable-threadsafe from CONFIGURE_ARGS so thread-unsafe devices
  like opvp (used by Canon printer drivers) are built. [2]
- Fix detection of dlopen on FreeBSD < 11.2 (which doesn't have libdl). [2]
- Remove reference to FAPI configuration from pkg-message.  As far as I
  can tell it is only useful in combination with UFST, a commercial font
  renderer from Monotype and we don't (and can't) build with UFST support.

PR:		229211 [1], 229332 [2]
Tested by:	Osamu Matsuda <omatsuda000@gmail.com>
This commit is contained in:
Tijl Coosemans 2018-06-26 17:15:37 +00:00
parent 1ebd15e7a7
commit 00d5aa717b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=473400
6 changed files with 93 additions and 11 deletions

View File

@ -2,6 +2,7 @@
PORTNAME= ghostscript
PORTVERSION= 9.23
PORTREVISION= 1
CATEGORIES= print
MASTER_SITES= https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs${PORTVERSION:S/.//}/
PKGNAMESUFFIX= 9-agpl-base
@ -40,7 +41,6 @@ CONFIGURE_ARGS= --disable-compile-inits \
--enable-fontconfig \
--enable-freetype \
--enable-openjpeg \
--enable-threadsafe \
--with-drivers=ALL \
--with-fontpath=${LOCALBASE}/share/fonts \
--with-jbig2dec \
@ -52,8 +52,6 @@ CONFIGURE_ARGS= --disable-compile-inits \
ALL_TARGET= so
INSTALL_TARGET= soinstall
PLIST_SUB= GS_VERSION="${PORTVERSION}"
SUB_FILES= pkg-message
SUB_LIST= DATADIR="${DATADIR}"
OPTIONS_DEFINE= DOCS CUPS IJS
OPTIONS_DEFAULT=CUPS IJS

View File

@ -0,0 +1,70 @@
--- Resource/Init/cidfmap.orig 2015-03-30 08:21:24 UTC
+++ Resource/Init/cidfmap
@@ -29,6 +29,67 @@
% /ShinGo-Bold /HeiseiKakuGo-W5 ;
% /Ryumin-Medium << /FileType /TrueType /Path (H:/AuxFiles/Fonts/BATANG.TTC) /SubfontID 3 /CSI [(Japan1) 2] >> ;
% /Ryumin-Medium << /FileType /TrueType /Path (windir) getenv not {(c:/windows)}if (/Fonts/BATANG.TTC)concatstrings /SubfontID 3 /CSI [(Japan1) 2] >> ;
+/Ryumin-Light << /FileType /TrueType /Path (std.ja_JP/Ryumin-Light) /SubfontID 0 /CSI [(Japan1) 6] >> ;
+/GothicBBB-Medium << /FileType /TrueType /Path (std.ja_JP/GothicBBB-Medium) /SubfontID 0 /CSI [(Japan1) 6] >> ;
+
+/Ryumin-Medium /Ryumin-Light ;
+/Ryumin-Regular /Ryumin-Light ;
+/RyuminPro-Light /Ryumin-Light ;
+
+/GothicBBBPro-Medium /GothicBBB-Medium ;
+
+/KozGoPro-Bold /GothicBBB-Medium ;
+/KozGoPro-Heavy /GothicBBB-Medium ;
+/KozGoPro-Medium /GothicBBB-Medium ;
+/KozGoPro-Regular /GothicBBB-Medium ;
+
+/KozMinPro-Bold /Ryumin-Light ;
+/KozMinPro-Light /Ryumin-Light ;
+/KozMinPro-Medium /Ryumin-Light ;
+/KozMinPro-Regular /Ryumin-Light ;
+
+/HiraKakuPro-W3 /GothicBBB-Medium ;
+/HiraKakuPro-W6 /GothicBBB-Medium ;
+/HiraKakuStd-W8 /GothicBBB-Medium ;
+
+/HiraMaruPro-W4 /GothicBBB-Medium ;
+
+/HiraMinPro-W3 /Ryumin-Light ;
+
+/HeiseiMin-W3 /Ryumin-Light ;
+/HeiseiKakuGo-W5 /GothicBBB-Medium ;
+
+/FutoMinA101-Bold /Ryumin-Light ;
+/FutoMinA101Pro-Bold /Ryumin-Light ;
+/FutoGoB101-Bold /GothicBBB-Medium ;
+/FutoGoB101Pro-Bold /GothicBBB-Medium ;
+
+/Jun101-Light /Ryumin-Light ;
+/Jun101Pro-Light /Ryumin-Light ;
+
+/MidashiGo-MB31 /GothicBBB-Medium ;
+/MidashiGoPro-MB31 /GothicBBB-Medium ;
+
+/MidashiMinPro-MA31 /Ryumin-Light ;
+
+/MS-Mincho /Ryumin-Light ;
+/MS-PMincho /Ryumin-Light ;
+/MS-Gothic /GothicBBB-Medium ;
+/MS-PGothic /GothicBBB-Medium ;
+
+%/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 ;
+
+/STHeiti-Regular << /FileType /TrueType /Path (std.zh_CN/STHeiti-Regular) /SubfontID 0 /CSI [(CNS1) 5] >> ;
+/STSong-Light << /FileType /TrueType /Path (std.zh_CN/STSong-Light) /SubfontID 0 /CSI [(GB1) 5] >> ;
+/MSung-Light << /FileType /TrueType /Path (std.zh_CN/MSung-Light) /SubfontID 0 /CSI [(CNS1) 5] >> ;
+/MHei-Medium << /FileType /TrueType /Path (std.zh_CN/MHei-Medium) /SubfontID 0 /CSI [(GB1) 5] >> ;
%
% NOTE: getenv returns a boolean to indicate success of or failure, as well as the value on success. In the example, it uses this
% to include a default value should getenv fail.

View File

@ -9,7 +9,24 @@
fi
@@ -9950,42 +9950,42 @@ if test x$enable_threadsafe = xyes; then
@@ -5762,7 +5762,6 @@ if ${ac_cv_lib_dl_dlopen+:} false; then :
$as_echo_n "(cached) " >&6
else
ac_check_lib_save_LIBS=$LIBS
-LIBS="-ldl $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
@@ -5795,7 +5794,7 @@ $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
if test "x$ac_cv_header_dlfcn_h" = xyes; then :
- GCFLAGS="$GCFLAGS -DHAVE_LIBDL=1";LIBS="-ldl $LIBS"
+ GCFLAGS="$GCFLAGS -DHAVE_LIBDL=1";
fi
@@ -9950,42 +9949,42 @@ if test x$enable_threadsafe = xyes; then
for ntsdev in $NTS_DEVS ; do
NTS_EXCLUDES="$(echo \"$P_DEVS0{@:0}\" | grep -o $ntsdev) $NTS_EXCLUDES"
@ -60,7 +77,7 @@
done
NTS_EXCLUDES=`echo "$NTS_EXCLUDES" | tr " " "\n" | sort | uniq | tr "\n" " "`
@@ -10145,7 +10145,12 @@ if test "${enable_dynamic+set}" = set; then :
@@ -10145,7 +10144,12 @@ if test "${enable_dynamic+set}" = set; then :
DBG_CFLAGS="$DYNAMIC_CFLAGS $DBG_CFLAGS"
;;
*BSD)

View File

@ -1,5 +0,0 @@
Note: in order to use the script "dvipdf", dvips must be installed.
This program is provided by another package print/tex-dvipsk.
FAPIfontmap and FAPIcidfmap in %%DATADIR%%/Resource/Init
have to be configured if you want to use FAPI feature.

View File

@ -0,0 +1,2 @@
This package installs a script named dvipdf that depends on dvips. If you
want to use this script you need to install print/tex-dvipsk.

View File

@ -2,6 +2,7 @@
PORTNAME= ghostscript
PORTVERSION= 9.23
PORTREVISION= 1
CATEGORIES= print
MASTER_SITES= https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs${PORTVERSION:S/.//}/
PKGNAMESUFFIX= 9-agpl-x11
@ -31,7 +32,6 @@ CONFIGURE_ARGS= --disable-compile-inits \
--enable-fontconfig \
--enable-freetype \
--enable-openjpeg \
--enable-threadsafe \
--with-drivers=ALL \
--with-fontpath=${LOCALBASE}/share/fonts \
--with-jbig2dec \