Mercurial > mxe-octave
comparison src/ghostscript.mk @ 3805:496c393c1d3e
ghostscript: enable mingw 64
* dist-files.mk: added src/ghostscript-mingw-x86_64-* files.
* src/ghostscript.mk: added rule for x86_64 mingw
* src/ghostscript-mingw-x86_64-arch.h: new file
* src/ghostscript-mingw-x86_64-gconfig_.h: new file
* src/ghostscript-mingw-x86_64-makefile: new file
author | John D |
---|---|
date | Tue, 17 Feb 2015 14:48:17 -0500 |
parents | 1a2fec9962a7 |
children | 02990526ae69 |
comparison
equal
deleted
inserted
replaced
3804:7e15ef9bf1e5 | 3805:496c393c1d3e |
---|---|
45 fi | 45 fi |
46 $(MAKE) -C '$(1)' install | 46 $(MAKE) -C '$(1)' install |
47 endef | 47 endef |
48 else | 48 else |
49 ifeq ($(MXE_SYSTEM),mingw) | 49 ifeq ($(MXE_SYSTEM),mingw) |
50 ifneq ($(ENABLE_64),yes) | 50 ## Ghostscript configure script is not cross-compiler friendly, |
51 ## Ghostscript configure script is not cross-compiler friendly, | 51 ## so instead of running it, copying configuration files from a |
52 ## so instead of running it, copying configuration files from a | 52 ## native mingw build. Some configuration is done by compiling |
53 ## native mingw build. Some configuration is done by compiling | 53 ## and running programs during the build, but those programs |
54 ## and running programs during the build, but those programs | 54 ## probe the build system and don't know about cross compiling, |
55 ## probe the build system and don't know about cross compiling, | 55 ## so we generate the files then replace them with files from a |
56 ## so we generate the files then replace them with files from a | 56 ## mingw native build. |
57 ## mingw native build. | 57 ifeq ($(ENABLE_64),yes) |
58 define $(PKG)_BUILD | |
59 mv '$(1)/zlib' '$(1)/zlib.x' | |
60 mv '$(1)/freetype' '$(1)/freetype.x' | |
61 cp '$(TOP_DIR)/src/ghostscript-mingw-x86_64-makefile' '$(1)/Makefile' | |
62 $(MAKE) -C '$(1)' TARGET='$(TARGET)' prefix='$(HOST_PREFIX)' obj/arch.h obj/gconfig_.h | |
63 cp '$(TOP_DIR)/src/ghostscript-mingw-x86_64-arch.h' '$(1)/obj/arch.h' | |
64 cp '$(TOP_DIR)/src/ghostscript-mingw-x86_64-arch.h' '$(1)/obj/gconfig_.h' | |
65 $(MAKE) -C '$(1)' -j '$(JOBS)' \ | |
66 TARGET='$(TARGET)' prefix='$(HOST_PREFIX)' CC='$(MXE_CC)' | |
67 $(MAKE) -C '$(1)' \ | |
68 TARGET='$(TARGET)' prefix='$(HOST_PREFIX)' CC='$(MXE_CC)' \ | |
69 install | |
70 endef | |
71 else | |
58 define $(PKG)_BUILD | 72 define $(PKG)_BUILD |
59 mv '$(1)/zlib' '$(1)/zlib.x' | 73 mv '$(1)/zlib' '$(1)/zlib.x' |
60 mv '$(1)/freetype' '$(1)/freetype.x' | 74 mv '$(1)/freetype' '$(1)/freetype.x' |
61 cp '$(TOP_DIR)/src/ghostscript-mingw-i686-makefile' '$(1)/Makefile' | 75 cp '$(TOP_DIR)/src/ghostscript-mingw-i686-makefile' '$(1)/Makefile' |
62 $(MAKE) -C '$(1)' TARGET='$(TARGET)' prefix='$(HOST_PREFIX)' obj/arch.h obj/gconfig_.h | 76 $(MAKE) -C '$(1)' TARGET='$(TARGET)' prefix='$(HOST_PREFIX)' obj/arch.h obj/gconfig_.h |
66 TARGET='$(TARGET)' prefix='$(HOST_PREFIX)' CC='$(MXE_CC)' | 80 TARGET='$(TARGET)' prefix='$(HOST_PREFIX)' CC='$(MXE_CC)' |
67 $(MAKE) -C '$(1)' \ | 81 $(MAKE) -C '$(1)' \ |
68 TARGET='$(TARGET)' prefix='$(HOST_PREFIX)' CC='$(MXE_CC)' \ | 82 TARGET='$(TARGET)' prefix='$(HOST_PREFIX)' CC='$(MXE_CC)' \ |
69 install | 83 install |
70 endef | 84 endef |
85 | |
71 endif | 86 endif |
72 endif | 87 endif |
73 endif | 88 endif |