# HG changeset patch # User John Donoghue # Date 1404949299 14400 # Node ID 581873dfae441e58785abea0031d94ad6743724a # Parent 9a33176ea64d3fe7e77e8ee34415854b7456b2aa ghostscript: enable native mingw build * src/ghostscript.mk: if native mingw, remove lcms2 directory, override GS_LIB_DEFAULT diff -r 9a33176ea64d -r 581873dfae44 src/ghostscript.mk --- a/src/ghostscript.mk Wed Jul 09 09:13:21 2014 -0400 +++ b/src/ghostscript.mk Wed Jul 09 19:41:39 2014 -0400 @@ -10,6 +10,10 @@ $(PKG)_URL := http://downloads.ghostscript.com/public/$($(PKG)_FILE) $(PKG)_DEPS := jpeg libpng jpeg tiff zlib +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) @@ -19,6 +23,10 @@ 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) \ @@ -27,7 +35,11 @@ --with-system-libtiff \ && $(CONFIGURE_POST_HOOK) - $(MAKE) -C '$(1)' -j '$(JOBS)' + 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