diff options
Diffstat (limited to 'meta/recipes-extended/ghostscript/ghostscript_10.02.0.bb')
-rw-r--r-- | meta/recipes-extended/ghostscript/ghostscript_10.02.0.bb | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/meta/recipes-extended/ghostscript/ghostscript_10.02.0.bb b/meta/recipes-extended/ghostscript/ghostscript_10.02.0.bb new file mode 100644 index 0000000000..4bad0f86e1 --- /dev/null +++ b/meta/recipes-extended/ghostscript/ghostscript_10.02.0.bb | |||
@@ -0,0 +1,74 @@ | |||
1 | SUMMARY = "The GPL Ghostscript PostScript/PDF interpreter" | ||
2 | DESCRIPTION = "Ghostscript is used for PostScript/PDF preview and printing. Usually as \ | ||
3 | a back-end to a program such as ghostview, it can display PostScript and PDF \ | ||
4 | documents in an X11 environment. \ | ||
5 | \ | ||
6 | Furthermore, it can render PostScript and PDF files as graphics to be printed \ | ||
7 | on non-PostScript printers. Supported printers include common \ | ||
8 | dot-matrix, inkjet and laser models. \ | ||
9 | " | ||
10 | HOMEPAGE = "http://www.ghostscript.com" | ||
11 | SECTION = "console/utils" | ||
12 | |||
13 | LICENSE = "GPL-3.0-only" | ||
14 | LIC_FILES_CHKSUM = "file://LICENSE;md5=f98ffa763e50cded76f49bce73aade16" | ||
15 | |||
16 | DEPENDS = "tiff jpeg fontconfig cups libpng freetype zlib" | ||
17 | |||
18 | UPSTREAM_CHECK_URI = "https://github.com/ArtifexSoftware/ghostpdl-downloads/releases" | ||
19 | UPSTREAM_CHECK_REGEX = "(?P<pver>\d+(\.\d+)+)\.tar" | ||
20 | |||
21 | def gs_verdir(v): | ||
22 | return "".join(v.split(".")) | ||
23 | |||
24 | |||
25 | SRC_URI = "https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs${@gs_verdir("${PV}")}/${BPN}-${PV}.tar.gz \ | ||
26 | file://ghostscript-9.16-Werror-return-type.patch \ | ||
27 | file://avoid-host-contamination.patch \ | ||
28 | file://configure.ac-add-option-to-explicitly-disable-neon.patch \ | ||
29 | " | ||
30 | |||
31 | SRC_URI[sha256sum] = "e54062f166708d84ca82de9f8304a04344466080f936118b88082bd55ed6dc97" | ||
32 | |||
33 | PACKAGECONFIG ??= "" | ||
34 | PACKAGECONFIG[gtk] = "--enable-gtk,--disable-gtk,gtk+3" | ||
35 | PACKAGECONFIG[libidn] = "--with-libidn,--without-libidn,libidn" | ||
36 | PACKAGECONFIG[libpaper] = "--with-libpaper,--without-libpaper,libpaper" | ||
37 | PACKAGECONFIG[x11] = "--with-x --x-includes=${STAGING_INCDIR} --x-libraries=${STAGING_LIBDIR}, \ | ||
38 | --without-x, virtual/libx11 libxext libxt" | ||
39 | |||
40 | EXTRA_OECONF = "--with-jbig2dec \ | ||
41 | --with-fontpath=${datadir}/fonts \ | ||
42 | CUPSCONFIG="${STAGING_BINDIR_CROSS}/cups-config" \ | ||
43 | PKGCONFIG=pkg-config \ | ||
44 | " | ||
45 | |||
46 | EXTRA_OECONF:append:mipsarcho32 = " --with-large_color_index=0" | ||
47 | |||
48 | EXTRA_OECONF:append:armv7a = "${@bb.utils.contains('TUNE_FEATURES','neon','',' --disable-neon',d)}" | ||
49 | EXTRA_OECONF:append:armv7ve = "${@bb.utils.contains('TUNE_FEATURES','neon','',' --disable-neon',d)}" | ||
50 | |||
51 | # Uses autoconf but not automake, can't do out-of-tree | ||
52 | inherit autotools-brokensep pkgconfig | ||
53 | |||
54 | # Prune the source tree of libraries that we're using our packaging of, so that | ||
55 | # ghostscript can't link to them. Can't prune zlib as that's needed for the | ||
56 | # native tools. | ||
57 | prune_sources() { | ||
58 | rm -rf ${S}/jpeg/ ${S}/libpng/ ${S}/tiff/ ${S}/expat/ ${S}/freetype/ ${S}/cups/lib | ||
59 | } | ||
60 | do_unpack[postfuncs] += "prune_sources" | ||
61 | |||
62 | do_install:append () { | ||
63 | mkdir -p ${D}${datadir}/ghostscript/${PV}/ | ||
64 | cp -r ${S}/Resource ${D}${datadir}/ghostscript/${PV}/ | ||
65 | cp -r ${S}/iccprofiles ${D}${datadir}/ghostscript/${PV}/ | ||
66 | } | ||
67 | |||
68 | # ghostscript does not supports "arc" | ||
69 | COMPATIBLE_HOST = "^(?!arc).*" | ||
70 | |||
71 | # some entries in NVD uses gpl_ghostscript | ||
72 | CVE_PRODUCT = "ghostscript gpl_ghostscript" | ||
73 | |||
74 | CVE_STATUS[CVE-2023-38560] = "not-applicable-config: PCL isn't part of the Ghostscript release" | ||