diff options
author | tijl <tijl@FreeBSD.org> | 2018-06-27 01:15:37 +0800 |
---|---|---|
committer | tijl <tijl@FreeBSD.org> | 2018-06-27 01:15:37 +0800 |
commit | 3a2309c95328ce7e9dfdaa9a154c865e51d66b3e (patch) | |
tree | 30c1f15290eeb359914ea84beab0941a4990413c | |
parent | ad65c069eb4f83f6b890c93127abfb96577385d4 (diff) | |
download | freebsd-ports-gnome-3a2309c95328ce7e9dfdaa9a154c865e51d66b3e.tar.gz freebsd-ports-gnome-3a2309c95328ce7e9dfdaa9a154c865e51d66b3e.tar.zst freebsd-ports-gnome-3a2309c95328ce7e9dfdaa9a154c865e51d66b3e.zip |
- 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>
-rw-r--r-- | print/ghostscript9-agpl-base/Makefile | 4 | ||||
-rw-r--r-- | print/ghostscript9-agpl-base/files/patch-Resource_Init_cidfmap | 70 | ||||
-rw-r--r-- | print/ghostscript9-agpl-base/files/patch-configure | 21 | ||||
-rw-r--r-- | print/ghostscript9-agpl-base/files/pkg-message.in | 5 | ||||
-rw-r--r-- | print/ghostscript9-agpl-base/pkg-message | 2 | ||||
-rw-r--r-- | print/ghostscript9-agpl-x11/Makefile | 2 |
6 files changed, 93 insertions, 11 deletions
diff --git a/print/ghostscript9-agpl-base/Makefile b/print/ghostscript9-agpl-base/Makefile index 9a980c192a5b..2ab30a5b2173 100644 --- a/print/ghostscript9-agpl-base/Makefile +++ b/print/ghostscript9-agpl-base/Makefile @@ -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 diff --git a/print/ghostscript9-agpl-base/files/patch-Resource_Init_cidfmap b/print/ghostscript9-agpl-base/files/patch-Resource_Init_cidfmap new file mode 100644 index 000000000000..33727e77eec9 --- /dev/null +++ b/print/ghostscript9-agpl-base/files/patch-Resource_Init_cidfmap @@ -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. diff --git a/print/ghostscript9-agpl-base/files/patch-configure b/print/ghostscript9-agpl-base/files/patch-configure index bab24d238ea2..126cd08f5671 100644 --- a/print/ghostscript9-agpl-base/files/patch-configure +++ b/print/ghostscript9-agpl-base/files/patch-configure @@ -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) diff --git a/print/ghostscript9-agpl-base/files/pkg-message.in b/print/ghostscript9-agpl-base/files/pkg-message.in deleted file mode 100644 index ff7c18d05a86..000000000000 --- a/print/ghostscript9-agpl-base/files/pkg-message.in +++ /dev/null @@ -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. diff --git a/print/ghostscript9-agpl-base/pkg-message b/print/ghostscript9-agpl-base/pkg-message new file mode 100644 index 000000000000..b33f90c366fd --- /dev/null +++ b/print/ghostscript9-agpl-base/pkg-message @@ -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. diff --git a/print/ghostscript9-agpl-x11/Makefile b/print/ghostscript9-agpl-x11/Makefile index a5d265ec64c9..2e0f48f0e922 100644 --- a/print/ghostscript9-agpl-x11/Makefile +++ b/print/ghostscript9-agpl-x11/Makefile @@ -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 \ |