annotate src/ghostscript.mk @ 5050:d80152a06425

* src/ghostscript.mk: update to v9.27
author John Donoghue
date Fri, 12 Apr 2019 07:59:55 -0400
parents 506a61f959e4
children 9ecdae39c4f8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3643
f2503a486cce ghostscript: new package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1 # This file is part of MXE.
f2503a486cce ghostscript: new package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2 # See index.html for further information.
f2503a486cce ghostscript: new package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3
f2503a486cce ghostscript: new package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4 PKG := ghostscript
f2503a486cce ghostscript: new package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5 $(PKG)_IGNORE :=
5050
d80152a06425 * src/ghostscript.mk: update to v9.27
John Donoghue
parents: 4959
diff changeset
6 $(PKG)_VERSION := 9.27
4959
506a61f959e4 Update ghostscript to 9.26.
Markus Mützel <markus.muetzel@gmx.de>
parents: 4325
diff changeset
7 $(PKG)_NODOTVER := $(subst .,,$($(PKG)_VERSION))
5050
d80152a06425 * src/ghostscript.mk: update to v9.27
John Donoghue
parents: 4959
diff changeset
8 $(PKG)_CHECKSUM := f926d2cfb418a7c5d92dce0a9843fa01ee62fe2c
3643
f2503a486cce ghostscript: new package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
4959
506a61f959e4 Update ghostscript to 9.26.
Markus Mützel <markus.muetzel@gmx.de>
parents: 4325
diff changeset
10 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.xz
506a61f959e4 Update ghostscript to 9.26.
Markus Mützel <markus.muetzel@gmx.de>
parents: 4325
diff changeset
11 $(PKG)_URL := https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs$($(PKG)_NODOTVER)/$($(PKG)_FILE)
506a61f959e4 Update ghostscript to 9.26.
Markus Mützel <markus.muetzel@gmx.de>
parents: 4325
diff changeset
12 $(PKG)_DEPS := dbus fontconfig freetype libiconv libidn libpaper libpng tiff zlib
506a61f959e4 Update ghostscript to 9.26.
Markus Mützel <markus.muetzel@gmx.de>
parents: 4325
diff changeset
13
3743
4f58c4b4dee0 build libX11 and dependencies
John W. Eaton <jwe@octave.org>
parents: 3701
diff changeset
14 ifeq ($(MXE_WINDOWS_BUILD),no)
3827
02990526ae69 allow building of X11 libs to be disabled
John W. Eaton <jwe@octave.org>
parents: 3805
diff changeset
15 ifeq ($(USE_SYSTEM_X11_LIBS),no)
02990526ae69 allow building of X11 libs to be disabled
John W. Eaton <jwe@octave.org>
parents: 3805
diff changeset
16 $(PKG)_DEPS += x11 xext
02990526ae69 allow building of X11 libs to be disabled
John W. Eaton <jwe@octave.org>
parents: 3805
diff changeset
17 endif
3743
4f58c4b4dee0 build libX11 and dependencies
John W. Eaton <jwe@octave.org>
parents: 3701
diff changeset
18 endif
3643
f2503a486cce ghostscript: new package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19
3658
581873dfae44 ghostscript: enable native mingw build
John Donoghue <john.donoghue@ieee.org>
parents: 3653
diff changeset
20 ifeq ($(MXE_NATIVE_MINGW_BUILD),yes)
581873dfae44 ghostscript: enable native mingw build
John Donoghue <john.donoghue@ieee.org>
parents: 3653
diff changeset
21 $(PKG)_DEPS += lcms
581873dfae44 ghostscript: enable native mingw build
John Donoghue <john.donoghue@ieee.org>
parents: 3653
diff changeset
22 endif
581873dfae44 ghostscript: enable native mingw build
John Donoghue <john.donoghue@ieee.org>
parents: 3653
diff changeset
23
3643
f2503a486cce ghostscript: new package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24 define $(PKG)_UPDATE
4959
506a61f959e4 Update ghostscript to 9.26.
Markus Mützel <markus.muetzel@gmx.de>
parents: 4325
diff changeset
25 $(WGET) -q -O- 'https://api.github.com/repos/ArtifexSoftware/ghostpdl-downloads/releases' | \
506a61f959e4 Update ghostscript to 9.26.
Markus Mützel <markus.muetzel@gmx.de>
parents: 4325
diff changeset
26 $(SED) -n 's,.*"ghostscript-\([0-9\.]*\)\.tar.xz".*,\1,p' | \
506a61f959e4 Update ghostscript to 9.26.
Markus Mützel <markus.muetzel@gmx.de>
parents: 4325
diff changeset
27 head -1
3643
f2503a486cce ghostscript: new package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
28 endef
f2503a486cce ghostscript: new package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
29
4959
506a61f959e4 Update ghostscript to 9.26.
Markus Mützel <markus.muetzel@gmx.de>
parents: 4325
diff changeset
30 define $(PKG)_BUILD
506a61f959e4 Update ghostscript to 9.26.
Markus Mützel <markus.muetzel@gmx.de>
parents: 4325
diff changeset
31 cp -f `automake --print-libdir`/{config.guess,config.sub,install-sh} '$(1)'
506a61f959e4 Update ghostscript to 9.26.
Markus Mützel <markus.muetzel@gmx.de>
parents: 4325
diff changeset
32 cd '$(1)' && rm -rf freetype jpeg libpng openjpeg tiff
506a61f959e4 Update ghostscript to 9.26.
Markus Mützel <markus.muetzel@gmx.de>
parents: 4325
diff changeset
33 cd '$(1)' && autoreconf -f -i
506a61f959e4 Update ghostscript to 9.26.
Markus Mützel <markus.muetzel@gmx.de>
parents: 4325
diff changeset
34 mkdir '$(1)/.build'
506a61f959e4 Update ghostscript to 9.26.
Markus Mützel <markus.muetzel@gmx.de>
parents: 4325
diff changeset
35 cd '$(1)/.build' && $(1)/configure \
506a61f959e4 Update ghostscript to 9.26.
Markus Mützel <markus.muetzel@gmx.de>
parents: 4325
diff changeset
36 CPPFLAGS='$(CPPFLAGS) -DHAVE_SYS_TIMES_H=0' \
3643
f2503a486cce ghostscript: new package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
37 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
f2503a486cce ghostscript: new package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
38 --prefix='$(HOST_PREFIX)' \
4959
506a61f959e4 Update ghostscript to 9.26.
Markus Mützel <markus.muetzel@gmx.de>
parents: 4325
diff changeset
39 --without-local-zlib \
506a61f959e4 Update ghostscript to 9.26.
Markus Mützel <markus.muetzel@gmx.de>
parents: 4325
diff changeset
40 --with-system-libtiff
3643
f2503a486cce ghostscript: new package
John W. Eaton <jwe@octave.org>
parents:
diff changeset
41
4959
506a61f959e4 Update ghostscript to 9.26.
Markus Mützel <markus.muetzel@gmx.de>
parents: 4325
diff changeset
42 $(MAKE) -C '$(1)/.build' -j '$(JOBS)' $(if $(BUILD_STATIC),libgs,so)
506a61f959e4 Update ghostscript to 9.26.
Markus Mützel <markus.muetzel@gmx.de>
parents: 4325
diff changeset
43 $(MAKE) -C '$(1)/.build' prefix='$(HOST_PREFIX)' install
506a61f959e4 Update ghostscript to 9.26.
Markus Mützel <markus.muetzel@gmx.de>
parents: 4325
diff changeset
44 endef
506a61f959e4 Update ghostscript to 9.26.
Markus Mützel <markus.muetzel@gmx.de>
parents: 4325
diff changeset
45