changeset 3159:75eaca7603d8

Add GCDM module (currently only compiles with MSVC)
author Michael Goffioul <michael.goffioul@gmail.com>
date Sun, 21 Jul 2013 18:28:36 -0400
parents e0beeba4490f
children 4f573c0f5955
files dist-files.mk index.html src/gdcm.mk
diffstat 3 files changed, 43 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/dist-files.mk	Sun Jul 21 08:57:33 2013 -0400
+++ b/dist-files.mk	Sun Jul 21 18:28:36 2013 -0400
@@ -91,6 +91,7 @@
   gdal.mk \
   gdb-1-fix-shell.patch \
   gdb.mk \
+  gdcm.mk \
   gdk-pixbuf-1-fixes.patch \
   gdk-pixbuf.mk \
   geos-test.c \
--- a/index.html	Sun Jul 21 08:57:33 2013 -0400
+++ b/index.html	Sun Jul 21 18:28:36 2013 -0400
@@ -1219,6 +1219,11 @@
         <td id="gdb-website"><a href="http://www.gnu.org/software/gdb/">gdb</a></td>
     </tr>
     <tr>
+        <td id="gdcm-package">gdcm</td>
+        <td id="gdcm-version">2.2.3</td>
+        <td id="gdcm-website"><a href="http://gdcm.sourceforge.net/">GDCM</a></td>
+    </tr>
+    <tr>
         <td id="gdk-pixbuf-package">gdk-pixbuf</td>
         <td id="gdk-pixbuf-version">2.26.4</td>
         <td id="gdk-pixbuf-website"><a href="http://www.gdk-pixbuf.org/">GDK-pixbuf</a></td>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/gdcm.mk	Sun Jul 21 18:28:36 2013 -0400
@@ -0,0 +1,37 @@
+# This file is part of MXE.
+# See index.html for further information.
+
+PKG             := gdcm
+$(PKG)_IGNORE   :=
+$(PKG)_CHECKSUM := 83b9ff0744a37b4bf8f687ed198aabea7a9dfc70
+$(PKG)_SUBDIR   := $(PKG)-$($(PKG)_VERSION)
+$(PKG)_FILE     := $(PKG)-$($(PKG)_VERSION).tar.gz
+$(PKG)_URL      := http://$(SOURCEFORGE_MIRROR)/project/$(PKG)/$(PKG) 2.x/GDCM $($(PKG)_VERSION)/$($(PKG)_FILE)
+$(PKG)_DEPS     := expat zlib
+
+define $(PKG)_UPDATE
+    echo 'Warning: Updates are temporarily disabled for package gdcm.' >&2;
+    echo $(gdcm_VERSION)
+endef
+
+#        -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' 
+ifeq ($(MXE_SYSTEM),msvc)
+define $(PKG)_BUILD
+    mkdir '$(1)/../.build'
+    cd '$(1)/../.build' && cmake \
+        -G "NMake Makefiles" \
+        -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)'  \
+        -DGDCM_BUILD_SHARED_LIBS:BOOL=TRUE \
+        -DGDCM_USE_SYSTEM_ZLIB:BOOL=TRUE \
+	-DGDCM_USE_SYSTEM_EXPAT:BOOL=TRUE \
+        ../$($(PKG)_SUBDIR)
+    cd '$(1)/../.build' && \
+        env -u MAKE -u MAKEFLAGS nmake && \
+        env -u MAKE -u MAKEFLAGS nmake install
+endef
+else
+define $(PKG)_BUILD
+    echo "Building of package gdcm not implemented yet."
+    false
+endef
+endif