comparison src/ghostscript.mk @ 4959:506a61f959e4

Update ghostscript to 9.26. * src/ghostscript.mk: Update version, checksum and dependencies. Update build rule. * src/ghostscript-1-fixes.patch: Add new file. * src/ghostscrip-mingw-[i686,x86_64]-[arch.h,gconfig_.h,makefile]: Remove files. * src/build-automake.mk: Update to version 1.16.1. * src/build-automake-1-perl-5.patch: Remove file. * src/libidn.mk: Update to version 1.35. * src/glpk.mk: Skip autoconf steps.
author Markus Mützel <markus.muetzel@gmx.de>
date Sat, 16 Feb 2019 16:03:02 +0100
parents b63aebf07b75
children d80152a06425
comparison
equal deleted inserted replaced
4958:8b4d4e06075d 4959:506a61f959e4
1 # This file is part of MXE. 1 # This file is part of MXE.
2 # See index.html for further information. 2 # See index.html for further information.
3 3
4 PKG := ghostscript 4 PKG := ghostscript
5 $(PKG)_IGNORE := 5 $(PKG)_IGNORE :=
6 $(PKG)_VERSION := 9.16 6 $(PKG)_VERSION := 9.26
7 $(PKG)_CHECKSUM := cc06fbf8244b9e8d0694cee5bf3be5bdd444b888 7 $(PKG)_NODOTVER := $(subst .,,$($(PKG)_VERSION))
8 $(PKG)_CHECKSUM := 2727000ebee0d08311705859a31a504e259f0d98
8 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) 9 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
9 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz 10 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.xz
10 $(PKG)_URL := http://downloads.ghostscript.com/public/old-gs-releases/$($(PKG)_FILE) 11 $(PKG)_URL := https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs$($(PKG)_NODOTVER)/$($(PKG)_FILE)
11 $(PKG)_DEPS := jpeg lcms libpng tiff zlib 12 $(PKG)_DEPS := dbus fontconfig freetype libiconv libidn libpaper libpng tiff zlib
13
12 ifeq ($(MXE_WINDOWS_BUILD),no) 14 ifeq ($(MXE_WINDOWS_BUILD),no)
13 ifeq ($(USE_SYSTEM_X11_LIBS),no) 15 ifeq ($(USE_SYSTEM_X11_LIBS),no)
14 $(PKG)_DEPS += x11 xext 16 $(PKG)_DEPS += x11 xext
15 endif 17 endif
16 endif 18 endif
18 ifeq ($(MXE_NATIVE_MINGW_BUILD),yes) 20 ifeq ($(MXE_NATIVE_MINGW_BUILD),yes)
19 $(PKG)_DEPS += lcms 21 $(PKG)_DEPS += lcms
20 endif 22 endif
21 23
22 define $(PKG)_UPDATE 24 define $(PKG)_UPDATE
23 echo 'Warning: Updates are temporarily disabled for package ghostscript.' >&2; 25 $(WGET) -q -O- 'https://api.github.com/repos/ArtifexSoftware/ghostpdl-downloads/releases' | \
24 echo $($(PKG)_VERSION) 26 $(SED) -n 's,.*"ghostscript-\([0-9\.]*\)\.tar.xz".*,\1,p' | \
27 head -1
25 endef 28 endef
26 29
27 ## Currently only works for native builds and i686 mingw cross builds. 30 define $(PKG)_BUILD
28 31 cp -f `automake --print-libdir`/{config.guess,config.sub,install-sh} '$(1)'
29 ifeq ($(MXE_NATIVE_BUILD),yes) 32 cd '$(1)' && rm -rf freetype jpeg libpng openjpeg tiff
30 define $(PKG)_BUILD 33 cd '$(1)' && autoreconf -f -i
31 # force external lcm2 34 mkdir '$(1)/.build'
32 mv '$(1)/lcms2' '$(1)/lcms2.x' 35 cd '$(1)/.build' && $(1)/configure \
33 # force external libpng 36 CPPFLAGS='$(CPPFLAGS) -DHAVE_SYS_TIMES_H=0' \
34 mv '$(1)/libpng' '$(1)/libpng.x'
35 cd '$(1)' && autoreconf
36 cd '$(1)' && '$(1)/configure' \
37 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \
38 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ 37 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
39 --prefix='$(HOST_PREFIX)' \ 38 --prefix='$(HOST_PREFIX)' \
40 --with-system-libtiff \ 39 --without-local-zlib \
41 && $(CONFIGURE_POST_HOOK) 40 --with-system-libtiff
42 41
43 if [ "$(MXE_SYSTEM)" == "mingw" ]; then \ 42 $(MAKE) -C '$(1)/.build' -j '$(JOBS)' $(if $(BUILD_STATIC),libgs,so)
44 $(MAKE) -C '$(1)' -j '$(JOBS)' GS_LIB_DEFAULT=""; \ 43 $(MAKE) -C '$(1)/.build' prefix='$(HOST_PREFIX)' install
45 else \ 44 endef
46 $(MAKE) -C '$(1)' -j '$(JOBS)'; \ 45
47 fi
48 $(MAKE) -C '$(1)' install
49 endef
50 else
51 ifeq ($(MXE_SYSTEM),mingw)
52 ## Ghostscript configure script is not cross-compiler friendly,
53 ## so instead of running it, copying configuration files from a
54 ## native mingw build. Some configuration is done by compiling
55 ## and running programs during the build, but those programs
56 ## probe the build system and don't know about cross compiling,
57 ## so we generate the files then replace them with files from a
58 ## mingw native build.
59 ifeq ($(ENABLE_WINDOWS_64),yes)
60 define $(PKG)_BUILD
61 mv '$(1)/freetype' '$(1)/freetype.x'
62 mv '$(1)/libpng' '$(1)/libpng.x'
63 cp '$(TOP_DIR)/src/ghostscript-mingw-x86_64-makefile' '$(1)/Makefile'
64 $(MAKE) -C '$(1)' TARGET='$(TARGET)' prefix='$(HOST_PREFIX)' obj/arch.h obj/gconfig_.h
65 cp '$(TOP_DIR)/src/ghostscript-mingw-x86_64-arch.h' '$(1)/obj/arch.h'
66 cp '$(TOP_DIR)/src/ghostscript-mingw-x86_64-arch.h' '$(1)/obj/gconfig_.h'
67 $(MAKE) -C '$(1)' -j '$(JOBS)' \
68 TARGET='$(TARGET)' prefix='$(HOST_PREFIX)' CC='$(MXE_CC)'
69 $(MAKE) -C '$(1)' \
70 TARGET='$(TARGET)' prefix='$(HOST_PREFIX)' CC='$(MXE_CC)' \
71 install
72 endef
73 else
74 define $(PKG)_BUILD
75 mv '$(1)/freetype' '$(1)/freetype.x'
76 cp '$(TOP_DIR)/src/ghostscript-mingw-i686-makefile' '$(1)/Makefile'
77 $(MAKE) -C '$(1)' TARGET='$(TARGET)' prefix='$(HOST_PREFIX)' obj/arch.h obj/gconfig_.h
78 cp '$(TOP_DIR)/src/ghostscript-mingw-i686-arch.h' '$(1)/obj/arch.h'
79 cp '$(TOP_DIR)/src/ghostscript-mingw-i686-arch.h' '$(1)/obj/gconfig_.h'
80 $(MAKE) -C '$(1)' -j '$(JOBS)' \
81 TARGET='$(TARGET)' prefix='$(HOST_PREFIX)' CC='$(MXE_CC)'
82 $(MAKE) -C '$(1)' \
83 TARGET='$(TARGET)' prefix='$(HOST_PREFIX)' CC='$(MXE_CC)' \
84 install
85 endef
86
87 endif
88 endif
89 endif