generated from gaoyang3513/SDK_RK3288
[Mod] First commit
This commit is contained in:
14
package/ghostscript/Config.in
Normal file
14
package/ghostscript/Config.in
Normal file
@ -0,0 +1,14 @@
|
||||
config BR2_PACKAGE_GHOSTSCRIPT
|
||||
bool "ghostscript"
|
||||
depends on BR2_USE_MMU # fork()
|
||||
select BR2_PACKAGE_FONTCONFIG
|
||||
select BR2_PACKAGE_GHOSTSCRIPT_FONTS
|
||||
select BR2_PACKAGE_JPEG
|
||||
select BR2_PACKAGE_LCMS2
|
||||
select BR2_PACKAGE_LIBPNG
|
||||
select BR2_PACKAGE_TIFF
|
||||
help
|
||||
Ghostscript is an interpreter for PostScript and Portable
|
||||
Document Format (PDF) files.
|
||||
|
||||
http://ghostscript.com
|
||||
5
package/ghostscript/ghostscript.hash
Normal file
5
package/ghostscript/ghostscript.hash
Normal file
@ -0,0 +1,5 @@
|
||||
# From https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs9561/SHA512SUMS
|
||||
sha512 f498384af80654c040635564b8bc9a64c4bb5b0769bb00aade4042bbe9117c482362dc1a1fac72db3ce9487dd5a5bb8fb81b35b360680fe598df33dfbbe79499 ghostscript-9.56.1.tar.gz
|
||||
|
||||
# Hash for license file:
|
||||
sha256 8ce064f423b7c24a011b6ebf9431b8bf9861a5255e47c84bfb23fc526d030a8b LICENSE
|
||||
90
package/ghostscript/ghostscript.mk
Normal file
90
package/ghostscript/ghostscript.mk
Normal file
@ -0,0 +1,90 @@
|
||||
################################################################################
|
||||
#
|
||||
# ghostscript
|
||||
#
|
||||
################################################################################
|
||||
|
||||
GHOSTSCRIPT_VERSION = 9.56.1
|
||||
GHOSTSCRIPT_SITE = https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs$(subst .,,$(GHOSTSCRIPT_VERSION))
|
||||
GHOSTSCRIPT_LICENSE = AGPL-3.0
|
||||
GHOSTSCRIPT_LICENSE_FILES = LICENSE
|
||||
GHOSTSCRIPT_CPE_ID_VENDOR = artifex
|
||||
GHOSTSCRIPT_DEPENDENCIES = \
|
||||
host-lcms2 \
|
||||
host-libjpeg \
|
||||
host-pkgconf \
|
||||
host-zlib \
|
||||
fontconfig \
|
||||
ghostscript-fonts \
|
||||
jpeg \
|
||||
lcms2 \
|
||||
libpng \
|
||||
tiff
|
||||
|
||||
# Ghostscript includes (old) copies of several libraries, delete them.
|
||||
# Inspired by linuxfromscratch:
|
||||
# http://www.linuxfromscratch.org/blfs/view/svn/pst/gs.html
|
||||
define GHOSTSCRIPT_REMOVE_LIBS
|
||||
rm -rf $(@D)/freetype $(@D)/ijs $(@D)/jbig2dec $(@D)/jpeg \
|
||||
$(@D)/lcms2mt $(@D)/libpng $(@D)/openjpeg $(@D)/tiff \
|
||||
$(@D)/zlib
|
||||
endef
|
||||
GHOSTSCRIPT_POST_PATCH_HOOKS += GHOSTSCRIPT_REMOVE_LIBS
|
||||
|
||||
GHOSTSCRIPT_CONF_ENV = \
|
||||
CCAUX="$(HOSTCC)" \
|
||||
CFLAGSAUX="$(HOST_CFLAGS) $(HOST_LDFLAGS)" \
|
||||
PKGCONFIG="$(PKG_CONFIG_HOST_BINARY)"
|
||||
|
||||
GHOSTSCRIPT_CONF_OPTS = \
|
||||
--disable-compile-inits \
|
||||
--enable-fontconfig \
|
||||
--with-fontpath=/usr/share/fonts \
|
||||
--enable-freetype \
|
||||
--disable-gtk \
|
||||
--without-libpaper \
|
||||
--without-pdf \
|
||||
--with-system-libtiff
|
||||
|
||||
ifeq ($(BR2_PACKAGE_JBIG2DEC),y)
|
||||
GHOSTSCRIPT_DEPENDENCIES += jbig2dec
|
||||
GHOSTSCRIPT_CONF_OPTS += --with-jbig2dec
|
||||
else
|
||||
GHOSTSCRIPT_CONF_OPTS += --without-jbig2dec
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBIDN),y)
|
||||
GHOSTSCRIPT_DEPENDENCIES += libidn
|
||||
GHOSTSCRIPT_CONF_OPTS += --with-libidn
|
||||
else
|
||||
GHOSTSCRIPT_CONF_OPTS += --without-libidn
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_OPENJPEG),y)
|
||||
GHOSTSCRIPT_DEPENDENCIES += openjpeg
|
||||
GHOSTSCRIPT_CONF_OPTS += --enable-openjpeg
|
||||
else
|
||||
GHOSTSCRIPT_CONF_OPTS += --disable-openjpeg
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_CUPS),y)
|
||||
GHOSTSCRIPT_DEPENDENCIES += cups
|
||||
GHOSTSCRIPT_CONF_OPTS += \
|
||||
CUPSCONFIG=$(STAGING_DIR)/usr/bin/cups-config \
|
||||
--enable-cups
|
||||
else
|
||||
GHOSTSCRIPT_CONF_OPTS += --disable-cups
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_XLIB_LIBX11),y)
|
||||
GHOSTSCRIPT_DEPENDENCIES += xlib_libX11
|
||||
GHOSTSCRIPT_CONF_OPTS += --with-x
|
||||
else
|
||||
GHOSTSCRIPT_CONF_OPTS += --without-x
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),)
|
||||
GHOSTSCRIPT_CONF_OPTS += --without-tesseract
|
||||
endif
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user