View | Details | Raw Unified | Return to bug 273771
Collapse All | Expand All

(-)b/print/ghostscript10/Makefile (-15 / +18 lines)
Lines 1-13 Link Here
1
PORTNAME=	ghostscript
1
PORTNAME=	ghostscript
2
DISTVERSION=	10.01.2
2
DISTVERSION=	10.02.0
3
PORTREVISION=	2
4
CATEGORIES=	print
3
CATEGORIES=	print
5
MASTER_SITES=	https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs${DISTVERSION:S/.//g}/
4
MASTER_SITES=	https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs${DISTVERSION:S/.//g}/
6
PKGNAMESUFFIX=	${GS_MAJOR_VERSION}
5
PKGNAMESUFFIX=	${GS_MAJOR_VERSION}
7
6
8
MAINTAINER=	michael.osipov@siemens.com
7
MAINTAINER=	michael.osipov@siemens.com
9
COMMENT=	PostScript and PDF interpreter
8
COMMENT=	PostScript and PDF interpreter
10
WWW=		https://ghostscript.com/
9
WWW=	https://ghostscript.com/
11
10
12
LICENSE=	AGPLv3
11
LICENSE=	AGPLv3
13
LICENSE_FILE=	${WRKSRC}/LICENSE
12
LICENSE_FILE=	${WRKSRC}/LICENSE
Lines 34-46 CONFLICTS_INSTALL= ghostscript[789]-base \ Link Here
34
			ghostscript9-agpl-x11
33
			ghostscript9-agpl-x11
35
34
36
EXTRACT_AFTER_ARGS=	--exclude cups/libs \
35
EXTRACT_AFTER_ARGS=	--exclude cups/libs \
36
			--exclude expat \
37
			--exclude freetype \
37
			--exclude freetype \
38
			--exclude ijs \
38
			--exclude ijs \
39
			--exclude jbig2dec \
39
			--exclude jbig2dec \
40
			--exclude jpeg \
40
			--exclude jpeg \
41
			--exclude lcms2mt \
41
			--exclude lcms2mt \
42
			--exclude leptonica \
42
			--exclude libpng \
43
			--exclude libpng \
43
			--exclude openjpeg \
44
			--exclude openjpeg \
45
			--exclude tesseract \
44
			--exclude tiff \
46
			--exclude tiff \
45
			--exclude zlib
47
			--exclude zlib
46
48
Lines 49-59 GNU_CONFIGURE= yes Link Here
49
ALL_TARGET=	so
51
ALL_TARGET=	so
50
INSTALL_TARGET=	soinstall
52
INSTALL_TARGET=	soinstall
51
53
52
DATADIR=		${PREFIX}/share/${PORTNAME}/${DISTVERSION}
54
DATADIR=	${PREFIX}/share/${PORTNAME}/${DISTVERSION}
53
55
54
GS_MAJOR_VERSION=	${DISTVERSION:R:R}
56
GS_MAJOR_VERSION=	${DISTVERSION:R:R}
55
GS_MINOR_VERSION=	${DISTVERSION:R:E}
57
GS_MINOR_VERSION=	${DISTVERSION:R:E}
56
PLIST_SUB=		GS_MAJOR_VERSION=${GS_MAJOR_VERSION} \
58
PLIST_SUB=	GS_MAJOR_VERSION=${GS_MAJOR_VERSION} \
57
			GS_MINOR_VERSION=${GS_MINOR_VERSION}
59
			GS_MINOR_VERSION=${GS_MINOR_VERSION}
58
60
59
CONFIGURE_ARGS+=	--disable-compile-inits \
61
CONFIGURE_ARGS+=	--disable-compile-inits \
Lines 71-92 CONFIGURE_ARGS+= --disable-compile-inits \ Link Here
71
			--with-libpaper \
73
			--with-libpaper \
72
			--with-system-libtiff
74
			--with-system-libtiff
73
75
74
OPTIONS_DEFINE=		CUPS IJS TESSERACT X11
76
OPTIONS_DEFINE=	CUPS IJS TESSERACT X11
75
OPTIONS_DEFAULT=	CUPS X11
77
OPTIONS_DEFAULT=	CUPS X11
76
78
77
IJS_DESC=			Support libijs based Ghostscript devices
79
IJS_DESC=	Support libijs based Ghostscript devices
78
TESSERACT_DESC=			Enable bundled Tesseract OCR engine
80
TESSERACT_DESC=	Enable Tesseract OCR engine
79
81
80
CUPS_LIB_DEPENDS=		libcups.so:print/cups
82
CUPS_LIB_DEPENDS=	libcups.so:print/cups
81
CUPS_CONFIGURE_ENABLE=		cups
83
CUPS_CONFIGURE_ENABLE=	cups
82
84
83
IJS_LIB_DEPENDS=		libijs.so:print/libijs
85
IJS_LIB_DEPENDS=	libijs.so:print/libijs
84
IJS_CONFIGURE_WITH=		ijs
86
IJS_CONFIGURE_WITH=	ijs
85
87
86
TESSERACT_USES=			compiler:c++17-lang
88
TESSERACT_USES=	libarchive
87
TESSERACT_CONFIGURE_WITH=	tesseract
89
TESSERACT_CONFIGURE_WITH=	tesseract
88
# No TESSERACT_LIB_DEPENDS=	libtesseract.so:graphics/tesseract
90
TESSERACT_LIB_DEPENDS=	libcurl.so:ftp/curl \
89
# See https://bugs.ghostscript.com/show_bug.cgi?id=706490
91
		libleptonica.so:graphics/leptonica \
92
		libtesseract.so:graphics/tesseract
90
93
91
X11_CONFIGURE_WITH=	x
94
X11_CONFIGURE_WITH=	x
92
X11_USES=	xorg
95
X11_USES=	xorg
(-)b/print/ghostscript10/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1687874762
1
TIMESTAMP = 1694618577
2
SHA256 (ghostscript-10.01.2.tar.xz) = 48d079242a2ca02a2e47a76a52cdfa818b2ad769c2bab00ad0497dd13560e7e7
2
SHA256 (ghostscript-10.02.0.tar.xz) = fa08ce016b30d26293dc322c6353691aced94fd3667a68ede7ff5395d71fcd0b
3
SIZE (ghostscript-10.01.2.tar.xz) = 67571808
3
SIZE (ghostscript-10.02.0.tar.xz) = 67955320
(-)b/print/ghostscript10/files/patch-configure (-1 / +1 lines)
Lines 1-6 Link Here
1
--- configure.orig	2022-04-04 13:48:49 UTC
1
--- configure.orig	2022-04-04 13:48:49 UTC
2
+++ configure
2
+++ configure
3
@@ -11629,7 +11629,12 @@ if test "${enable_dynamic+set}" = set; then :
3
@@ -13383,7 +13383,12 @@ if test "${enable_dynamic+set}" = set; then :
4
         DBG_CFLAGS="$DYNAMIC_CFLAGS $DBG_CFLAGS"
4
         DBG_CFLAGS="$DYNAMIC_CFLAGS $DBG_CFLAGS"
5
       ;;
5
       ;;
6
       *bsd*)
6
       *bsd*)
