Mercurial > mxe-octave
view src/ghostscript.mk @ 3792:1a2fec9962a7
ghostscript: update to 9.15
* src/ghostscript-mingw-i686-makefile: update to prebuilt file for this version
* src/ghostscript.mk: update version, checksum
* src/mingw-ghostscript-1-win.patch: new file
* dist-files.mk: add src/mingw-ghostscript-1-win.patch
author | John Donoghue |
---|---|
date | Thu, 05 Feb 2015 16:04:09 -0500 |
parents | 0023c034ec4a |
children | 496c393c1d3e |
line wrap: on
line source
# This file is part of MXE. # See index.html for further information. PKG := ghostscript $(PKG)_IGNORE := $(PKG)_VERSION := 9.15 $(PKG)_CHECKSUM := f53bcc47e912c7bffc2ced62ed9311376fb18bab $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz $(PKG)_URL := http://downloads.ghostscript.com/public/$($(PKG)_FILE) $(PKG)_DEPS := jpeg lcms libpng tiff zlib ifeq ($(MXE_WINDOWS_BUILD),no) $(PKG)_DEPS += x11 xext endif ifeq ($(MXE_NATIVE_MINGW_BUILD),yes) $(PKG)_DEPS += lcms endif define $(PKG)_UPDATE echo 'Warning: Updates are temporarily disabled for package ghostscript.' >&2; echo $($(PKG)_VERSION) endef ## Currently only works for native builds and i686 mingw cross builds. ifeq ($(MXE_NATIVE_BUILD),yes) define $(PKG)_BUILD # in native mingw, force it to use external lcm2 if [ "$(MXE_SYSTEM)" == "mingw" ]; then \ rm -rf '$(1)/lcms2'; \ fi cd '$(1)' && autoreconf cd '$(1)' && '$(1)/configure' \ $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \ $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ --prefix='$(HOST_PREFIX)' \ --with-system-libtiff \ && $(CONFIGURE_POST_HOOK) if [ "$(MXE_SYSTEM)" == "mingw" ]; then \ $(MAKE) -C '$(1)' -j '$(JOBS)' GS_LIB_DEFAULT=""; \ else \ $(MAKE) -C '$(1)' -j '$(JOBS)'; \ fi $(MAKE) -C '$(1)' install endef else ifeq ($(MXE_SYSTEM),mingw) ifneq ($(ENABLE_64),yes) ## Ghostscript configure script is not cross-compiler friendly, ## so instead of running it, copying configuration files from a ## native mingw build. Some configuration is done by compiling ## and running programs during the build, but those programs ## probe the build system and don't know about cross compiling, ## so we generate the files then replace them with files from a ## mingw native build. define $(PKG)_BUILD mv '$(1)/zlib' '$(1)/zlib.x' mv '$(1)/freetype' '$(1)/freetype.x' cp '$(TOP_DIR)/src/ghostscript-mingw-i686-makefile' '$(1)/Makefile' $(MAKE) -C '$(1)' TARGET='$(TARGET)' prefix='$(HOST_PREFIX)' obj/arch.h obj/gconfig_.h cp '$(TOP_DIR)/src/ghostscript-mingw-i686-arch.h' '$(1)/obj/arch.h' cp '$(TOP_DIR)/src/ghostscript-mingw-i686-arch.h' '$(1)/obj/gconfig_.h' $(MAKE) -C '$(1)' -j '$(JOBS)' \ TARGET='$(TARGET)' prefix='$(HOST_PREFIX)' CC='$(MXE_CC)' $(MAKE) -C '$(1)' \ TARGET='$(TARGET)' prefix='$(HOST_PREFIX)' CC='$(MXE_CC)' \ install endef endif endif endif