changeset 3658:581873dfae44

ghostscript: enable native mingw build * src/ghostscript.mk: if native mingw, remove lcms2 directory, override GS_LIB_DEFAULT
author John Donoghue <john.donoghue@ieee.org>
date Wed, 09 Jul 2014 19:41:39 -0400
parents 9a33176ea64d
children 6a4cb2cb4493
files src/ghostscript.mk
diffstat 1 files changed, 13 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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