annotate src/gdcm.mk @ 3424:da62528d53fb

Add octave forge dicom package * Makefile.in: Add of-dicom. * build_packages.m: Add install of dicom-0.1.1.tar.gz * dist-files: Add of-dicom.mk. * index.html: Added of-dicom-package. * src/of-dicom.mk: New file. * src/gdcm.mk: use DESTDIR in install. * src/gdcm.mk: update checksum for 2.0.19 * index.html: set gdcm-version to 2.0.19 (still available on sourceforge, and compatible with of-dicom)
author John Donoghue <john.donoghue@ieee.org>
date Wed, 15 Jan 2014 19:11:06 -0500
parents b89f8cfeff8e
children 13be64f9f16d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3159
75eaca7603d8 Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1 # This file is part of MXE.
75eaca7603d8 Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
2 # See index.html for further information.
75eaca7603d8 Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
3
75eaca7603d8 Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
4 PKG := gdcm
75eaca7603d8 Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
5 $(PKG)_IGNORE :=
3424
da62528d53fb Add octave forge dicom package
John Donoghue <john.donoghue@ieee.org>
parents: 3181
diff changeset
6 $(PKG)_CHECKSUM := ffbf5c1d040ec12d34fd7a7576633dfe0a1ff7b3
3159
75eaca7603d8 Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
7 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
75eaca7603d8 Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
8 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
75eaca7603d8 Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
9 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/$(PKG)/$(PKG) 2.x/GDCM $($(PKG)_VERSION)/$($(PKG)_FILE)
75eaca7603d8 Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
10 $(PKG)_DEPS := expat zlib
75eaca7603d8 Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
11
3181
b89f8cfeff8e Add build rule for non msvc build of gdcm
John Donoghue <john.donoghue@ieee.org>
parents: 3161
diff changeset
12 $(PKG)_CMAKE_OPTS :=
b89f8cfeff8e Add build rule for non msvc build of gdcm
John Donoghue <john.donoghue@ieee.org>
parents: 3161
diff changeset
13 ifeq ($(MXE_NATIVE_MINGW_BUILD),yes)
b89f8cfeff8e Add build rule for non msvc build of gdcm
John Donoghue <john.donoghue@ieee.org>
parents: 3161
diff changeset
14 ifeq ($(MXE_SYSTEM),mingw)
b89f8cfeff8e Add build rule for non msvc build of gdcm
John Donoghue <john.donoghue@ieee.org>
parents: 3161
diff changeset
15 $(PKG)_CMAKE_OPTS := -G "MSYS Makefiles"
b89f8cfeff8e Add build rule for non msvc build of gdcm
John Donoghue <john.donoghue@ieee.org>
parents: 3161
diff changeset
16 endif
b89f8cfeff8e Add build rule for non msvc build of gdcm
John Donoghue <john.donoghue@ieee.org>
parents: 3161
diff changeset
17 endif
b89f8cfeff8e Add build rule for non msvc build of gdcm
John Donoghue <john.donoghue@ieee.org>
parents: 3161
diff changeset
18
3159
75eaca7603d8 Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
19 define $(PKG)_UPDATE
75eaca7603d8 Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
20 echo 'Warning: Updates are temporarily disabled for package gdcm.' >&2;
75eaca7603d8 Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
21 echo $(gdcm_VERSION)
75eaca7603d8 Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
22 endef
75eaca7603d8 Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
23
75eaca7603d8 Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
24 ifeq ($(MXE_SYSTEM),msvc)
75eaca7603d8 Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
25 define $(PKG)_BUILD
75eaca7603d8 Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
26 mkdir '$(1)/../.build'
75eaca7603d8 Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
27 cd '$(1)/../.build' && cmake \
75eaca7603d8 Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
28 -G "NMake Makefiles" \
75eaca7603d8 Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
29 -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \
75eaca7603d8 Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
30 -DGDCM_BUILD_SHARED_LIBS:BOOL=TRUE \
75eaca7603d8 Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
31 -DGDCM_USE_SYSTEM_ZLIB:BOOL=TRUE \
75eaca7603d8 Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
32 -DGDCM_USE_SYSTEM_EXPAT:BOOL=TRUE \
75eaca7603d8 Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
33 ../$($(PKG)_SUBDIR)
75eaca7603d8 Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
34 cd '$(1)/../.build' && \
75eaca7603d8 Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
35 env -u MAKE -u MAKEFLAGS nmake && \
75eaca7603d8 Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
36 env -u MAKE -u MAKEFLAGS nmake install
75eaca7603d8 Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
37 endef
75eaca7603d8 Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
38 else
75eaca7603d8 Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
39 define $(PKG)_BUILD
3181
b89f8cfeff8e Add build rule for non msvc build of gdcm
John Donoghue <john.donoghue@ieee.org>
parents: 3161
diff changeset
40 mkdir '$(1)/../.build'
b89f8cfeff8e Add build rule for non msvc build of gdcm
John Donoghue <john.donoghue@ieee.org>
parents: 3161
diff changeset
41 cd '$(1)/../.build' && cmake \
b89f8cfeff8e Add build rule for non msvc build of gdcm
John Donoghue <john.donoghue@ieee.org>
parents: 3161
diff changeset
42 $($(PKG)_CMAKE_OPTS) \
b89f8cfeff8e Add build rule for non msvc build of gdcm
John Donoghue <john.donoghue@ieee.org>
parents: 3161
diff changeset
43 -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \
b89f8cfeff8e Add build rule for non msvc build of gdcm
John Donoghue <john.donoghue@ieee.org>
parents: 3161
diff changeset
44 -DGDCM_BUILD_SHARED_LIBS:BOOL=TRUE \
b89f8cfeff8e Add build rule for non msvc build of gdcm
John Donoghue <john.donoghue@ieee.org>
parents: 3161
diff changeset
45 ../$($(PKG)_SUBDIR)
b89f8cfeff8e Add build rule for non msvc build of gdcm
John Donoghue <john.donoghue@ieee.org>
parents: 3161
diff changeset
46 make -C $(1)/../.build -j $(JOBS)
3424
da62528d53fb Add octave forge dicom package
John Donoghue <john.donoghue@ieee.org>
parents: 3181
diff changeset
47 make -C $(1)/../.build -j 1 install DESTDIR=$(3)
3159
75eaca7603d8 Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
48 endef
3181
b89f8cfeff8e Add build rule for non msvc build of gdcm
John Donoghue <john.donoghue@ieee.org>
parents: 3161
diff changeset
49
3159
75eaca7603d8 Add GCDM module (currently only compiles with MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
50 endif