Mercurial > mxe-octave
annotate src/ghostscript.mk @ 7183:eb3f7b3a457c default tip @
maint: merge release to default
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 29 Apr 2024 16:15:41 -0400 |
parents | f0fc792daaa6 |
children |
rev | line source |
---|---|
3643 | 1 # This file is part of MXE. |
2 # See index.html for further information. | |
3 | |
4 PKG := ghostscript | |
5 $(PKG)_IGNORE := | |
5189 | 6 $(PKG)_VERSION := 9.50 |
4959
506a61f959e4
Update ghostscript to 9.26.
Markus Mützel <markus.muetzel@gmx.de>
parents:
4325
diff
changeset
|
7 $(PKG)_NODOTVER := $(subst .,,$($(PKG)_VERSION)) |
5189 | 8 $(PKG)_CHECKSUM := 3be5f36300e3031e68a28cd898b3eebc9151660b |
3643 | 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) |
5454
cd41c2d17ef3
Update dependancies on packages
John Donoghue <john.donoghue@ieee.org>
parents:
5399
diff
changeset
|
12 $(PKG)_DEPS := dbus fontconfig freetype jpeg libiconv libidn libpaper libpng tiff zlib |
4959
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 | 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 |
5399
11fe8ac3cbe7
* src/ghostscript.mk: native ghistscript, include ld and cpp glags
John Donoghue <john.donoghue@ieee.org>
parents:
5252
diff
changeset
|
24 ifeq ($(MXE_NATIVE_BUILD),yes) |
11fe8ac3cbe7
* src/ghostscript.mk: native ghistscript, include ld and cpp glags
John Donoghue <john.donoghue@ieee.org>
parents:
5252
diff
changeset
|
25 $(PKG)_CONFIGURE_FLAGS=$(CONFIGURE_LDFLAGS) $(CONFIGURE_CPPFLAGS) |
11fe8ac3cbe7
* src/ghostscript.mk: native ghistscript, include ld and cpp glags
John Donoghue <john.donoghue@ieee.org>
parents:
5252
diff
changeset
|
26 endif |
11fe8ac3cbe7
* src/ghostscript.mk: native ghistscript, include ld and cpp glags
John Donoghue <john.donoghue@ieee.org>
parents:
5252
diff
changeset
|
27 |
3643 | 28 define $(PKG)_UPDATE |
4959
506a61f959e4
Update ghostscript to 9.26.
Markus Mützel <markus.muetzel@gmx.de>
parents:
4325
diff
changeset
|
29 $(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
|
30 $(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
|
31 head -1 |
3643 | 32 endef |
33 | |
4959
506a61f959e4
Update ghostscript to 9.26.
Markus Mützel <markus.muetzel@gmx.de>
parents:
4325
diff
changeset
|
34 define $(PKG)_BUILD |
506a61f959e4
Update ghostscript to 9.26.
Markus Mützel <markus.muetzel@gmx.de>
parents:
4325
diff
changeset
|
35 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
|
36 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
|
37 cd '$(1)' && autoreconf -f -i |
506a61f959e4
Update ghostscript to 9.26.
Markus Mützel <markus.muetzel@gmx.de>
parents:
4325
diff
changeset
|
38 mkdir '$(1)/.build' |
506a61f959e4
Update ghostscript to 9.26.
Markus Mützel <markus.muetzel@gmx.de>
parents:
4325
diff
changeset
|
39 cd '$(1)/.build' && $(1)/configure \ |
506a61f959e4
Update ghostscript to 9.26.
Markus Mützel <markus.muetzel@gmx.de>
parents:
4325
diff
changeset
|
40 CPPFLAGS='$(CPPFLAGS) -DHAVE_SYS_TIMES_H=0' \ |
3643 | 41 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ |
5839
f0fc792daaa6
ghostscript: Disable openjpeg.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5454
diff
changeset
|
42 $($(PKG)_CONFIGURE_FLAGS) \ |
3643 | 43 --prefix='$(HOST_PREFIX)' \ |
4959
506a61f959e4
Update ghostscript to 9.26.
Markus Mützel <markus.muetzel@gmx.de>
parents:
4325
diff
changeset
|
44 --without-local-zlib \ |
5839
f0fc792daaa6
ghostscript: Disable openjpeg.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5454
diff
changeset
|
45 --with-system-libtiff \ |
f0fc792daaa6
ghostscript: Disable openjpeg.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5454
diff
changeset
|
46 --disable-openjpeg |
3643 | 47 |
4959
506a61f959e4
Update ghostscript to 9.26.
Markus Mützel <markus.muetzel@gmx.de>
parents:
4325
diff
changeset
|
48 $(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
|
49 $(MAKE) -C '$(1)/.build' prefix='$(HOST_PREFIX)' install |
5252
be9c49c6ccca
* src/ghostscript.mk: remove html manual if dep docs not enabled
John Donoghue <john.donoghue@ieee.org>
parents:
5189
diff
changeset
|
50 |
be9c49c6ccca
* src/ghostscript.mk: remove html manual if dep docs not enabled
John Donoghue <john.donoghue@ieee.org>
parents:
5189
diff
changeset
|
51 if [ "x$(ENABLE_DEP_DOCS)" == "xno" ]; then \ |
be9c49c6ccca
* src/ghostscript.mk: remove html manual if dep docs not enabled
John Donoghue <john.donoghue@ieee.org>
parents:
5189
diff
changeset
|
52 rm -f $(HOST_PREFIX)/share/doc/ghostscript/$($(PKG)_VERSION)/*.htm; \ |
be9c49c6ccca
* src/ghostscript.mk: remove html manual if dep docs not enabled
John Donoghue <john.donoghue@ieee.org>
parents:
5189
diff
changeset
|
53 fi |
4959
506a61f959e4
Update ghostscript to 9.26.
Markus Mützel <markus.muetzel@gmx.de>
parents:
4325
diff
changeset
|
54 endef |
506a61f959e4
Update ghostscript to 9.26.
Markus Mützel <markus.muetzel@gmx.de>
parents:
4325
diff
changeset
|
55 |