changeset 3278:fbf8f71bf1e6

gl2ps: install nativemingw files and bin/dll. * src/gl2ps.mk: manually install libs and header in native mingw, copy .dll to the bin dir.
author John Donoghue <john.donoghue@ieee.org>
date Sat, 02 Nov 2013 12:31:57 -0400
parents 1418183e786b
children d4364da17994
files src/gl2ps.mk
diffstat 1 files changed, 16 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/gl2ps.mk	Sat Nov 02 11:30:58 2013 -0400
+++ b/src/gl2ps.mk	Sat Nov 02 12:31:57 2013 -0400
@@ -27,5 +27,20 @@
         $($(PKG)_CMAKE_FLAGS) \
         -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \
         .
-    $(MAKE) -C '$(1)' -j '$(JOBS)' VERBOSE=1 install
+    $(MAKE) -C '$(1)' -j '$(JOBS)' VERBOSE=1 
+
+    # native mingw build doesnt want to install the files, even
+    # though it logs that it did
+    if [ x$(MXE_NATIVE_MINGW_BUILD) = xyes ]; then \
+      $(INSTALL) -m644 '$(1)/libgl2ps.a' '$(HOST_LIBDIR)'; \
+      $(INSTALL) -m644 '$(1)/libgl2ps.dll.a' '$(HOST_LIBDIR)'; \
+      $(INSTALL) -m644 '$(1)/libgl2ps.dll' '$(HOST_BINDIR)'; \
+      $(INSTALL) -m644 '$(1)/gl2ps.h' '$(HOST_INCDIR)'; \
+    else \
+      $(MAKE) -C '$(1)' -j 1 VERBOSE=1 install; \
+      if [ $(MXE_SYSTEM) = mingw ]; then \
+        echo "Install dll"; \
+        $(INSTALL) '$(1)/libgl2ps.dll' '$(HOST_BINDIR)/'; \
+      fi; \
+    fi
 endef