Mercurial > mxe-octave
annotate src/ghostscript.mk @ 3701:ddf15410d64c
ghostscript: depend on lcms
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 29 Aug 2014 12:39:40 -0400 |
parents | ecc8ad4c560c |
children | 4f58c4b4dee0 |
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 := | |
6 $(PKG)_VERSION := 9.07 | |
7 $(PKG)_CHECKSUM := 550a85e73b7213d8ae41ea06523661638b4bc1a2 | |
8 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) | |
9 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.bz2 | |
10 $(PKG)_URL := http://downloads.ghostscript.com/public/$($(PKG)_FILE) | |
3701
ddf15410d64c
ghostscript: depend on lcms
John W. Eaton <jwe@octave.org>
parents:
3661
diff
changeset
|
11 $(PKG)_DEPS := jpeg lcms libpng tiff zlib |
3643 | 12 |
3658
581873dfae44
ghostscript: enable native mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
3653
diff
changeset
|
13 ifeq ($(MXE_NATIVE_MINGW_BUILD),yes) |
581873dfae44
ghostscript: enable native mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
3653
diff
changeset
|
14 $(PKG)_DEPS += lcms |
581873dfae44
ghostscript: enable native mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
3653
diff
changeset
|
15 endif |
581873dfae44
ghostscript: enable native mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
3653
diff
changeset
|
16 |
3643 | 17 define $(PKG)_UPDATE |
18 echo 'Warning: Updates are temporarily disabled for package ghostscript.' >&2; | |
19 echo $($(PKG)_VERSION) | |
20 endef | |
21 | |
22 ## Currently only works for native builds and i686 mingw cross builds. | |
23 | |
24 ifeq ($(MXE_NATIVE_BUILD),yes) | |
25 define $(PKG)_BUILD | |
3658
581873dfae44
ghostscript: enable native mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
3653
diff
changeset
|
26 # in native mingw, force it to use external lcm2 |
581873dfae44
ghostscript: enable native mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
3653
diff
changeset
|
27 if [ "$(MXE_SYSTEM)" == "mingw" ]; then \ |
581873dfae44
ghostscript: enable native mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
3653
diff
changeset
|
28 rm -rf '$(1)/lcms2'; \ |
581873dfae44
ghostscript: enable native mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
3653
diff
changeset
|
29 fi |
3653
3085b1b955dd
make native ghostscript build work; include ghostscript patches in dist file
John W. Eaton <jwe@octave.org>
parents:
3643
diff
changeset
|
30 cd '$(1)' && autoreconf |
3643 | 31 cd '$(1)' && '$(1)/configure' \ |
32 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \ | |
33 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ | |
34 --prefix='$(HOST_PREFIX)' \ | |
35 --with-system-libtiff \ | |
36 && $(CONFIGURE_POST_HOOK) | |
37 | |
3658
581873dfae44
ghostscript: enable native mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
3653
diff
changeset
|
38 if [ "$(MXE_SYSTEM)" == "mingw" ]; then \ |
581873dfae44
ghostscript: enable native mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
3653
diff
changeset
|
39 $(MAKE) -C '$(1)' -j '$(JOBS)' GS_LIB_DEFAULT=""; \ |
581873dfae44
ghostscript: enable native mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
3653
diff
changeset
|
40 else \ |
581873dfae44
ghostscript: enable native mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
3653
diff
changeset
|
41 $(MAKE) -C '$(1)' -j '$(JOBS)'; \ |
581873dfae44
ghostscript: enable native mingw build
John Donoghue <john.donoghue@ieee.org>
parents:
3653
diff
changeset
|
42 fi |
3643 | 43 $(MAKE) -C '$(1)' install |
44 endef | |
45 else | |
46 ifeq ($(MXE_SYSTEM),mingw) | |
47 ifneq ($(ENABLE_64),yes) | |
48 ## Ghostscript configure script is not cross-compiler friendly, | |
49 ## so instead of running it, copying configuration files from a | |
50 ## native mingw build. Some configuration is done by compiling | |
51 ## and running programs during the build, but those programs | |
52 ## probe the build system and don't know about cross compiling, | |
53 ## so we generate the files then replace them with files from a | |
54 ## mingw native build. | |
55 define $(PKG)_BUILD | |
56 cp '$(TOP_DIR)/src/ghostscript-mingw-i686-makefile' '$(1)/Makefile' | |
57 $(MAKE) -C '$(1)' TARGET='$(TARGET)' prefix='$(HOST_PREFIX)' obj/arch.h obj/gconfig_.h | |
58 cp '$(TOP_DIR)/src/ghostscript-mingw-i686-arch.h' '$(1)/obj/arch.h' | |
59 cp '$(TOP_DIR)/src/ghostscript-mingw-i686-arch.h' '$(1)/obj/gconfig_.h' | |
60 $(MAKE) -C '$(1)' -j '$(JOBS)' \ | |
61 TARGET='$(TARGET)' prefix='$(HOST_PREFIX)' CC='$(MXE_CC)' | |
62 $(MAKE) -C '$(1)' \ | |
63 TARGET='$(TARGET)' prefix='$(HOST_PREFIX)' CC='$(MXE_CC)' \ | |
64 install | |
65 endef | |
66 endif | |
67 endif | |
68 endif |