(-)a/print/ghostscript10/files/patch-psi_imainarg.c (-44 lines)
Removed Link Here
1
--- psi/imainarg.c.orig	2023-03-21 14:58:42 UTC
2
+++ psi/imainarg.c
3
@@ -109,7 +109,6 @@ static void print_usage(const gs_main_instance *);
4
 static void print_devices(const gs_main_instance *);
5
 static void print_emulators(const gs_main_instance *);
6
 static void print_paths(gs_main_instance *);
7
-static void print_help_trailer(const gs_main_instance *);
8
 
9
 /* ------ Main program ------ */
10
 
11
@@ -1262,7 +1261,6 @@ static const char help_debug[] = "\
12
  --debug                       list debugging options\n";
13
 #endif
14
 static const char help_trailer[] = "\
15
-For more information, see %s.\n\
16
 Please report bugs to bugs.ghostscript.com.\n";
17
 static const char help_devices[] = "Available devices:";
18
 static const char help_default_device[] = "Default output device:";
19
@@ -1305,7 +1303,7 @@ print_help(gs_main_instance * minst)
20
     if (have_rom_device) {
21
         outprintf(minst->heap, "Initialization files are compiled into the executable.\n");
22
     }
23
-    print_help_trailer(minst);
24
+    outprintf(minst->heap, "%s", help_trailer);
25
 }
