mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
create rootf's & SDK from 2018.02.9 buildroot (#10)
--------- Co-authored-by: tiopex <tiopxyz@gmail.com> Co-authored-by: tiopex <67048640+tiopex@users.noreply.github.com>
This commit is contained in:
@@ -4,11 +4,13 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
GHOSTSCRIPT_VERSION = 9.56.1
|
||||
GHOSTSCRIPT_SITE = https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs$(subst .,,$(GHOSTSCRIPT_VERSION))
|
||||
GHOSTSCRIPT_VERSION = 9.26
|
||||
GHOSTSCRIPT_SITE = https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs926
|
||||
GHOSTSCRIPT_SOURCE = ghostscript-$(GHOSTSCRIPT_VERSION).tar.xz
|
||||
GHOSTSCRIPT_LICENSE = AGPL-3.0
|
||||
GHOSTSCRIPT_LICENSE_FILES = LICENSE
|
||||
GHOSTSCRIPT_CPE_ID_VENDOR = artifex
|
||||
# 0001-Fix-cross-compilation-issue.patch
|
||||
GHOSTSCRIPT_AUTORECONF = YES
|
||||
GHOSTSCRIPT_DEPENDENCIES = \
|
||||
host-lcms2 \
|
||||
host-libjpeg \
|
||||
@@ -25,34 +27,26 @@ GHOSTSCRIPT_DEPENDENCIES = \
|
||||
# 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
|
||||
rm -rf $(@D)/freetype $(@D)/ijs $(@D)/jpeg $(@D)/lcms2mt \
|
||||
$(@D)/libpng $(@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)"
|
||||
CFLAGSAUX="$(HOST_CFLAGS) $(HOST_LDFLAGS)"
|
||||
|
||||
GHOSTSCRIPT_CONF_OPTS = \
|
||||
--disable-compile-inits \
|
||||
--disable-cups \
|
||||
--enable-fontconfig \
|
||||
--with-fontpath=/usr/share/fonts \
|
||||
--enable-freetype \
|
||||
--disable-gtk \
|
||||
--without-jbig2dec \
|
||||
--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
|
||||
@@ -60,22 +54,6 @@ 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
|
||||
@@ -83,8 +61,4 @@ 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