1 ################################################################################
5 ################################################################################
7 GHOSTSCRIPT_VERSION
= 9.21
8 GHOSTSCRIPT_SITE
= https
://github.com
/ArtifexSoftware
/ghostpdl-downloads
/releases
/download
/gs921
9 GHOSTSCRIPT_SOURCE
= ghostscript-
$(GHOSTSCRIPT_VERSION
).
tar.xz
10 GHOSTSCRIPT_LICENSE
= AGPLv3
11 GHOSTSCRIPT_LICENSE_FILES
= LICENSE
12 # 0001-Fix-cross-compilation-issue.patch
13 GHOSTSCRIPT_AUTORECONF
= YES
14 GHOSTSCRIPT_DEPENDENCIES
= \
25 # Ghostscript includes (old) copies of several libraries, delete them.
26 # Inspired by linuxfromscratch:
27 # http://www.linuxfromscratch.org/blfs/view/svn/pst/gs.html
28 define GHOSTSCRIPT_REMOVE_LIBS
29 rm -rf
$(@D
)/freetype
$(@D
)/ijs
$(@D
)/jpeg
$(@D
)/lcms2
$(@D
)/libpng
$(@D
)/tiff
$(@D
)/zlib
31 GHOSTSCRIPT_POST_PATCH_HOOKS
+= GHOSTSCRIPT_REMOVE_LIBS
33 GHOSTSCRIPT_CONF_ENV
= \
35 CFLAGSAUX
="$(HOST_CFLAGS) $(HOST_LDFLAGS)"
37 GHOSTSCRIPT_CONF_OPTS
= \
38 --disable-compile-inits \
41 --with-fontpath
=$(GHOSTSCRIPT_FONTS_TARGET_DIR
) \
48 ifeq ($(BR2_PACKAGE_LIBIDN
),y
)
49 GHOSTSCRIPT_DEPENDENCIES
+= libidn
50 GHOSTSCRIPT_CONF_OPTS
+= --with-libidn
52 GHOSTSCRIPT_CONF_OPTS
+= --without-libidn
55 ifeq ($(BR2_PACKAGE_XLIB_LIBX11
),y
)
56 GHOSTSCRIPT_DEPENDENCIES
+= xlib_libX11
57 GHOSTSCRIPT_CONF_OPTS
+= --with-x
59 GHOSTSCRIPT_CONF_OPTS
+= --without-x
62 $(eval
$(autotools-package
))