26
 
27
 /* Print the revision, revision date, and copyright. */
28
@@ -1450,16 +1448,3 @@ print_paths(gs_main_instance * minst)
29
     outprintf(minst->heap, "%s", help_fontconfig);
30
 }
31
 
32
-/* Print the help trailer. */
33
-static void
34
-print_help_trailer(const gs_main_instance *minst)
35
-{
36
-    char buffer[gp_file_name_sizeof];
37
-    const char *use_htm = "Use.htm", *p = buffer;
38
-    uint blen = sizeof(buffer);
39
-
40
-    if (gp_file_name_combine(gs_doc_directory, strlen(gs_doc_directory),
41
-            use_htm, strlen(use_htm), false, buffer, &blen) != gp_combine_success)
42
-        p = use_htm;
43
-    outprintf(minst->heap, help_trailer, p);
44
-}
(-)a/print/ghostscript10/files/patch-tesseract_src_arch_simddetect.cpp (-34 lines)
Removed Link Here
1
--- tesseract/src/arch/simddetect.cpp.orig	2021-09-27 07:44:02 UTC
2
+++ tesseract/src/arch/simddetect.cpp
3
@@ -40,10 +40,13 @@
4
 #if defined(HAVE_NEON) && !defined(__aarch64__)
5
 #ifdef ANDROID
6
 #include <cpu-features.h>
7
-#else
8
+#elif defined(__linux__)
9
 /* Assume linux */
10
 #include <sys/auxv.h>
11
 #include <asm/hwcap.h>
12
+#elif defined(__FreeBSD__)
13
+#include <sys/auxv.h>
14
+#include <sys/elf.h>
15
 #endif
16
 #endif
17
 
18
@@ -188,9 +191,15 @@ SIMDDetect::SIMDDetect() {
19
       neon_available_ = (android_getCpuFeatures() &
20
                          ANDROID_CPU_ARM_FEATURE_NEON);
21
   }
22
-#else
23
+#elif defined(__linux__)
24
   /* Assume linux */
25
   neon_available_ = getauxval(AT_HWCAP) & HWCAP_NEON;
26
+#elif defined(__FreeBSD__)
27
+  unsigned long hwcap = 0;
28
+  elf_aux_info(AT_HWCAP, &hwcap, sizeof hwcap);
29
+  neon_available_ = hwcap & HWCAP_NEON;
30
+#else
31
+  neon_available_ = 0;
32
 #endif
33
 #endif
34
 
(-)b/print/ghostscript10/pkg-plist (-7 lines)
Lines 177-189 share/color/icc/ghostscript/srgb.icc Link Here
177
%%DATADIR%%/Resource/Init/gs_typ42.ps
177
%%DATADIR%%/Resource/Init/gs_typ42.ps
178
%%DATADIR%%/Resource/Init/gs_type1.ps
178
%%DATADIR%%/Resource/Init/gs_type1.ps
179
%%DATADIR%%/Resource/Init/gs_wan_e.ps
179
%%DATADIR%%/Resource/Init/gs_wan_e.ps
180
%%DATADIR%%/Resource/Init/pdf_base.ps
181
%%DATADIR%%/Resource/Init/pdf_draw.ps
182
%%DATADIR%%/Resource/Init/pdf_font.ps
183
%%DATADIR%%/Resource/Init/pdf_main.ps
180
%%DATADIR%%/Resource/Init/pdf_main.ps
184
%%DATADIR%%/Resource/Init/pdf_ops.ps
185
%%DATADIR%%/Resource/Init/pdf_rbld.ps
186
%%DATADIR%%/Resource/Init/pdf_sec.ps
187
%%DATADIR%%/Resource/Init/xlatmap
181
%%DATADIR%%/Resource/Init/xlatmap
188
%%DATADIR%%/Resource/SubstCID/CNS1-WMode
182
%%DATADIR%%/Resource/SubstCID/CNS1-WMode
189
%%DATADIR%%/Resource/SubstCID/GB1-WMode
183
%%DATADIR%%/Resource/SubstCID/GB1-WMode
190
- 

Return to bug 273771